/* =========================================
   LoveTester.site - Main Stylesheet
   ========================================= */

:root {
  --pink:        #e8567a;
  --pink-light:  #fdf0f4;
  --pink-mid:    #f5c1d0;
  --purple:      #7c5cbf;
  --purple-light:#f0ecf9;
  --gold:        #c9933a;
  --gold-light:  #fdf5e6;
  --text-primary:#1a1a2e;
  --text-muted:  #5f5f7a;
  --text-hint:   #9898b0;
  --surface:     #ffffff;
  --surface-2:   #f8f7fc;
  --border:      rgba(0,0,0,0.08);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --shadow-soft: 0 2px 16px rgba(232,86,122,0.10);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  min-height: 100vh;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--pink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 960px;
}

.section {
  padding: 48px 0;
}

.section--tight {
  padding: 32px 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}

.nav {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
  background: var(--pink-light);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 40px 20px 32px;
  text-align: center;
  margin-top: 64px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-disclaimer {
  font-size: 13px;
  color: var(--text-hint);
  max-width: 560px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-hint);
}

/* Inputs */
.input-field {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  padding: 0 16px;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.input-field:focus {
  outline: none;
  border-color: var(--pink);
}

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

@media (max-width: 480px) {
  .input-field {
    height: 48px;
  }
}

/* Input shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
  border-color: var(--pink) !important;
}

/* CTA button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  min-width: 220px;
}

.cta-button:hover {
  background: #d44a6d;
  text-decoration: none;
}

.cta-button:active {
  transform: scale(0.97);
}

.cta-button.loading {
  pointer-events: none;
  opacity: 0.85;
}

.cta-button--outline {
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
}

.cta-button--outline:hover {
  background: var(--pink-light);
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.18); }
  60%       { transform: scale(1.08); }
}

.cta-button .heart-icon {
  display: inline-block;
}

.cta-button.loading .heart-icon {
  animation: heartbeat 0.7s ease-in-out 1;
}

/* Result card */
.result-card {
  background: var(--surface);
  border: 1px solid var(--pink-mid);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.score-display {
  margin-bottom: 24px;
}

.score-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 72px;
  line-height: 1;
  color: var(--pink);
  font-weight: 700;
}

.score-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* FLAMES badge */
.flames-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-light);
  border: 1px solid var(--pink-mid);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 12px;
}

.flames-letter {
  font-size: 22px;
  font-weight: 700;
  color: var(--pink);
  font-family: 'Playfair Display', Georgia, serif;
}

.flames-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.flames-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Zodiac result */
.zodiac-pairing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.zodiac-sign {
  font-size: 15px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-light);
  padding: 4px 14px;
  border-radius: 50px;
}

.zodiac-connector {
  color: var(--text-hint);
  font-size: 18px;
}

.zodiac-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.result-message {
  font-size: 16px;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Share / retry buttons */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.share-button:hover {
  background: #d44a6d;
}

.retry-button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
}

.retry-button:hover {
  color: var(--pink);
}

/* Tool card */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.15s, transform 0.15s;
}

.tool-card:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
  text-decoration: none;
}

.tool-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.tool-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.tool-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.faq h2 {
  margin-bottom: 24px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 18px 0;
  gap: 16px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--pink);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

details[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 18px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 16px; }
h2 { font-size: clamp(22px, 4vw, 32px); margin-bottom: 12px; }
h3 { font-size: clamp(18px, 3vw, 22px); margin-bottom: 8px; }

p { margin-bottom: 16px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.step {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--pink);
  color: white;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.step-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Hero section */
.hero {
  text-align: center;
  padding: 56px 0 32px;
}

.hero .tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Form section */
.tester-form {
  padding: 0 0 40px;
}

.name-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .name-inputs {
    grid-template-columns: 1fr;
  }
}

.birthday-toggle {
  text-align: center;
  margin-bottom: 12px;
}

.birthday-toggle button {
  background: none;
  border: none;
  color: var(--pink);
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  font-weight: 500;
}

.birthday-toggle button:hover {
  text-decoration: underline;
}

.birthday-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .birthday-inputs {
    grid-template-columns: 1fr;
  }
}

.birthday-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.dob-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dob-selects select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  padding: 0 10px;
  color: var(--text-primary);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239898b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.dob-selects select:focus {
  outline: none;
  border-color: var(--pink);
}

.form-submit {
  text-align: center;
  margin-top: 20px;
}

/* Blog styles */
.blog-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.blog-card:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
  text-decoration: none;
}

.blog-card__category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Article styles */
.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 12px;
}

.article-body h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-body h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article-body li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--text-primary);
}

/* Disclaimer box */
.disclaimer-box {
  background: var(--surface-2);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Stars rating */
.star-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0;
}

.star {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
}

.star.filled {
  background: var(--gold);
}

/* Copy confirmation toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

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

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-primary);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 200;
  font-size: 14px;
}

.cookie-notice p {
  margin: 0;
  color: rgba(255,255,255,0.85);
}

.cookie-notice button {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Quiz specific */
.quiz-step {
  display: none;
}

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

.quiz-progress {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--pink);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.quiz-step-label {
  font-size: 13px;
  color: var(--text-hint);
  text-align: center;
  margin-bottom: 8px;
}

.quiz-question {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-family: 'Playfair Display', Georgia, serif;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}

.quiz-option:hover {
  border-color: var(--pink);
  background: var(--pink-light);
}

.quiz-option.selected {
  border-color: var(--pink);
  background: var(--pink-light);
  font-weight: 500;
}

.quiz-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.quiz-option.selected .quiz-option-letter {
  background: var(--pink);
  color: white;
}

/* Detector / Love meter */
.meter-container {
  text-align: center;
  padding: 32px 0;
}

.meter-svg {
  width: 280px;
  height: 160px;
  margin: 0 auto;
}

.meter-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Zodiac grid */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.zodiac-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.zodiac-card:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}

.zodiac-card.selected {
  border-color: var(--purple);
  background: var(--purple-light);
}

.zodiac-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.zodiac-card__dates {
  font-size: 11px;
  color: var(--text-hint);
}

/* Compatibility matrix */
.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 24px;
}

.compat-table th, .compat-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compat-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-2);
}

.compat-score {
  display: flex;
  gap: 3px;
}

.compat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.compat-dot.filled {
  background: var(--gold);
}

/* FLAMES visual */
.flames-visual {
  font-family: monospace;
  font-size: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  text-align: center;
  line-height: 2;
  overflow-x: auto;
  white-space: nowrap;
}

.flames-visual .crossed {
  text-decoration: line-through;
  color: var(--text-hint);
}

.flames-visual .remaining {
  color: var(--pink);
  font-weight: 700;
}

/* Sign detail card */
.sign-detail {
  background: var(--purple-light);
  border: 1px solid rgba(124,92,191,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin: 32px 0;
}

.sign-detail__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 4px;
}

.sign-detail__dates {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sign-detail__meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sign-meta-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  background: white;
  color: var(--purple);
}

.sign-detail__traits {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sign-detail__traits li {
  font-size: 14px;
  color: var(--text-muted);
  background: white;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(124,92,191,0.15);
}

/* Responsive helpers */
@media (max-width: 640px) {
  .section {
    padding: 36px 0;
  }

  .result-card {
    padding: 24px 16px;
  }

  .score-number {
    font-size: 56px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
