/* ============================================
   Dragon / Space theme - shared stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-void:      #0a0d1a;
  --bg-panel:     #12162b;
  --bg-panel-2:   #171c36;
  --line:         rgba(232, 163, 61, 0.18);
  --line-strong:  rgba(232, 163, 61, 0.35);
  --ember:        #e8a33d;
  --ember-bright: #ffb84d;
  --scale:        #2dd4bf;
  --text-main:    #edeff7;
  --text-soft:    #a9afc9;
  --text-faint:   #6b7191;

  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-void);
  background-image:
    linear-gradient(180deg, rgba(6, 8, 16, 0.72), rgba(6, 8, 16, 0.55) 40%, rgba(6, 8, 16, 0.8)),
    url('../images/dragonspace.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--scale); text-decoration: none; }
a:hover { color: var(--ember-bright); }

/* ---------- Layout shell ---------- */

.shell {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

/* ---------- Banner ---------- */

.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  background: rgba(18, 22, 43, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.banner__mark {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(232, 163, 61, 0.45));
}

.banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin: 0;
}

.banner__text {
  flex: 1;
  text-align: center;
}

.banner__tagline {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-main);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Social icons ---------- */

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel-2);
  color: var(--text-soft);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  color: var(--ember-bright);
  border-color: var(--ember);
}

.social-icon--twitch:hover { color: #a970ff; border-color: #a970ff; }
.social-icon--youtube:hover { color: #ff4d4d; border-color: #ff4d4d; }

/* ---------- Body: sidebar + content ---------- */

.layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  flex: 1;
}

.sidenav {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 22, 43, 0.78);
  padding: 22px 14px;
  align-self: start;
  backdrop-filter: blur(6px);
}

.sidenav__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 10px 10px;
}

.sidenav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 2px;
  border-left: 2px solid transparent;
}

.sidenav a:hover {
  background: var(--bg-panel);
  color: var(--text-main);
}

.sidenav a.active {
  background: var(--bg-panel-2);
  color: var(--ember-bright);
  border-left: 2px solid var(--ember);
}

.content {
  display: flex;
  flex-direction: column;
}

.panel {
  background: rgba(18, 22, 43, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 32px;
  backdrop-filter: blur(4px);
}

.content h1 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 6px;
  color: var(--text-main);
}

.content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
  color: var(--text-main);
}

.content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 22px 0 6px;
  color: var(--ember-bright);
}

/* ---------- Crystal Moon Saga box ---------- */

.cms-cast {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0;
}

.cms-cast__item {
  text-align: center;
}

.cms-cast__item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}

.cms-cast__item p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-faint);
}

.cms-boss {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.cms-boss img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.content .kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--scale);
  margin: 0 0 18px;
}

.content p {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 60ch;
}

/* ---------- Utilities ---------- */

.text-center {
  text-align: center;
}

.content .kicker--hero {
  font-size: 30px;
  max-width: none;
}

.panel--secondary {
  width: 50%;
  margin: 24px auto 0;
}

@media (max-width: 900px) {
  .panel--secondary { width: 100%; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  color: var(--text-main);
  background: var(--bg-panel-2);
}

.btn:hover { border-color: var(--ember); color: var(--ember-bright); }

.btn--accent {
  background: linear-gradient(180deg, var(--ember-bright), var(--ember));
  color: #1a1204;
  border: none;
  font-weight: 600;
}

.btn--accent:hover { color: #1a1204; filter: brightness(1.08); }

.btn--centered { display: inline-block; margin: 0 auto; }

/* ---------- Home hero + cards ---------- */

.hero {
  padding: 10px 4px 30px;
}

.hero .kicker {
  text-align: center;
  max-width: none;
  font-size: 26px;
  font-weight: 700;
}

.hero h1 { font-size: 38px; }

/* ---------- Live status badge ---------- */

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.live-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}

.live-status--live .live-status__dot {
  background: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.7);
}

.live-status--live .live-status__text { color: #ff8080; }

.live-status--offline .live-status__dot { background: var(--text-faint); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ember-bright);
}

.card p { font-size: 13px; margin: 0; color: var(--text-soft); }

/* ---------- Recent clips ---------- */

.clips {
  margin-top: 40px;
}

.clips h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 18px;
  color: var(--text-main);
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.clip {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-panel);
  overflow: hidden;
}

.clip:hover { border-color: var(--ember); }

.clip--video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border: none;
}

.clip__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-void));
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip__play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(232, 163, 61, 0.15);
  border: 1px solid var(--line-strong);
  color: var(--ember-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
}

.clip__title {
  margin: 12px 14px 2px;
  font-size: 14px;
  color: var(--text-main);
}

.clip__meta {
  margin: 0 14px 14px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Contact form ---------- */

.form-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }

.form-field label { font-size: 13px; color: var(--text-soft); }

.form-field input,
.form-field textarea {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
}

.form-field textarea { min-height: 120px; resize: vertical; }

/* ---------- Success modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--bg-panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 360px;
  text-align: center;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ember-bright);
  margin: 0 0 10px;
}

.modal__body {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0 0 20px;
}

/* ---------- Footer ---------- */

.footer {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 22, 43, 0.78);
  backdrop-filter: blur(6px);
  padding: 14px 26px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }

  .banner { flex-wrap: wrap; }

  .layout { grid-template-columns: 1fr; }

  .sidenav { display: none; }

  .sidenav.open { display: block; }

  .panel { padding: 22px 18px; }
}
