/* ===== VIRAL QUIZ SITE - SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg-deep: #030712;
  --bg-navy: #0a0f1e;
  --bg-card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-glow: rgba(99,179,237,0.3);
  --accent: #63b3ed;
  --accent2: #f6ad55;
  --accent3: #68d391;
  --text: #f0f4f8;
  --text-muted: #718096;
  --gold: #f6d860;
  --danger: #fc8181;
  --glass: rgba(255,255,255,0.03);
  --shadow: 0 25px 60px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,179,237,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(246,173,85,0.07) 0%, transparent 60%);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* GRID NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ===== LAYOUT ===== */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TOP HOOK BAR ===== */
.hook-bar {
  background: linear-gradient(135deg, rgba(99,179,237,0.15), rgba(246,173,85,0.1));
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  padding: 8px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  animation: pulse-bar 3s ease-in-out infinite;
}

@keyframes pulse-bar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(246,173,85,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(246,173,85,0); }
}

/* ===== QUIZ HEADER ===== */
.quiz-header {
  text-align: center;
  margin-bottom: 28px;
}

.quiz-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99,179,237,0.1);
  border: 1px solid rgba(99,179,237,0.2);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.quiz-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

/* ===== PROGRESS BAR ===== */
.progress-section {
  margin-bottom: 28px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent2);
}

/* ===== QUESTION CARD ===== */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
  margin-bottom: 20px;
  animation: card-in 0.4s cubic-bezier(0.4,0,0.2,1);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.question-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(17px, 3.5vw, 21px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 28px;
}

/* ===== ANSWER OPTIONS ===== */
.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,179,237,0.08), rgba(246,173,85,0.05));
  opacity: 0;
  transition: opacity 0.2s;
}

.option:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(99,179,237,0.1);
}

.option:hover::before { opacity: 1; }

.option-letter {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(99,179,237,0.1);
  border: 1px solid rgba(99,179,237,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.2s;
}

.option:hover .option-letter {
  background: rgba(99,179,237,0.2);
  border-color: var(--accent);
}

.option-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

/* ===== AD PLACEHOLDERS ===== 
.ad-zone {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.ad-zone::before {
  content: 'Advertisement';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-deep);
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ad-zone-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Google AdSense placeholder 
.adsense-block {
  display: block;
  width: 100%;
  min-height: 90px;
}

/* ===== AFFILIATE BUTTONS ===== */
.aff-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.aff-btn-primary {
  background: linear-gradient(135deg, #f6ad55, #ed8936);
  color: #1a0a00;
  box-shadow: 0 4px 20px rgba(246,173,85,0.3);
}

.aff-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(246,173,85,0.45);
}

.aff-btn-secondary {
  background: linear-gradient(135deg, #63b3ed, #3182ce);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,179,237,0.25);
}

.aff-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,179,237,0.4);
}

.aff-btn-tertiary {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.aff-btn-tertiary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fade-out 0.5s ease 2.5s forwards;
}

@keyframes fade-out {
  to { opacity: 0; pointer-events: none; }
}

.loader-orb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--accent), var(--accent2), transparent);
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
  position: relative;
}

.loader-orb::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg-deep);
  border-radius: 50%;
}

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

.loader-text {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  animation: blink 1s ease-in-out infinite;
}

.loader-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

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

/* ===== EMAIL GATE ===== */
.email-gate {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  animation: card-in 0.4s ease;
}

.email-gate-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.email-gate-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.email-gate-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.email-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.email-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.email-input:focus {
  border-color: var(--accent);
}

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

.email-submit-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent2), #ed8936);
  border: none;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a0a00;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.email-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246,173,85,0.4);
}

.privacy-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ===== RESULT PAGE ===== */
.result-hero {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.result-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(99,179,237,0.05) 60deg, transparent 120deg);
  animation: slow-spin 8s linear infinite;
}

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

.result-emoji { font-size: 64px; margin-bottom: 14px; position: relative; z-index: 1; }

.result-type {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.result-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.result-desc {
  font-size: 15px;
  color: #a0aec0;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ===== SEO CONTENT BLOCK ===== */
.seo-content {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
}

.seo-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 12px;
  line-height: 1.3;
}

.seo-content h2:first-child { margin-top: 0; }

.seo-content p {
  font-size: 14px;
  color: #a0aec0;
  line-height: 1.7;
  margin-bottom: 14px;
}

.seo-content ul {
  list-style: none;
  margin: 0 0 16px;
}

.seo-content ul li {
  font-size: 14px;
  color: #a0aec0;
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.5;
}

.seo-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}

/* ===== SHARE BUTTONS ===== */
.share-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.share-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

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

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
}

.share-btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}

.share-btn-fb {
  background: linear-gradient(135deg, #4267b2, #2d4373);
  color: #fff;
}

.share-btn-tw {
  background: linear-gradient(135deg, #1da1f2, #0d8ed9);
  color: #fff;
}

.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* ===== OTHER QUIZZES SECTION ===== */
.other-quizzes {
  margin-bottom: 20px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quiz-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quiz-card-mini:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.quiz-card-mini .qc-emoji { font-size: 24px; }

.quiz-card-mini .qc-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.quiz-card-mini .qc-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== SCORE METER ===== */
.score-meter {
  margin: 20px 0;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-bar-label {
  font-size: 13px;
  font-weight: 600;
  width: 80px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.score-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.score-bar-pct {
  font-size: 12px;
  font-weight: 700;
  width: 36px;
  text-align: right;
  color: var(--accent2);
}

/* ===== COUNTDOWN ===== */
.quiz-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 20px;
}

.quiz-footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .page-wrap { padding: 16px 12px 40px; }
  .question-card { padding: 24px 18px; }
  .email-gate { padding: 24px 18px; }
  .quiz-grid { grid-template-columns: 1fr; }
  .email-input-wrap { flex-direction: column; }
  .email-submit-btn { width: 100%; }
}
