/* ============================================
   AnotherLine.Award — стили раздела премии.
   Базируются на дизайн-токенах основного сайта
   (assets/design-tokens.css), акценты — золото премии.
   ============================================ */

/* ===== Анимации ===== */
@keyframes awardFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes awardShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes awardGlowPulse {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(0, 176, 185, 0.18);
  }
  50% {
    box-shadow: 0 0 44px rgba(0, 176, 185, 0.38);
  }
}
@keyframes awardCountdownFlip {
  from {
    opacity: 0.35;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes awardCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.award-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Появление секций при скролле (IntersectionObserver в home.js). */
.award-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.award-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Каркас страницы ===== */
.award-page-enter {
  animation: awardFadeUp 0.55s ease both;
}
.award-page-enter > *:nth-child(2) {
  animation-delay: 0.08s;
}
.award-page-enter > *:nth-child(3) {
  animation-delay: 0.16s;
}

.award-accent {
  color: var(--primary);
}

/* ===== Hero ===== */
.award-hero {
  text-align: center;
  padding: 72px 0 44px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: awardFadeUp 0.6s ease both;
}
.award-hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(0, 176, 185, 0.12), transparent 65%);
  pointer-events: none;
}
.award-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.award-hero-logo {
  width: 120px;
  height: auto;
  border-radius: var(--radius-lg);
}
.award-hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.award-hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  margin: 0;
}
.award-hero-title-brand {
  color: var(--text-primary);
}
.award-hero-title-accent {
  color: var(--primary);
  background: linear-gradient(90deg, var(--primary) 0%, #7ee8ec 45%, var(--primary) 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: awardShimmer 5s linear infinite;
}
.award-hero-year {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--text-secondary);
  margin: 0;
}
.award-hero-stage-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 0;
}
.award-hero-stage-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.award-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

/* ===== Таймер ===== */
.award-countdown {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
}
.award-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.award-countdown-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text-primary);
  animation: awardCountdownFlip 0.45s ease;
}
.award-countdown-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ===== Этапы ===== */
.award-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 48px 0 20px;
}
.award-stages-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.award-stage-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  position: relative;
  animation: awardCardIn 0.55s ease both;
}
.award-stage-card:nth-child(2) {
  animation-delay: 0.07s;
}
.award-stage-card:nth-child(3) {
  animation-delay: 0.14s;
}
.award-stage-card:nth-child(4) {
  animation-delay: 0.21s;
}
.award-stage-current {
  animation: awardGlowPulse 2.6s ease-in-out infinite;
}
.award-stage-current {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.award-stage-past {
  opacity: 0.75;
}
.award-stage-num {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 15px;
}
.award-stage-current .award-stage-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.award-stage-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.award-stage-name {
  font-weight: 600;
}
.award-stage-date {
  font-size: 13px;
  color: var(--text-muted);
}
.award-stage-now {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

/* ===== Статистика ===== */
.award-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 36px 0 0;
}
.award-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.award-stat-num {
  font-family: var(--font-display);
  font-size: 34px;
}
.award-stat-label {
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Заголовки страниц ===== */
.award-page-header {
  padding: 48px 0 8px;
}
.award-page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 8px;
}
.award-page-subtitle {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Номинации ===== */
.award-nominations,
.award-results {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}
.award-nomination-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.award-nomination-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.award-nomination-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}
.award-nomination-desc {
  color: var(--text-secondary);
  margin: 4px 0 0;
  font-size: 14px;
}
.award-nominees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.award-nominees-empty {
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.award-nominee-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  animation: awardCardIn 0.5s ease both;
}
.award-nominees-grid .award-nominee-card:nth-child(2) {
  animation-delay: 0.05s;
}
.award-nominees-grid .award-nominee-card:nth-child(3) {
  animation-delay: 0.1s;
}
.award-nominees-grid .award-nominee-card:nth-child(4) {
  animation-delay: 0.15s;
}
.award-nominees-grid .award-nominee-card:nth-child(5) {
  animation-delay: 0.2s;
}
.award-nominees-grid .award-nominee-card:nth-child(6) {
  animation-delay: 0.25s;
}
.award-nominee-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}
.award-nominee-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.award-nominee-card.is-voted {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  animation: awardGlowPulse 2.6s ease-in-out infinite;
}
.award-nominee-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.award-nominee-img-placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--text-muted);
  background: var(--bg-input);
}
.award-nominee-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.award-nominee-title {
  font-size: 15px;
  margin: 0;
}
.award-nominee-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.award-nominee-actions {
  margin-top: auto;
}
.award-vote-btn {
  width: 100%;
}
.award-vote-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.award-results-note {
  font-size: 13px;
  color: var(--text-muted);
}
.award-results-note a {
  color: var(--primary);
}

/* ===== Итоги ===== */
.award-winner {
  display: flex;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(0, 176, 185, 0.08), transparent);
  animation: awardGlowPulse 3s ease-in-out infinite;
}
.award-winner-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.award-winner-cup {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.award-winner-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 4px 0 0;
}
.award-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.award-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.award-result-item:last-child {
  border-bottom: none;
}
.award-result-item.is-winner {
  color: var(--primary);
}
.award-result-medal {
  width: 28px;
  text-align: center;
  flex: 0 0 28px;
}
.award-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.award-result-link {
  margin-left: auto;
  color: var(--text-muted);
  text-decoration: none;
}

/* ===== Формы ===== */
.award-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}
.award-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.award-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.award-field-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.award-field input,
.award-field select,
.award-field textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  padding: 10px 12px;
  font: inherit;
}
.award-field input:focus,
.award-field select:focus,
.award-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.award-form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.award-form-error {
  color: var(--danger);
  font-size: 14px;
  margin: 0;
}
.award-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

/* Поиск релиза: подсказки */
.award-search-box {
  position: absolute;
  z-index: 30;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-top: 4px;
  overflow: hidden;
  min-width: 280px;
}
.award-field {
  position: relative;
}
.award-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.award-search-item:hover {
  background: var(--bg-card-hover);
}
.award-search-item img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

/* ===== Правила ===== */
.award-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 8px;
}
.award-rule {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 18px 20px;
}
.award-rule h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.award-rule p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}
.award-suggest {
  margin-top: 36px;
}

/* ===== Вход ===== */
.award-login-main {
  min-height: 60vh;
}
.award-login {
  max-width: 440px;
  margin: 0 auto;
  padding-top: 48px;
}
.award-login-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.award-login-tab {
  padding: 8px 16px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--border);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
}
.award-login-tab.is-active {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Бейдж авторизации в навбаре ===== */
.award-auth-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--border);
  margin-left: 8px;
}
.award-auth-badge.is-auth {
  cursor: pointer;
}
.award-auth-badge-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.award-auth-badge-role {
  font-size: 11px;
  color: var(--primary);
}

/* ===== Архив ===== */
.award-archive-years {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.award-archive-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-decoration: none;
  transition: var(--transition);
}
.award-archive-year:hover {
  border-color: var(--primary);
}
.award-archive-year img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.award-archive-year-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text-primary);
}
.award-archive-year-title {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.award-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
}
.award-empty-text {
  color: var(--text-muted);
}
.award-empty-text a {
  color: var(--primary);
}

/* ===== Адаптив ===== */
@media (max-width: 640px) {
  .award-form-row {
    grid-template-columns: 1fr;
  }
  .award-countdown {
    gap: 16px;
  }
  .award-countdown-num {
    font-size: 24px;
  }
  .award-stats {
    gap: 20px;
  }
  .award-winner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Светлая тема (токены переключает theme.js) ===== */
html[data-theme='light'] .award-nominee-img-placeholder {
  background: rgba(0, 0, 0, 0.06);
}
