/* Пробная тема «Мастера слова»: чёрная сцена, золото, белые заголовки (по афише клуба).
   Переопределяет переменные из app.css и несколько элементов, где нужен свет и градиент. */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&display=swap");

:root {
  --background: #0a0907;
  --foreground: #f4efe6;
  --card: #15120d;
  --primary: #d9a93f;
  --primary-foreground: #1b1406;
  --secondary: #e8c062;
  --secondary-foreground: #1b1406;
  --muted: #1c1811;
  --muted-foreground: #a8997c;
  --accent: #241e14;
  --destructive: #ef6a5a;
  --border: #3a3121;
  --input: #0f0d09;
  --ring: #e8c062;
  --chart-1: #f2cf6b;   /* оплатил — яркое золото */
  --chart-2: #c98b2b;   /* пробное — янтарь */
  --chart-3: #7d6c4c;   /* приглашён — бронза */
  --sidebar: #050403;
  --sidebar-foreground: #f4efe6;
  --sidebar-primary: #e8c062;
  --gold: linear-gradient(180deg, #f8dc8a 0%, #e2b04a 45%, #b07f22 100%);
  --gold-line: linear-gradient(90deg, transparent, #e8c062, transparent);
  --glow: 0 0 0 1px rgb(232 192 98 / .35), 0 8px 28px -10px rgb(232 176 74 / .55);
  --head: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

/* однотонный фон: «луч прожектора» повторялся на длинных страницах полосами (убран 29.11.2026) */
body { background: var(--background); }
h1, h2, .brand b, .kpi .value, .hero h1 { font-family: var(--head); }
h1 { font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; font-size: 21px; }
.topbar h1, .section-title { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* логотип клуба вместо букв КПВ */
.brand-mark { background: url("/static/icons/icon-192.png") center / cover no-repeat; color: transparent; border-radius: 50%; box-shadow: 0 0 18px -4px rgb(232 192 98 / .7); }

/* кнопки: золотой слиток */
button, .btn { background: var(--gold); color: var(--primary-foreground); box-shadow: var(--glow); font-weight: 650; }
button.ghost { background: transparent; color: var(--foreground); border-color: var(--border); box-shadow: none; }
button.ghost:hover { background: var(--accent); border-color: #6b5732; }
button.link, button.danger { box-shadow: none; }
button.danger { background: transparent; }
button.link { background: none; }

/* карточки: тёмные с тонкой золотой кромкой */
.card, .lead, dialog { background: linear-gradient(180deg, #17130d, #110e09); border-color: rgb(232 192 98 / .22); }
.lead:hover { border-color: rgb(232 192 98 / .7); box-shadow: 0 0 22px -12px rgb(232 192 98 / .8); }
.column { background: rgb(255 255 255 / .025); border: 1px solid rgb(232 192 98 / .14); }
.column-head .num, .stage-tabs button b { background: #2a2216; color: var(--foreground); }
.kpi .value { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
input, select, textarea { border-color: #3a3121; }
input:focus, select:focus, textarea:focus { border-color: #8a6a2c; }
dialog::backdrop { background: rgb(0 0 0 / .65); }
.invite-box { background: #201a10; border: 1px dashed rgb(232 192 98 / .4); }
.toast { background: var(--gold); color: var(--primary-foreground); box-shadow: var(--glow); }

/* боковая панель: чёрная, справа золотая нить */
.sidebar { border-right: 1px solid transparent; border-image: linear-gradient(180deg, transparent, #b8862b 30%, #b8862b 70%, transparent) 1; }
.nav button { background: transparent; box-shadow: none; color: var(--sidebar-foreground); }
.nav button.active { background: rgb(232 192 98 / .14); color: #f8dc8a; }
.me { border-top-color: rgb(232 192 98 / .2); }

/* переключатели стадий */
.stage-switch, .stage-tabs { background: #15110b; border: 1px solid rgb(232 192 98 / .14); }
.stage-switch button, .stage-tabs button { box-shadow: none; background: transparent; color: var(--foreground); }
.stage-switch button.on, .stage-tabs button.on { background: #2a2216; border-color: rgb(232 192 98 / .45); }
.stage-tabs button.on b, .stage-tabs button.s-invited.on b { background: var(--stage); color: #140f05; }
.column-head { border-bottom-width: 2px; }

/* кабинет ученика: сцена с прожектором */
.hero {
  background:
    radial-gradient(ellipse 80% 90% at 50% -20%, rgb(232 182 74 / .35), transparent 60%),
    linear-gradient(180deg, #120e08, #070604);
  border: 1px solid rgb(232 192 98 / .3);
}
.hero h1 { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 24px; }
.auth .card { box-shadow: 0 30px 80px -40px rgb(232 182 74 / .45); }

@media (max-width: 900px) {
  .sidebar { border-right: 0; border-bottom: 1px solid rgb(232 192 98 / .25); border-image: none; }
  .nav { background: rgb(255 255 255 / .05); }
  .nav button.active { background: var(--gold); color: var(--primary-foreground); }
  .me button { border-color: rgb(232 192 98 / .4); color: #f8dc8a; background: transparent; box-shadow: none; }
}
