/* ============================================
   WHAT SHOULD WE BUILD NEXT — FEEDBACK POLL
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hidden { display: none !important; }

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --bg-dark: #0f1029;
  --bg-card: #171938;
  --bg-card-hover: #1e2148;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-active: rgba(99, 102, 241, 0.5);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  overflow: hidden;
}

.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(15, 16, 41, 0.5) 0%,
    rgba(15, 16, 41, 0.75) 50%,
    rgba(15, 16, 41, 0.98) 100%
  );
  z-index: 1;
}

.hero-decor-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 1;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
  top: -100px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4), transparent 70%);
  bottom: -80px;
  left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto;
}

/* ---- COUNTDOWN BAR ---- */
.countdown-bar {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  text-align: center;
}

.countdown-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.countdown-inner svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

#countdown-timer {
  font-weight: 600;
  color: var(--accent-light);
  font-family: var(--font-heading);
}

/* ---- STATUS MESSAGES ---- */
.status-message {
  padding: 80px 20px;
  text-align: center;
}

.status-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 48px;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border);
}

.status-card svg {
  margin-bottom: 20px;
}

.status-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.status-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---- POLL SECTION ---- */
.poll-section {
  flex: 1;
  padding: 40px 20px 60px;
}

.section-container {
  max-width: 760px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- SELECTION COUNTER ---- */
.selection-counter {
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.selection-counter .count-num {
  color: var(--accent-light);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ---- CHOICES GRID ---- */
.choices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 560px) {
  .choices-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.choice-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.choice-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.choice-btn.is-selected {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 24px rgba(99, 102, 241, 0.2);
}

.choice-btn.is-selected .choice-check {
  background: var(--primary);
  border-color: var(--primary);
}

.choice-btn.is-selected .choice-check svg {
  opacity: 1;
}

.choice-check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  background: transparent;
}

.choice-check svg {
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
}

.choice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.choice-label {
  flex: 1;
  line-height: 1.3;
}

.choice-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---- SUGGESTION BOX ---- */
.suggestion-box {
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.suggestion-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
  cursor: pointer;
}

.suggestion-label svg {
  color: var(--accent);
}

.suggestion-box textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s ease;
  line-height: 1.5;
}

.suggestion-box textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.suggestion-box textarea::placeholder {
  color: var(--text-dim);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ---- EMAIL & SUBMIT ---- */
.email-submit-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 560px) {
  .email-submit-area {
    flex-direction: row;
    align-items: flex-end;
  }
}

.email-field {
  flex: 1;
}

.email-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.email-field input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.25s ease;
}

.email-field input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.email-field input::placeholder {
  color: var(--text-dim);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 180px;
  height: 50px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

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

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ---- ERROR MESSAGE ---- */
.error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #fca5a5;
  font-size: 0.9rem;
  margin-top: 12px;
}

.error-msg svg {
  flex-shrink: 0;
  color: var(--error);
}

/* ---- RESULTS ---- */
.result-header {
  text-align: center;
  margin-bottom: 36px;
}

.result-header svg {
  margin-bottom: 16px;
}

.result-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.result-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.confetti-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.results-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.result-item.is-pick {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.result-rank {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.result-item:nth-child(1) .result-rank { color: #fbbf24; }
.result-item:nth-child(2) .result-rank { color: #c0c0c0; }
.result-item:nth-child(3) .result-rank { color: #cd7f32; }

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

.result-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.your-pick-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.result-bar-track {
  width: 100%;
  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(--primary), var(--accent));
  transition: width 1s ease;
  min-width: 2px;
}

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

.result-percent {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-light);
}

.result-votes {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* No stats variant */
.result-item.no-stats .result-bar-track { display: none; }
.result-item.no-stats .result-stats { display: none; }
.result-item.no-stats .result-rank { display: none; }

/* ---- SUGGESTION THANKS ---- */
.suggestion-thanks {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  font-size: 0.9rem;
  color: #fde68a;
}

.suggestion-thanks svg {
  flex-shrink: 0;
}

/* ---- SHARE PANEL ---- */
.share-panel {
  margin-top: 40px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-align: center;
}

.share-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.share-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.share-url-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.share-url-row input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font-body);
  min-width: 0;
}

.copy-btn {
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

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

.social-btns {
  display: flex;
  gap: 12px;
  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.25s ease;
}

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

.social-fb:hover {
  background: rgba(24, 119, 242, 0.25);
}

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

.social-tw:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---- POWERED BY SLOT ---- */
#wbx-powered-by-slot {
  padding: 20px;
  text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
  .hero {
    min-height: 50vh;
    padding: 100px 40px 80px;
  }
  .hero h1 {
    font-size: 3.8rem;
  }
  .poll-section {
    padding: 50px 40px 80px;
  }
}

@media (max-width: 559px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .submit-btn {
    width: 100%;
  }
  .result-item {
    padding: 14px 16px;
    gap: 12px;
  }
}
