/* ===== CUSTOM PROPERTIES ===== */
:root {
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --gold-dark: #b8941f;
  --bg-deep: #0a0a12;
  --bg-card: #12121e;
  --bg-surface: #1a1a2e;
  --text-primary: #f0eee6;
  --text-secondary: #a09e96;
  --text-muted: #6b6960;
  --danger: #ef4444;
  --border: rgba(212, 175, 55, 0.15);
  --glow: rgba(212, 175, 55, 0.25);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

.page-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,18,0.5) 0%, rgba(10,10,18,0.85) 70%, var(--bg-deep) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.8; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.1); }
  50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.25); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Countdown */
.countdown-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.countdown-digits {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 64px;
}

.countdown-unit span {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-unit small {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.countdown-sep {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: -10px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== STATUS MESSAGES ===== */
.status-message {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.status-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.status-message h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.status-message p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== SECTION STYLING ===== */
.voting-section, .results-section {
  padding: 60px 20px 80px;
  width: 100%;
  max-width: 900px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== CHOICES GRID ===== */
.choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .choices-grid {
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .choices-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.choice-card {
  position: relative;
  border-radius: 16px;
  background: var(--bg-card);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s ease;
  outline: none;
}

.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border-color: rgba(212, 175, 55, 0.3);
}

.choice-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 12px 40px rgba(212, 175, 55, 0.2);
  transform: translateY(-4px);
}

.choice-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  overflow: hidden;
}

.choice-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.choice-card:hover .choice-image-wrap img {
  transform: scale(1.05);
}

.choice-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.2);
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
}

.choice-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.choice-card.is-selected .choice-check {
  opacity: 1;
  transform: scale(1);
}

.choice-check svg {
  width: 16px;
  height: 16px;
  stroke: var(--bg-deep);
  stroke-width: 3;
  fill: none;
}

.choice-info {
  padding: 14px 12px;
}

.choice-name {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

/* ===== SELECTED INFO ===== */
.selected-info {
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.selected-info strong {
  color: var(--gold-light);
}

/* ===== EMAIL FORM ===== */
.email-form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: rgba(255,255,255,0.07);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 0.85rem;
}

/* ===== RESULTS ===== */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.result-card.is-pick {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.result-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.result-card.is-pick .result-rank {
  background: var(--gold);
  color: var(--bg-deep);
}

.result-card.is-leader .result-rank {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--bg-deep);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: rgba(212, 175, 55, 0.2);
}

.result-details {
  flex: 1;
  min-width: 0;
}

.result-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.result-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-card.is-pick .result-name {
  color: var(--gold-light);
}

.result-your-pick {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.result-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.result-card.is-pick .result-bar-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.result-card.is-leader .result-bar-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.result-stats {
  text-align: right;
  flex-shrink: 0;
  min-width: 65px;
}

.result-percent {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.result-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.total-votes {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.total-votes strong {
  color: var(--text-secondary);
  font-weight: 700;
}

/* ===== SHARE SECTION ===== */
.share-section {
  padding: 0 20px 60px;
  width: 100%;
  max-width: 580px;
}

.share-card {
  text-align: center;
  padding: 36px 28px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid var(--border);
}

.share-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.share-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.share-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.share-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.share-link-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  outline: none;
}

.copy-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--gold-light);
}

.social-share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-btn.facebook {
  background: rgba(24, 119, 242, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(24, 119, 242, 0.25);
}

.social-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.25);
  transform: translateY(-2px);
}

.social-btn.twitter {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}

.social-btn.twitter:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ===== ALREADY VOTED ===== */
.already-voted {
  text-align: center;
  padding: 40px 20px 60px;
  max-width: 500px;
}

.already-voted h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.already-voted p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== POWERED BY ===== */
#wbx-powered-by-slot {
  width: 100%;
  max-width: 900px;
  padding: 20px 24px 30px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .countdown-unit { min-width: 52px; padding: 10px 10px; }
  .countdown-unit span { font-size: 1.4rem; }
  .section-title { font-size: 1.9rem; }
  .email-form-wrapper { padding: 24px 18px; }
  .result-card { padding: 12px 14px; gap: 12px; }
  .result-thumb { width: 40px; height: 40px; }
  .result-rank { width: 30px; height: 30px; font-size: 0.75rem; }
  .result-name { font-size: 0.85rem; }
  .result-stats { min-width: 55px; }
  .result-percent { font-size: 1rem; }
  .share-card { padding: 28px 20px; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 4rem; }
}
