/* style.css — modern glass hero for WB AWARDS (2025) */
/* Используй Inter (подключён из Google Fonts) */

:root{
  --bg: #07070a;
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --muted: rgba(255,255,255,0.65);
  --accent: #7dd3fc;        /* мягкий голубой */
  --accent-2: #60a5fa;
  --glass-radius: 20px;
  --max-width: 1100px;
}

/* ==== Reset-ish ==== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color: #ffffff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-user-select:none;
  user-select:none;
  -ms-user-select:none;
}

/* ==== Hero layout ==== */
.hero{
  position:relative;
  min-height:100vh;
  width:100%;
  overflow:hidden;
  display:block;
}

/* Video backdrop: FIXED - убрана тряска и улучшено качество */
#bgVideo{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  /* Убраны трансформации, вызывающие тряску */
  filter: saturate(0.9) contrast(0.9) brightness(0.55); /* Увеличено затемнение */
  /* Убраны will-change и transition которые могли вызывать проблемы */
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference){
  #bgVideo{ 
    transform-origin: center;
  }
}

/* УЛУЧШЕННЫЙ ОВЕРЛЕЙ ДЛЯ ЗАТЕМНЕНИЯ - здесь регулируем затемнение */
.overlay-layer{
  position:absolute;
  inset:0;
  background:
    /* Основное затемнение - регулируйте прозрачность здесь */
    linear-gradient(180deg, rgba(6,8,12,0.25) 0%, rgba(6,8,12,0.5) 60%, rgba(2,2,3,0.85) 100%),
    /* Боковое затемнение (виньетка) */
    radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%),
    /* Акцентные градиенты */
    radial-gradient(60% 40% at 20% 20%, rgba(125,211,252,0.08), transparent 25%),
    radial-gradient(60% 40% at 80% 80%, rgba(80,160,255,0.06), transparent 25%);
  pointer-events:none;
  z-index:1;
}

/* canvas particles sit above video but below UI */
.particles{
  position:absolute;
  inset:0;
  z-index:2;
  opacity:0.7; /* Немного уменьшена прозрачность */
  pointer-events:none;
}

/* Glass card wrapper — center horizontally, content pushed lower */
.glass-wrap{
  position:relative;
  z-index:4;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  padding:40px 20px;
}

/* The card */
.glass-card{
  width:100%;
  max-width:var(--max-width);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  padding:28px;
  box-shadow: 0 10px 40px rgba(2,6,23,0.6), 0 2px 8px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px) saturate(120%);
  color:var(--muted);
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* nav row */
.top-row{ display:flex; justify-content:space-between; align-items:center; }
.top-nav{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 12px;
  background: transparent;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-cta:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #021029;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
  transform: translateY(-2px);
}

/* hero body - main visual block */
.hero-body{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:6px 10px 4px 10px; text-align:center; }

/* countdown / tag */
.countdown{
  font-weight:700;
  letter-spacing:0.6px;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  padding:6px 14px;
  border-radius:999px;
  font-size:0.95rem;
  box-shadow: 0 6px 20px rgba(96,165,250,0.06);
}

/* small tagline */
.tagline{ color:rgba(255,255,255,0.75); text-transform:uppercase; font-size:0.78rem; margin-top:2px; }

/* title */
.site-title{
  margin:6px 0 0 0;
  font-size: clamp(28px, 6vw, 48px);
  line-height:1;
  letter-spacing:-0.02em;
  font-weight:800;
  color:transparent;
  background: linear-gradient(90deg, #ffffff, rgba(125,211,252,0.95));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow: 0 6px 30px rgba(0,0,0,0.5);
}

/* lead text */
.lead{ color:rgba(255,255,255,0.78); max-width:760px; font-size:1rem; margin:6px 0 2px 0; }

/* actions */
.actions{ display:flex; gap:12px; margin-top:8px; flex-wrap:wrap; justify-content:center; }

button.btn {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  padding: 12px 20px; /* явно указываем padding */
  width: auto; /* убираем возможное наследование width */
  min-height: auto; /* убираем возможное наследование min-height */
  background: transparent; /* сбрасываем фон */
  border: 1px solid rgba(255,255,255,0.06); /* явно указываем border */
  border-radius: 999px; /* явно указываем border-radius */
  cursor: pointer;
  display: inline-flex; /* сохраняем flex-выравнивание */
  align-items: center;
  justify-content: center;
  text-decoration: none; /* убираем подчеркивание */
  color: inherit; /* наследуем цвет текста */
  box-sizing: border-box;
}

.btn, .nav-link, .modal-close, .nav-cta {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.btn{ display:inline-flex; align-items:center; justify-content:center; padding:12px 20px; border-radius:999px; font-weight:700; text-decoration:none; cursor:pointer; border:1px solid rgba(255,255,255,0.06); }

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #021029;
  box-shadow: 
    0 10px 35px rgba(125, 211, 252, 0.12), 
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 16px 40px rgba(96, 165, 250, 0.25),
    0 4px 15px rgba(96, 165, 250, 0.15);
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: white;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn, 
a.btn, 
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* footer */
.card-footer{ display:block; text-align:center; color:rgba(255,255,255,0.45); padding-top:6px; font-size:0.85rem; }

/* ========================================
      Page transition (fade)
======================================== */
.page-transition {
  position: fixed;
  inset: 0;
  background: #07070a;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .55s ease;
}

.page-transition.active {
  opacity: 1;
}

/* ========================================
      Fade-in + slight slide for card
======================================== */
.glass-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
}

.glass-card._show {
  opacity: 1;
  transform: translateY(0);
}

/* child fade-up */
.hero-body > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease .15s, transform .7s ease .15s;
}

.hero-body._show > * {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tweaks */
@media (max-width:900px){
  .glass-card{ padding:18px; margin-bottom:6vh; border-radius:16px; }
  .top-nav{ gap:8px }
}
@media (max-width:520px){
  .nav-link{ display:none }
  .nav-cta{ padding:8px 10px; }
  .glass-card{ padding:14px; margin-bottom:5vh }
  .lead{ font-size:0.95rem }
  .actions{ gap:8px }
}

/* reduced motion support */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
  #bgVideo { transform: scale(1) !important; }
}

/* ДОПОЛНИТЕЛЬНО: Классы для ручного управления затемнением */
.video-dark { filter: saturate(0.9) contrast(0.9) brightness(0.5) !important; }
.video-very-dark { filter: saturate(0.8) contrast(0.8) brightness(0.4) !important; }
.video-normal { filter: saturate(1) contrast(1) brightness(0.7) !important; }

/* Модальные окна */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.35s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: 0 12px 50px rgba(2,6,23,0.7), 0 2px 10px rgba(0,0,0,0.4);
  backdrop-filter: blur(14px) saturate(120%);
  color: var(--muted);
  transform: translateY(-20px);
  transition: transform 0.35s ease, opacity 0.35s ease;
  scroll-behavior: smooth;
}

/* Кастомный скролл */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-1);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

.results-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.results-list h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-2);
  text-align: center;        /* центрируем текст */
  margin: 18px 0 8px 0;      /* отступ сверху и снизу */
}

.results-list li {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.95rem;
  color: var(--muted);
}

.results-section {
  margin-top: 16px;
}

.results-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-2);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.results-section ul {
  list-style: decimal;
  padding-left: 18px;
}

.results-section ul li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.results-section.main .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.results-section.main .card {
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  color: #ffffff;
}

.results-section.extra .results-list.hidden { display: none; }
.results-section.extra .btn.small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.results-list .card {
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  color: #ffffff;
}

.results-list.hidden {
  display: none;
}

/* Карточки в разделе "Показать все" */
.results-section.extra .results-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.results-section.extra .results-list.hidden {
  display: none;
}

.results-section.extra .btn.small {
  padding: 6px 12px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}

/* Плавное появление карточек */
.results-section.extra .results-list .card {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s ease;
}

/* Активируем класс visible с задержкой для каждой карточки */
.results-section.extra .results-list.visible .card {
  opacity: 1;
  transform: translateY(0);
}

/* Грид для доп. карточек */
.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  justify-items: center;  /* центрируем карточки */
  margin-bottom: 16px;
}

.extra-grid h4 {
  grid-column: 1/-1;       /* заголовок на всю ширину */
  text-align: center;      /* центрируем текст */
  margin-bottom: 12px;
}

/* Карточки */
.results-list .card {
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  min-width: 120px;
  text-align: center;
  color: #ffffff;
}

.rules-list a {
  color: #5865F2;       /* Discord-фиолет/синий */
  text-decoration: none; /* Убираем подчёркивание */
  font-weight: 500;      /* Немного жирнее */
  transition: color 0.2s;
}

.rules-list a:hover {
  color: #4752C4;       /* Темный оттенок при наведении */
  text-decoration: underline; /* Подчёркивание при hover */
}

