/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.header__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
  object-fit: cover;
  transition: var(--transition-base);
}

.header__brand:hover .header__logo {
  box-shadow: var(--shadow-glow-strong);
  transform: scale(1.05);
}

.header__title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.header__title span {
  color: var(--accent-primary);
  text-shadow: 0 0 20px var(--accent-primary-glow);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-base);
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--accent-primary-dim);
}

.nav__link:hover::after {
  width: 60%;
}

.nav__link.active {
  color: var(--accent-primary);
  background: var(--accent-primary-dim);
}

.nav__link.active::after {
  width: 60%;
}

.nav__icon {
  font-size: 1rem;
}

.nav__label-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav__link--live {
  position: relative;
}

.nav__link--live .live-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #ff3333;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px #ff3333; }
  50% { opacity: 0.4; box-shadow: 0 0 12px #ff3333; }
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ========================================
   MAIN LAYOUT
   ======================================== */
.main {
  margin-top: var(--header-height);
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-lg) var(--space-xl);
  min-height: calc(100vh - var(--header-height));
}

/* ========================================
   HERO SECTION - Poll
   ======================================== */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.poll-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.poll-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-purple));
}

.poll-header {
  padding: var(--space-xl) var(--space-xl) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poll-header__left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.poll-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.poll-badge--live {
  background: var(--accent-hot-dim);
  color: var(--accent-hot);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.poll-badge--live .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent-hot);
  animation: livePulse 1.5s ease-in-out infinite;
}

.poll-badge--week {
  background: var(--accent-secondary-dim);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.poll-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 0 var(--space-xl);
  color: var(--text-primary);
}

.poll-title span {
  color: var(--accent-primary);
  text-shadow: 0 0 30px var(--accent-primary-glow);
}

.poll-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.poll-stats__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.poll-stats__item strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Poll Candidates Grid */
.poll-candidates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl) var(--space-xl);
}

.candidate-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
}

.candidate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, var(--accent-primary-dim) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.candidate-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.candidate-card:hover::before {
  opacity: 1;
}

.candidate-card__img-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto var(--space-md);
  z-index: 1;
}

.candidate-card__img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--border-color);
  transition: border-color var(--transition-base);
}

.candidate-card:hover .candidate-card__img {
  border-color: var(--accent-primary);
}

.candidate-card__status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-tertiary);
}

.candidate-card__status--nominated {
  background: var(--accent-hot);
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.5);
}

.candidate-card__name {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
}

.candidate-card__role {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

/* Progress bar */
.candidate-card__progress {
  position: relative;
  z-index: 1;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.progress-bar__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.progress-bar__fill--1 { background: linear-gradient(90deg, #ff3366, #ff6b9d); }
.progress-bar__fill--2 { background: linear-gradient(90deg, #00e5ff, #6ee7ff); }
.progress-bar__fill--3 { background: linear-gradient(90deg, #ffaa00, #ffd060); }
.progress-bar__fill--4 { background: linear-gradient(90deg, #a855f7, #d8a8ff); }

.candidate-card__percentage {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.candidate-card__percentage--1 { color: #ff3366; }
.candidate-card__percentage--2 { color: #00e5ff; }
.candidate-card__percentage--3 { color: #ffaa00; }
.candidate-card__percentage--4 { color: #a855f7; }

.candidate-card__votes {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

/* Vote button */
.btn-vote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  margin-top: var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: var(--transition-base);
}

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

.btn-vote:hover::before {
  left: 100%;
}

.btn-vote--primary {
  background: linear-gradient(135deg, var(--accent-primary), #00cc6a);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.25);
}

.btn-vote--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 255, 136, 0.35);
}

.btn-vote--primary:active {
  transform: translateY(0);
}

.btn-vote--voted {
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
  pointer-events: none;
}

/* Poll timer */
.poll-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-xl) var(--space-xl);
}

.poll-timer__block {
  text-align: center;
}

.poll-timer__value {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
  text-shadow: 0 0 20px var(--accent-primary-glow);
  line-height: 1;
}

.poll-timer__label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.poll-timer__sep {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  color: var(--text-muted);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ---- Ad Banner ---- */
.ad-banner {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-banner::before {
  content: '📺';
  font-size: 1.2rem;
  margin-right: var(--space-sm);
}

.ad-banner--large {
  min-height: 250px;
}

.ad-banner--sidebar {
  min-height: 250px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) var(--space-xl);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer__brand-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.footer__brand-title span {
  color: var(--accent-primary);
}

.footer__brand-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

.footer__col-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
}

.footer__socials a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer__socials a:hover {
  color: var(--accent-primary);
}

