/* LoveTester.site - Page Theme (matches homepage aesthetic) */

:root {
  --pink:         #ff4d8d;
  --pink-light:   #ffe0ed;
  --pink-pale:    #fff0f6;
  --pink-mid:     #ff80b0;
  --purple:       #c45aff;
  --purple-light: #f3e0ff;
  --gold:         #ffcc00;
  --text:         #3d1a2e;
  --text-muted:   #a05070;
  --text-hint:    #c090b0;
  --surface:      #ffffff;
  --surface-2:    #fff5f9;
  --border:       rgba(255,77,141,0.15);
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --shadow:       0 8px 32px rgba(255,77,141,0.15);
}

*, *::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: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(255,77,141,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(196,90,255,0.08) 0%, transparent 60%),
    #fff5f9;
  padding-bottom: 80px;
}

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; }

/* ---- PAGE HEADER ---- */
.page-header {
  background: linear-gradient(135deg, #ff4d8d 0%, #d84bcb 45%, #c45aff 100%);
  padding: 20px 24px 16px;
  text-align: center;
  box-shadow: 0 4px 28px rgba(255,77,141,0.4);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}

.page-header a {
  font-family: 'Fredoka One', cursive;
  font-size: 36px;
  color: white;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  display: block;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.page-header-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 5px 0 0;
  position: relative;
  z-index: 1;
}

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

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Fredoka One', cursive;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(26px, 5vw, 38px); margin-bottom: 12px; color: var(--pink); }
h2 { font-size: clamp(20px, 4vw, 28px); margin-bottom: 10px; margin-top: 36px; color: var(--text); }
h3 { font-size: clamp(17px, 3vw, 22px); margin-bottom: 8px; margin-top: 24px; }
p  { margin-bottom: 14px; font-size: 16px; }

/* ---- CARD ---- */
.tester-card,
.result-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255,128,176,0.2);
  margin-bottom: 20px;
}

/* ---- INPUTS ---- */
.input-field {
  width: 100%;
  height: 54px;
  border: 2.5px solid var(--pink-light);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  padding: 0 16px;
  color: var(--text);
  background: var(--pink-pale);
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.input-field:focus {
  border-color: var(--pink);
  background: white;
}

.input-field::placeholder { color: #ffb3cc; }

@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; border-color: var(--pink) !important; }

/* Name inputs grid */
.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 inputs */
.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: 12px;
  font-weight: 800;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

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

.dob-selects select {
  width: 100%;
  height: 46px;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  padding: 0 10px;
  color: var(--text);
  background: var(--pink-pale);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ff4d8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}

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

/* ---- BUTTONS ---- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff4d8d, #c45aff);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  font-size: 18px;
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255,77,141,0.4);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  min-width: 200px;
}

.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,77,141,0.5); text-decoration: none; }
.cta-button:active { transform: scale(0.97); }
.cta-button.loading { pointer-events: none; opacity: 0.85; }

.retry-button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Nunito', sans-serif;
}

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

/* ---- RESULT CARD ---- */
.score-display { margin-bottom: 20px; text-align: center; }

.score-number {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 80px;
  line-height: 1;
  background: linear-gradient(135deg, #ff4d8d, #c45aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.flames-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--pink-pale), var(--purple-light));
  border: 2px solid var(--pink-mid);
  border-radius: 50px;
  padding: 10px 22px;
  margin-bottom: 12px;
}

.flames-letter {
  font-family: 'Fredoka One', cursive;
  font-size: 28px;
  color: var(--pink);
}

.flames-label { font-size: 17px; font-weight: 800; color: var(--text); }
.flames-desc  { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }

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

.zodiac-sign {
  font-size: 14px;
  font-weight: 800;
  color: var(--purple);
  background: var(--purple-light);
  padding: 5px 16px;
  border-radius: 50px;
  border: 2px solid rgba(196,90,255,0.2);
}

.zodiac-connector { color: var(--text-hint); font-size: 18px; }
.zodiac-note { font-size: 13px; color: var(--text-muted); font-weight: 600; margin: 0; }

/* ---- TOOL CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tool-card {
  display: block;
  background: white;
  border: 2.5px solid var(--pink-light);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tool-card:hover {
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,77,141,0.2);
  text-decoration: none;
}

.tool-card__icon  { font-size: 28px; margin-bottom: 8px; display: block; }
.tool-card__title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.tool-card__desc  { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ---- FAQ ---- */
.faq { border-top: 2px solid var(--pink-light); padding-top: 32px; margin-top: 32px; }
.faq h2 { margin-bottom: 20px; margin-top: 0; }

.faq__item { border-bottom: 1.5px solid var(--pink-light); }

.faq__question {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 16px 0;
  gap: 12px;
  font-family: 'Nunito', sans-serif;
}

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

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

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

.faq__answer { font-size: 14px; font-weight: 600; color: var(--text-muted); line-height: 1.65; padding-bottom: 16px; }

/* ---- DISCLAIMER ---- */
.disclaimer-box {
  background: var(--pink-pale);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

/* ---- QUIZ ---- */
.quiz-step-label { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 8px; font-weight: 700; }

.quiz-progress {
  width: 100%;
  height: 8px;
  background: var(--pink-light);
  border-radius: 50px;
  margin-bottom: 28px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 50px;
  transition: width 0.3s ease;
}

.quiz-question {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  font-family: 'Nunito', sans-serif;
}

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

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border: 2.5px solid var(--pink-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  font-family: 'Nunito', sans-serif;
}

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

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

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

/* ---- DETECTOR / METER ---- */
.meter-container { text-align: center; padding: 24px 0; }
.meter-svg { width: 280px; height: 160px; margin: 0 auto; }
.meter-label { font-size: 14px; color: var(--text-muted); margin-top: 12px; font-weight: 700; }

/* ---- ZODIAC TABLE ---- */
.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 16px;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(255,77,141,0.08);
}

.compat-table th, .compat-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1.5px solid var(--pink-light);
}

.compat-table th {
  font-weight: 800;
  color: var(--pink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--pink-pale);
}

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

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

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

/* ---- FLAMES VISUAL ---- */
.flames-visual {
  font-family: 'Fredoka One', monospace;
  font-size: 16px;
  background: var(--pink-pale);
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 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; }

/* ---- ZODIAC SIGN DETAIL ---- */
.sign-detail {
  background: var(--purple-light);
  border: 2px solid rgba(196,90,255,0.2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin: 24px 0;
}

.sign-detail__name { font-family: 'Fredoka One', cursive; font-size: 40px; color: var(--purple); margin-bottom: 4px; }
.sign-detail__dates { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }

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

.sign-meta-badge {
  font-size: 13px;
  font-weight: 800;
  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: 13px;
  color: var(--text-muted);
  font-weight: 700;
  background: white;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1.5px solid rgba(196,90,255,0.2);
}

/* ---- BLOG CARDS ---- */
.blog-grid { display: grid; gap: 16px; margin-top: 24px; }

.blog-card {
  display: block;
  background: white;
  border: 2.5px solid var(--pink-light);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--text);
  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: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  font-weight: 800;
  margin-bottom: 8px;
}

.blog-card__title {
  font-family: 'Fredoka One', cursive;
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text);
}

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

/* ---- ARTICLE ---- */
.article-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  font-weight: 800;
  margin-bottom: 10px;
}

.article-body h2 { margin-top: 36px; margin-bottom: 14px; }
.article-body h3 { margin-top: 24px; margin-bottom: 10px; }
.article-body p  { font-size: 16px; line-height: 1.75; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 14px; }
.article-body li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(200px);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s, opacity 0.3s, visibility 0s 0.3s;
  z-index: 200;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s, opacity 0.3s, visibility 0s;
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 2px solid var(--pink-light);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(255,77,141,0.12);
}

.bottom-nav > div,
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
  height: 62px;
  padding: 0 8px;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  padding: 6px 10px;
  border-radius: 14px;
  min-width: 52px;
  transition: color 0.15s, background 0.15s;
}

.bottom-nav a:hover,
.bottom-nav a.active,
.bottom-nav a[style*="color:#ff4d8d"] { color: var(--pink) !important; background: var(--pink-pale); }

/* Responsive */
@media (max-width: 640px) {
  .result-card { padding: 20px 16px; }
  .score-number { font-size: 60px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

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