/* styles.css - Five Love Languages Quiz
   Annotation: Main stylesheet with warm romantic color palette */

/* ===== VARIABLES ===== */
:root {
  --bg: #1a1625;
  --bg-warm: #231e30;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);

  --rose: #e8788a;
  --rose-light: #f0a0ae;
  --rose-dark: #c45a6c;
  --gold: #d4a574;
  --gold-light: #e8c9a0;
  --teal: #7bb8c9;
  --green: #8bc78b;
  --lavender: #c7a0d4;

  --text: #ede7f0;
  --text-secondary: #b8aec4;
  --text-muted: #8a7f96;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCREEN ROUTING ===== */
.screen {
  display: none;
  min-height: 100dvh;
}

.screen.active {
  display: block;
  animation: fadeIn 400ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--rose);
  color: #fff;
}
.btn-primary:hover {
  background: var(--rose-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 120, 138, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: var(--transition);
}
.btn-icon:hover {
  color: var(--rose);
}

/* ===== LANDING SCREEN ===== */
/* Language Selector */
.lang-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.35rem;
  z-index: 20;
}

.lang-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.lang-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: scale(1.1);
}

.lang-btn.active {
  border-color: var(--rose);
  background: rgba(232, 120, 138, 0.15);
  box-shadow: 0 0 0 1px var(--rose);
}

.landing-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.landing-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.heart-float {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  animation: heartFloat 20s infinite ease-in-out;
}
.h1 { top: 10%; left: 15%; animation-delay: 0s; }
.h2 { top: 30%; right: 10%; animation-delay: -7s; font-size: 1.5rem; }
.h3 { bottom: 20%; left: 25%; animation-delay: -13s; font-size: 2.5rem; }

@keyframes heartFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-25px) rotate(3deg); }
}

.landing-content {
  max-width: 520px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.landing-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(232, 120, 138, 0.15);
  border: 1px solid rgba(232, 120, 138, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--rose-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.landing-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.landing-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

/* Gender Selection */
.gender-section {
  margin-bottom: 2rem;
}

.gender-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.gender-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.gender-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--text);
  min-width: 140px;
}

.gender-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gender-female:hover {
  border-color: var(--rose);
  background: rgba(232, 120, 138, 0.1);
}

.gender-male:hover {
  border-color: var(--teal);
  background: rgba(123, 184, 201, 0.1);
}

.gender-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.gender-female .gender-icon { color: var(--rose); }
.gender-male .gender-icon { color: var(--teal); }

.gender-text {
  font-size: 1rem;
  font-weight: 600;
}

/* Resume Section */
.resume-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.resume-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.resume-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Landing Info */
.landing-info {
  text-align: left;
  margin-bottom: 2rem;
}

.landing-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.landing-details summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-details summary::before {
  content: '▸';
  transition: var(--transition);
  font-size: 0.8rem;
}

.landing-details[open] summary::before {
  transform: rotate(90deg);
}

.landing-details p,
.landing-details ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.landing-details ul {
  padding-left: 1.25rem;
}

.landing-details li {
  margin-bottom: 0.35rem;
}

.landing-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: auto;
  padding-top: 2rem;
}

/* ===== QUIZ SCREEN ===== */
.quiz-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.quiz-progress {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 100px;
  transition: width 400ms ease;
  width: 0%;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-reset-small {
  font-size: 1.1rem;
  opacity: 0.5;
}
.btn-reset-small:hover {
  opacity: 1;
}

/* Back Button */
.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-back:hover {
  color: var(--text);
}

/* Question Area */
.question-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-card {
  width: 100%;
  text-align: center;
}

.question-number {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.question-prompt {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 500;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
}

.option-btn:hover:not(.selected):not(:disabled) {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.option-btn.selected {
  border-color: var(--rose);
  background: rgba(232, 120, 138, 0.1);
  box-shadow: 0 0 0 1px var(--rose), var(--shadow-sm);
}

.option-btn:disabled:not(.selected) {
  opacity: 0.5;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.option-btn.selected .option-letter {
  background: var(--rose);
  color: #fff;
}

.option-text {
  padding-top: 0.2rem;
}

/* Slide Animations */
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-50px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(50px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-out-left { animation: slideOutLeft 250ms ease forwards; }
.slide-in-right { animation: slideInRight 300ms ease forwards; }
.slide-out-right { animation: slideOutRight 250ms ease forwards; }
.slide-in-left { animation: slideInLeft 300ms ease forwards; }

/* ===== RESULTS SCREEN ===== */
.results-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.results-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.results-nav-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.results-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.results-saved-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
}

/* Result Hero */
.result-hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(232, 120, 138, 0.12) 0%, rgba(212, 165, 116, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* Annotation: Colored dot replacing emoji icon in hero */
.result-hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  opacity: 0.8;
}

.result-hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.result-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--lang-color, var(--rose));
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.result-hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.result-hero-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
}

.score-big {
  font-size: 3rem;
  font-weight: 800;
  color: var(--lang-color, var(--rose));
}

.score-of {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.result-hero-interp {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Result Sections */
.result-section {
  margin-bottom: 2.5rem;
}

.result-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.result-intro p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Annotation: Small colored dot used as section title indicator */
.section-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  min-width: 10px;
}

.section-dot-lg {
  width: 14px;
  height: 14px;
  min-width: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.section-summary {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Radar Chart */
.radar-chart-container {
  text-align: center;
  margin: 1.5rem 0;
}

.radar-svg {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.radar-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

.radar-axis {
  stroke: var(--border);
  stroke-width: 0.5;
  stroke-dasharray: 4 4;
}

.radar-data {
  fill: rgba(232, 120, 138, 0.15);
  stroke: var(--rose);
  stroke-width: 2;
  transition: var(--transition);
}

.radar-dot {
  stroke: var(--bg);
  stroke-width: 2;
}

.radar-label-initial {
  text-anchor: middle;
  dominant-baseline: central;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.radar-label-text {
  text-anchor: middle;
  font-size: 12px;
  fill: var(--text-muted);
  font-weight: 600;
}

.radar-level-text {
  font-size: 9px;
  fill: var(--text-muted);
  opacity: 0.6;
}

.radar-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.radar-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  min-width: 10px;
}

.radar-legend-name {
  flex: 1;
  color: var(--text-secondary);
}

.radar-legend-score {
  font-weight: 700;
  color: var(--text);
}

/* Score Bars */
.score-bars-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 70px;
  align-items: center;
  gap: 0.75rem;
}

.score-bar-primary {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin: -0.75rem;
  margin-bottom: 0.25rem;
}

.score-bar-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

/* Annotation: Colored dot replacing emoji in score bars */
.score-bar-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
}

.score-bar-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 100px;
  animation: barGrow 800ms ease forwards;
}

@keyframes barGrow {
  from { width: 0% !important; }
}

.score-bar-value {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.score-bar-num {
  font-size: 1.1rem;
  font-weight: 700;
}

.score-bar-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Dialects */
.dialects-grid {
  display: grid;
  gap: 1rem;
}

.dialect-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.dialect-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--rose-light);
}

.dialect-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Secondary Language */
.result-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.secondary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* secondary icon replaced by section-dot-lg in HTML */

.secondary-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.secondary-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lang-color, var(--teal));
}

.secondary-score {
  margin-left: auto;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--lang-color, var(--teal));
}

.score-small {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Combination Insight */
.result-combo {
  background: linear-gradient(135deg, rgba(232, 120, 138, 0.06) 0%, rgba(123, 184, 201, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.combo-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.combo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--badge-color, var(--border));
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--badge-color, var(--text));
}

.combo-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  min-width: 8px;
}

.combo-plus {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.combo-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: left;
}

/* Practical Tips */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tip-item:hover {
  background: var(--bg-card-hover);
}

.tip-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: rgba(232, 120, 138, 0.15);
  color: var(--rose-light);
  font-size: 0.75rem;
  font-weight: 700;
}

.tip-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Crisis Section */
.result-crisis {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.result-crisis p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Quote */
.result-quote {
  text-align: center;
  padding: 2rem 1.5rem;
}

.result-quote blockquote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  padding: 0 1rem;
  border-left: 3px solid var(--rose);
  text-align: left;
}

.quote-mark {
  display: block;
  margin-bottom: 0.25rem;
}

/* All Languages Overview */
.all-languages-grid {
  display: grid;
  gap: 0.75rem;
}

.lang-overview-card {
  display: grid;
  grid-template-columns: 30px 1.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lang-overview-card.primary-card {
  border-color: var(--lang-color, var(--border-light));
  background: rgba(255, 255, 255, 0.07);
}

.lang-overview-rank {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lang-overview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  min-width: 10px;
}

.lang-overview-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.lang-overview-score {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lang-color, var(--text));
  min-width: 36px;
  text-align: right;
}

.lang-overview-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.lang-overview-fill {
  height: 100%;
  background: var(--lang-color, var(--rose));
  border-radius: 100px;
  transition: width 800ms ease;
}

/* Wisdom Grid */
.wisdom-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .wisdom-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wisdom-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--rose);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.wisdom-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-action svg {
  flex-shrink: 0;
}

.btn-share {
  background: var(--rose);
  color: #fff;
}
.btn-share:hover {
  background: var(--rose-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 120, 138, 0.3);
}

.btn-redo {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-redo:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}

/* Share Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 200ms ease;
}

.modal-content {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: modalSlideUp 300ms ease;
}

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

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
}

.modal-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-btn {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.share-whatsapp {
  background: #25D366;
  color: #fff;
}
.share-whatsapp:hover { background: #1ebe5d; }

.share-facebook {
  background: #1877F2;
  color: #fff;
}
.share-facebook:hover { background: #0d6ce0; }

.share-copy {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.share-copy:hover {
  background: var(--bg-card-hover);
}

/* Result Footer */
.result-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.result-footer-date {
  margin-top: 0.35rem;
  font-size: 0.75rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-warm);
  color: var(--text);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  z-index: 2000;
  transition: bottom 300ms ease;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.toast.show {
  bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .landing-title {
    font-size: 2rem;
  }

  .landing-subtitle {
    font-size: 1rem;
  }

  .gender-buttons {
    flex-direction: column;
  }

  .gender-btn {
    flex-direction: row;
    padding: 1.25rem 1.5rem;
    min-width: auto;
  }

  .option-btn {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .score-bar-row {
    grid-template-columns: 1fr 70px;
    gap: 0.5rem;
  }

  .score-bar-track {
    grid-column: 1 / -1;
  }

  .result-hero-title {
    font-size: 1.7rem;
  }

  .score-big {
    font-size: 2.4rem;
  }

  .secondary-header {
    flex-wrap: wrap;
  }

  .secondary-score {
    margin-left: 0;
  }

  .result-actions {
    flex-direction: column;
  }

  .btn-action {
    justify-content: center;
  }

  .combo-badges {
    flex-direction: column;
    gap: 0.5rem;
  }

  .combo-plus {
    display: none;
  }
}

@media (min-width: 768px) {
  .dialects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-meta {
    gap: 2rem;
  }
}

/* ===== NEW RESULT SECTIONS ===== */

/* Warning Signs */
.warning-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.warning-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.warning-dash {
  color: var(--rose);
  font-weight: 700;
  min-width: 1rem;
}

/* What Hurts Most */
.result-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Misunderstandings */
.misunderstanding-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.misunderstanding-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.misunderstanding-x {
  color: var(--rose-dark);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 1rem;
  margin-top: 0.15rem;
}

/* Special Sections */
.result-special {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.special-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.special-content strong {
  color: var(--text);
}

/* Additional Quotes */
.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--rose);
  background: var(--bg-card);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* General Sections */
.result-general {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.result-general .section-body {
  margin-bottom: 1rem;
}

.result-general .section-body:last-child {
  margin-bottom: 0;
}

/* Tank Check Game */
.game-steps {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.game-steps li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.game-steps li::marker {
  color: var(--rose);
  font-weight: 700;
}

.game-meta {
  margin: 1rem 0;
}

.game-meta-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  display: inline-block;
}

.game-story {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--gold);
}

/* Discover Partner Methods */
.methods-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.method-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.method-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: rgba(232, 120, 138, 0.15);
  color: var(--rose-light);
  font-size: 0.85rem;
  font-weight: 700;
}

.method-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.method-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Complaint Revelation */
.complaint-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.complaint-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
}

.complaint-text {
  color: var(--text-secondary);
  font-style: italic;
}

.complaint-arrow {
  color: var(--text-muted);
}

.complaint-lang {
  color: var(--rose-light);
  font-weight: 600;
  white-space: nowrap;
}

/* Six Month Experiment */
.experiment-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.experiment-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.experiment-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(232, 120, 138, 0.15);
  color: var(--rose-light);
  font-size: 0.8rem;
  font-weight: 700;
}

.experiment-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.experiment-step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.experiment-result {
  padding: 1rem;
  background: var(--bg-card);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-top: 1rem;
}

.experiment-result p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Security, Worth, Significance */
.needs-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.need-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.need-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-light);
  margin-bottom: 0.5rem;
}

.need-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (min-width: 600px) {
  .needs-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .complaint-item {
    grid-template-columns: 1fr 30px 160px;
  }
}

@media (max-width: 480px) {
  .complaint-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .complaint-arrow {
    display: none;
  }

  .complaint-lang {
    padding-left: 0.5rem;
    font-size: 0.8rem;
  }
}

/* ===== PRINT ===== */
@media print {
  body {
    background: #fff;
    color: #333;
  }

  .results-nav,
  .result-actions,
  .modal-overlay,
  .toast,
  .btn-back,
  .quiz-progress {
    display: none !important;
  }

  .screen {
    display: block !important;
  }

  .result-section {
    break-inside: avoid;
  }

  .result-hero {
    border: 2px solid #eee;
    background: #fafafa;
  }
}
