/* ==========================================================================
   Mobile Quiz Landing Page - Styling
   ========================================================================== */

:root {
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette */
  --bg-dark: #0a0c10;
  --card-bg: rgba(18, 22, 32, 0.72);
  --card-border: rgba(255, 255, 255, 0.18);
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-subtle: rgba(255, 255, 255, 0.45);
  
  /* Primary Button (ТАК) Gradient & Glow */
  --primary-gradient: linear-gradient(135deg, #ff2a5f 0%, #ff7e40 100%);
  --primary-glow: rgba(255, 42, 95, 0.45);
  
  /* Secondary Button (НІ) */
  --secondary-bg: rgba(255, 255, 255, 0.08);
  --secondary-border: rgba(255, 255, 255, 0.25);
  
  /* Radius & Shadows */
  --radius-card: 28px;
  --radius-btn: 18px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* --- Global Reset & Lock Scroll --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh; /* Mobile viewport height fix */
  overflow: hidden;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
}

/* --- Video Background --- */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(5px); /* Легке розмиття заднього фону */
  transform: scale(1.05); /* Збільшення, щоб усунути розмиті мигтіння по краях */
}

/* Dark Gradient Overlay for readability */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center, 
    rgba(10, 12, 16, 0.4) 0%, 
    rgba(10, 12, 16, 0.85) 100%
  );
  backdrop-filter: blur(3px);
}

/* --- Main Layout Wrapper --- */
.quiz-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

/* --- Glassmorphism Quiz Card --- */
.quiz-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 36px 24px 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- 18+ Glowing Badge --- */
.badge-container {
  display: flex;
  justify-content: center;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-gradient);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  box-shadow: 0 0 25px var(--primary-glow);
  animation: pulseBadge 2.5s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--primary-glow);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 35px var(--primary-glow);
  }
}

/* --- Question Content --- */
.quiz-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.question-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Buttons Container --- */
.buttons-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

/* Base Button Style */
.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  user-select: none;
}

.btn-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.btn-subtext {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 2px;
}

/* Primary Button (ТАК) */
.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 15px var(--primary-glow);
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow);
  }
}

/* Secondary Button (НІ) */
.btn-secondary {
  background: var(--secondary-bg);
  color: var(--text-muted);
  border: 1px solid var(--secondary-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.14);
}

@media (hover: hover) {
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.4);
  }
}

/* --- Disclaimer --- */
.disclaimer {
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.3;
  max-width: 90%;
}

/* --- Responsive Adjustments for Small Mobile Screens --- */
@media (max-height: 640px) {
  .quiz-card {
    padding: 24px 18px 20px;
    gap: 16px;
  }
  
  .age-badge {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
  
  .question-title {
    font-size: 1.45rem;
  }
  
  .btn {
    min-height: 54px;
    padding: 10px 16px;
  }
  
  .btn-text {
    font-size: 1.1rem;
  }
}
