/* Mereth Roleplay — Dark Blue / Night Sky theme */

:root {
  --night-deep: #0a0e1a;
  --night-blue: #0f1629;
  --night-mid: #151d33;
  --sky-blue: #1a2744;
  --aurora-green: #2dd4a3;
  --aurora-magenta: #a78bfa;
  --aurora-lavender: #c4b5fd;
  --torch-glow: #f59e0b;
  --torch-bright: #fbbf24;
  --snow-muted: #94a3b8;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-subtle: rgba(45, 212, 163, 0.2);
  --overlay-strength: 0.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Crimson Text', Georgia, serif;
  color: var(--text-primary);
  background: var(--night-deep);
  position: relative;
  overflow-x: hidden;
}

/* Full-bleed background: Skyrim night + overlay */
.bg-layer {
  position: fixed;
  inset: 0;
  background: var(--night-deep) url('assets/background.png') center center / cover no-repeat;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, var(--overlay-strength)) 0%,
    rgba(15, 22, 41, 0.85) 40%,
    rgba(21, 29, 51, 0.9) 70%,
    rgba(10, 14, 26, 0.95) 100%
  );
  z-index: -1;
}

/* Rules button — top left */
.rules-widget {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: rgba(21, 29, 51, 0.9);
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.rules-widget:hover {
  background: rgba(45, 212, 163, 0.2);
  color: var(--aurora-green);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 212, 163, 0.2);
}

/* Discord widget — top right */
.discord-widget {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(88, 101, 242, 0.9);
  color: #fff;
  text-decoration: none;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.discord-widget:hover {
  background: #5865f2;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.discord-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.discord-text {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .discord-widget {
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }
  .discord-text {
    display: none;
  }
  .discord-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Typography */
h1, h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Header */
.site-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.site-logo {
  display: block;
  max-width: min(520px, 92vw);
  height: auto;
  margin: 0 auto;
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Main content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero / Launcher CTA */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-description {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-primary);
  text-align: center;
}

.cta-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--night-deep);
  background: linear-gradient(135deg, var(--torch-glow), var(--torch-bright));
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cta-icon {
  font-size: 1.25rem;
}

/* Section headings */
section h2 {
  font-size: 1.5rem;
  color: var(--aurora-lavender);
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

/* Gallery */
.gallery-section {
  padding: 2rem 0 3rem;
}

.gallery {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(15, 22, 41, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gallery-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  display: block;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--night-mid);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gallery-slide.active {
  opacity: 1;
  z-index: 1;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(10, 14, 26, 0.5);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--aurora-magenta);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.dot:hover {
  background: rgba(167, 139, 250, 0.4);
}

.dot.active {
  background: var(--aurora-magenta);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
}

.gallery-caption,
.video-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.75rem;
}

.gallery-caption code,
.video-caption code {
  color: var(--aurora-green);
  font-size: 0.85em;
}

/* Tutorial video */
.tutorial-section {
  padding: 2rem 0 3rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 22, 41, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer disclaimer */
.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 14, 26, 0.7);
}

.disclaimer {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
