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

html {
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #0d0d0f 0%, #1a1a1f 100%);
  min-height: 100vh;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 45, 123, 0.2);
  margin-bottom: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.age-badge {
  background: linear-gradient(135deg, #ff2d7b, #ff6b3d);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.header-title {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #00d26a;
  font-weight: 600;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #00d26a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ========== PROGRESS BAR ========== */
.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, #ff2d7b, #ff6b3d);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ========== MAIN CONTENT ========== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

/* ========== QUIZ SCREENS ========== */
.quiz-screen {
  width: 100%;
  max-width: 600px;
  display: none;
  animation: fadeIn 0.5s ease;
}

.quiz-screen.active {
  display: block;
}

.quiz-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.quiz-title span {
  background: linear-gradient(135deg, #ff2d7b, #ff6b3d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quiz-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
}

/* ========== QUIZ OPTIONS ========== */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.option-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.option-btn:hover {
  background: rgba(255, 45, 123, 0.1);
  border-color: rgba(255, 45, 123, 0.5);
  transform: translateY(-2px);
}

.option-btn.selected {
  background: linear-gradient(135deg, rgba(255, 45, 123, 0.2), rgba(255, 107, 61, 0.2));
  border-color: #ff2d7b;
}

.option-icon {
  font-size: 1.5rem;
}

/* ========== RESULT SCREEN ========== */
.result-screen {
  display: none;
  animation: fadeIn 0.6s ease;
  width: 100%;
  max-width: 800px;
}

.result-screen.active {
  display: block;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
}

.result-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.match-percentage {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2d7b, #ff6b3d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
  line-height: 1;
}

.result-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

/* ========== MATCHED GIRLS ========== */
.matched-girls {
  display: flex;
  justify-content: center;
  gap: -10px;
  margin-bottom: 2rem;
}

.girl-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #ff2d7b;
  overflow: hidden;
  margin-left: -15px;
  box-shadow: 0 4px 20px rgba(255, 45, 123, 0.3);
}

.girl-avatar:first-child {
  margin-left: 0;
}

.girl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== FEATURES ========== */
.features-list {
  list-style: none;
  text-align: left;
  max-width: 450px;
  margin: 0 auto 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature-check {
  color: #ff2d7b;
  font-weight: bold;
  font-size: 1.25rem;
}

/* ========== CTA BUTTON ========== */
.cta-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.cta-button {
  display: block;
  width: 100%;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #ff2d7b, #ff6b3d);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(255, 45, 123, 0.4);
  transition: all 0.3s ease;
  animation: ctaPulse 2s infinite;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(255, 45, 123, 0.5);
}

.cta-subtext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.verified-icon {
  color: #00d26a;
}

/* ========== SOCIAL PROOF TOAST ========== */
.social-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 45, 123, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: white;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1000;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.social-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-highlight {
  color: #ff2d7b;
  font-weight: 600;
}

/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 2rem 0 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 40px rgba(255, 45, 123, 0.4); }
  50% { box-shadow: 0 15px 50px rgba(255, 45, 123, 0.6); }
}

/* ========== DESKTOP RESPONSIVE ========== */
@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
  
  .container {
    padding: 1.5rem 2rem;
  }
  
  .header {
    padding: 1.5rem 0;
    margin-bottom: 3rem;
  }
  
  .age-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .header-title {
    font-size: 1.25rem;
  }
  
  .header-right {
    font-size: 1rem;
  }
  
  .progress-container {
    height: 6px;
    margin-bottom: 3rem;
  }
  
  .main-content {
    padding: 3rem 0;
  }
  
  .quiz-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .quiz-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
  }
  
  .options-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  
  .option-btn {
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    border-radius: 20px;
  }
  
  .option-icon {
    font-size: 1.75rem;
  }
  
  .result-emoji {
    font-size: 5rem;
    margin-bottom: 2rem;
  }
  
  .result-title {
    font-size: 2.75rem;
  }
  
  .match-percentage {
    font-size: 7rem;
    margin: 1.5rem 0;
  }
  
  .result-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .matched-girls {
    margin-bottom: 3rem;
  }
  
  .girl-avatar {
    width: 100px;
    height: 100px;
    border-width: 4px;
    margin-left: -20px;
  }
  
  .features-list {
    max-width: 550px;
    margin-bottom: 3rem;
  }
  
  .feature-item {
    font-size: 1.25rem;
    padding: 1rem 0;
  }
  
  .feature-check {
    font-size: 1.5rem;
  }
  
  .cta-container {
    max-width: 600px;
  }
  
  .cta-button {
    padding: 1.75rem 3rem;
    font-size: 1.5rem;
  }
  
  .cta-subtext {
    font-size: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
  }
  
  .social-toast {
    bottom: 30px;
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  
  .footer {
    font-size: 0.875rem;
    padding: 3rem 0 1.5rem;
  }
}

/* ========== LARGE DESKTOP ========== */
@media (min-width: 1200px) {
  html {
    font-size: 20px;
  }
  
  .container {
    max-width: 1400px;
    padding: 2rem 4rem;
  }
  
  .quiz-screen {
    max-width: 800px;
  }
  
  .result-screen {
    max-width: 1000px;
  }
  
  .quiz-title {
    font-size: 3rem;
  }
  
  .matched-girls {
    gap: -15px;
  }
  
  .girl-avatar {
    width: 120px;
    height: 120px;
    margin-left: -25px;
  }
  
  .cta-container {
    max-width: 700px;
  }
}

/* ========== MOBILE LANDSCAPE ========== */
@media (max-height: 600px) and (orientation: landscape) {
  .main-content {
    padding: 1rem 0;
  }
  
  .quiz-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .option-btn {
    padding: 0.75rem 1rem;
  }
  
  .result-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .match-percentage {
    font-size: 3rem;
  }
}
