/*
Theme Name: TikLive Prelander - Better Quiz Text Visibility
Description: Improved text contrast on warm-up quiz modal.
Version: 4.6
*/

html, body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a1f;
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  padding: 0.85rem 1.5rem;
  height: 58px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: auto;
  height: auto;
  max-height: var(--logo-max-height, 42px);
}
.logo-text {
  font-size: var(--logo-font-size, 1.55rem);
  font-weight: 900;
  background: linear-gradient(90deg, #ff2d95, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Alignment */
.header-inner.align-left   { justify-content: space-between; }
.header-inner.align-center { justify-content: center; gap: 2rem; }
.header-inner.align-right  { justify-content: space-between; flex-direction: row-reverse; }

/* Live pill */
.live-pill {
  background: rgba(17, 17, 17, 0.85);
  color: #00ff9d;
  font-size: var(--live-count-size, 0.7rem);
  font-weight: 700;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(8px);
}
.live-dot {
  width: 7px; height: 7px; background: #00ff9d; border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Questions Section */
.questions {
  height: calc(100dvh - 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.questions::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 31, 0.72);
  z-index: 1;
}

.questions-inner {
  position: relative;
  z-index: 2;
  max-width: 1050px;
  width: 100%;
}

.questions h2 {
  font-size: clamp(2.1rem, 5.5vw, 2.85rem);
  margin-bottom: 0.35rem;
  font-weight: 900;
}

.questions-subtitle {
  font-size: 1.15rem;
  color: #c0c0e0;
  margin-bottom: 2.1rem;
}

/* Urgency */
.urgency {
  background: rgba(255, 45, 149, 0.12);
  color: #ff9ed8;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
  display: inline-block;
  font-weight: 500;
}

/* Vibe Buttons */
.question-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .question-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.q-btn {
  background: var(--button-bg, rgba(31, 31, 58, 0.95));
  border: 2px solid var(--button-border, #2a2a4a);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1.35rem 1rem;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.q-btn:hover {
  border-color: var(--button-hover-border, #ff2d95);
  background: var(--button-hover-bg, rgba(42, 31, 47, 0.95));
  transform: translateY(-4px);
}

.q-btn.selected {
  border-color: var(--button-selected-border, #ff2d95);
  background: var(--button-selected-bg, rgba(58, 31, 47, 0.95));
  box-shadow: 0 0 0 5px rgba(255,45,149,0.12);
}

.q-btn .content {
  position: relative;
  z-index: 2;
  transition: opacity 0.25s ease;
}

.q-btn.has-gif:hover .content {
  opacity: 0;
}

.q-btn .emoji {
  display: block;
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

.q-btn .hover-gif {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

.q-btn.has-gif:hover .hover-gif {
  opacity: 1;
}

/* Trust Bar */
.trust-bar {
  background: rgba(255,255,255,0.04);
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  color: #c0c0e0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.trust-bar .stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* Warm-up Quiz Modal - Improved Visibility */
.quiz-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.quiz-modal.active { display: flex; }

.quiz-content {
  background: #12122e;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  border: 1px solid #33335a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Stronger dark overlay for better text visibility */
.quiz-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 31, 0.92); /* Darker overlay */
  z-index: 1;
}

.quiz-content > * {
  position: relative;
  z-index: 2;
}

/* Make text more prominent */
.quiz-content h2 {
  font-size: 1.55rem;
  margin-bottom: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.quiz-option {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 2px solid #3a3a5a;
  color: #fff;
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.quiz-option:hover {
  background: rgba(255,45,149,0.18);
  border-color: #ff2d95;
  transform: translateY(-1px);
}

.quiz-option.selected {
  background: rgba(255,45,149,0.25);
  border-color: #ff2d95;
}

.quiz-progress {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1.1rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .questions h2 { font-size: 1.85rem; }
  .q-btn { padding: 1.2rem 0.9rem; font-size: 0.95rem; min-height: 120px; }
}