/* ═══════════════════════════════════════════
   ZMIENNE: SOFT EDITORIAL V3
═══════════════════════════════════════════ */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --text: #2B2D2F;
  --muted: #6B7280;
  --honey: #D4A15A;
  --blue: #A6B5C0;
  --teal: #6E8F87;
  --rose: #B77A86;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 12px 32px rgba(43, 45, 47, 0.06);
  --shadow-lg: 0 24px 64px rgba(43, 45, 47, 0.10);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

p { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
p.body-text { max-width: 600px; font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

.link-inline { color: var(--honey); border-bottom: 1px solid var(--honey); }
.link-inline:hover { opacity: 0.8; }

/* ─── LAYOUT ─── */
.app-container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; flex: 1; }
.content-wrapper { width: 100%; }
.text-center { text-align: center; }
.text-center .body-text { margin-left: auto; margin-right: auto; }

/* ─── VIEWS ─── */
.view-section { display: none; }
.view-section.active { display: block; animation: fadeUp 0.55s ease forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HEADER ─── */
.app-header {
  width: 100%; max-width: 1000px; margin: 0 auto;
  padding: 22px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--text); }
.nav-link { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--honey); }

/* ─── BUTTONS ─── */
/* Hero button */
.button-hero {
  display: inline-block;
  cursor: pointer; border: none; outline: none;
  font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600;
  padding: 18px 40px; border-radius: var(--r-sm);
  background: var(--honey); color: #fff;
  transition: all 0.2s ease;
  letter-spacing: 0.1px;
}
.button-hero:hover { background: #c8954e; transform: translateY(-1px); }
.button-hero:active { transform: none; }

/* Ghost button */
.button-ghost {
  display: inline-block;
  cursor: pointer; border: none; outline: none;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
  padding: 14px 28px; border-radius: var(--r-sm);
  background: transparent; color: var(--muted);
  border: 1.5px solid #D1CBC3;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.button-ghost:hover { border-color: var(--text); color: var(--text); }

/* Regular secondary */
button.button-secondary, a.button-secondary {
  display: inline-block;
  cursor: pointer; border: none; outline: none;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 500;
  padding: 14px 28px; border-radius: var(--r-sm);
  background: transparent; color: var(--muted);
  border: 1.5px solid #D1CBC3;
  transition: border-color 0.2s ease, color 0.2s ease;
}
button.button-secondary:hover, a.button-secondary:hover { border-color: var(--text); color: var(--text); }

.retake-link { color: var(--muted); font-size: 0.88rem; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.retake-link:hover { border-color: var(--muted); }

/* ─── LANDING ─── */
.hero-section {
  display: flex; align-items: center; gap: 56px;
  padding: 16px 0 64px;
}
.hero-text { flex: 1 1 440px; }
.hero-text h1 { font-style: italic; }
.hero-image-container { flex: 1 1 380px; }
.hero-image { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); object-fit: cover; max-height: 460px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.trust-note { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.feature-card { background: var(--surface); padding: 28px 24px; border-radius: var(--r-md); box-shadow: var(--shadow); }
.feature-icon-line { width: 32px; height: 3px; background: var(--honey); border-radius: 99px; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; margin: 0; }

/* ─── MODELS GRID ─── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-top: 36px;
}
.model-list-card {
  background: var(--surface); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow); color: inherit;
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.model-list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.model-list-img { width: 100%; height: 190px; object-fit: cover; }
.model-list-content { padding: 18px 20px; }
.model-list-content h3 { font-size: 1.15rem; margin-bottom: 4px; }
.model-list-content p { font-size: 0.87rem; margin: 0; }

/* ─── QUIZ ─── */
.quiz-container { max-width: 740px; margin: 0 auto; padding-top: 10px; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.step-indicator { font-size: 0.82rem; color: var(--muted); }
.progress-label { font-size: 0.82rem; color: var(--honey); font-weight: 600; }
.progress-bar-container { width: 100%; height: 4px; background: #EAE5DE; border-radius: 99px; margin-bottom: 36px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--honey); width: 0%; transition: width 0.45s ease; }
.question-header { text-align: center; margin-bottom: 32px; }
.question-header h2 { font-size: clamp(1.3rem, 3.5vw, 1.85rem); font-style: italic; }
.answers-container { display: flex; flex-direction: column; gap: 14px; }
.answer-card {
  background: var(--surface); padding: 22px 24px; border-radius: var(--r-sm);
  box-shadow: var(--shadow); cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}
.answer-card:hover { border-color: var(--honey); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.answer-card:active { transform: scale(0.985); }
.answer-text { font-size: 1rem; color: var(--text); line-height: 1.55; }

/* ─── WYNIK ─── */
.result-card {
  background: var(--surface); border-radius: var(--r-md);
  padding: 48px 32px 40px; box-shadow: var(--shadow-lg);
  margin-bottom: 36px; border-top: 6px solid var(--honey);
  max-width: 680px; margin-left: auto; margin-right: auto;
  transition: border-color 0.4s;
}
.result-image-wrapper { display: flex; justify-content: center; margin-bottom: 20px; }
.result-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.result-name { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.result-title { font-family: var(--font-sans); font-size: 1rem; color: var(--honey); font-weight: 500; margin-bottom: 20px; }
.result-desc { font-size: 1rem; line-height: 1.8; max-width: 560px; margin: 0 auto; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.social-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.social-share-label { color: var(--muted); font-size: 0.8rem; }
.social-link { color: #fff; padding: 7px 16px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; transition: opacity 0.2s; }
.social-link:hover { opacity: 0.82; }
.share-x  { background: #000; }
.share-li { background: #0A66C2; }

/* ─── SHARE CARD PAGE ─── */
.share-card-page { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 10px 0 40px; }
.share-instruction {
  font-size: 0.9rem; text-align: center; max-width: 380px;
  background: #FFF9E6; padding: 14px 18px; border-radius: var(--r-sm);
  color: #7A5C00; border: 1px solid #FFE58F;
}

.share-card-visual {
  width: 360px; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer; -webkit-user-select: none; user-select: none;
}
.sc-bg {
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; padding: 0 0 24px; position: relative;
}
.sc-accent-bar { width: 100%; height: 7px; background: var(--honey); flex-shrink: 0; }
.sc-header { padding: 18px 24px 0; width: 100%; text-align: center; }
.sc-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 3px; color: var(--muted); }
.sc-avatar-wrap { margin-top: 16px; }
.sc-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow-lg); }
.sc-body { text-align: center; padding: 14px 24px 4px; }
.sc-name { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sc-title { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.sc-features { width: 100%; padding: 16px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.sc-feature {
  background: var(--surface); border-radius: var(--r-sm);
  padding: 9px 14px; font-size: 0.82rem; color: var(--text); font-weight: 500;
  box-shadow: 0 2px 8px rgba(43,45,47,0.04);
}

/* Badge Instagram */
.sc-footer {
  margin-top: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.sc-ig-badge {
  display: flex; align-items: center; gap: 7px;
}
.sc-ig-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sc-ig-handle { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; color: var(--text); }
.sc-url { font-size: 0.65rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.share-card-buttons { display: flex; flex-direction: column; gap: 12px; width: 360px; }
.share-card-buttons button { width: 100%; cursor: pointer; border: none; font-family: var(--font-sans); }

/* ─── PROFIL ─── */
.profile-layout { display: flex; gap: 40px; align-items: flex-start; }
.profile-sidebar {
  flex: 0 0 270px; background: var(--surface);
  padding: 24px; border-radius: var(--r-md); box-shadow: var(--shadow);
  position: sticky; top: 20px;
}
.profile-hero-image { width: 100%; border-radius: var(--r-sm); margin-bottom: 20px; object-fit: cover; }
.profile-quick-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-box { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid #EAE5DE; }
.stat-label { font-size: 0.82rem; color: var(--muted); flex-shrink: 0; }
.stat-value { font-family: var(--font-serif); font-style: italic; color: var(--text); font-size: 0.9rem; text-align: right; max-width: 65%; }
.profile-content { flex: 1; }
.profile-desc-text { font-size: 1.05rem; color: var(--muted); line-height: 1.85; margin-bottom: 0; max-width: none; }
.profile-section { margin-bottom: 32px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.profile-card { background: var(--surface); padding: 20px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.profile-card p { font-size: 0.95rem; margin: 0; }
.superpower { border-top: 3px solid var(--teal); }
.superpower h4 { color: var(--teal); }
.challenge-card { border-top: 3px solid var(--rose); }
.challenge-card h4 { color: var(--rose); }

/* ─── FOOTER & MODAL ─── */
.app-footer { margin-top: auto; padding: 32px 0; text-align: center; }
.app-footer a { color: var(--muted); font-size: 0.82rem; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.app-footer a:hover { border-color: var(--muted); }
.modal { position: fixed; inset: 0; background: rgba(43,45,47,0.45); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.modal.hidden { display: none; }
.modal-content { background: var(--surface); padding: 36px; border-radius: var(--r-md); max-width: 520px; position: relative; box-shadow: var(--shadow-lg); }
.modal-content h3 { margin-bottom: 14px; }
.modal-content p { font-size: 0.93rem; }
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; padding: 0; }
.modal-close:hover { color: var(--text); }

/* ─── RESPONSIVE ─── */
@media (max-width: 840px) {
  .hero-section { flex-direction: column-reverse; padding-bottom: 40px; gap: 0; }
  .hero-image-container, .hero-text { flex: none; width: 100%; }
  .hero-text { text-align: center; margin-top: 24px; }
  .hero-cta { justify-content: center; }
  .trust-note { text-align: center; }
  .profile-layout { flex-direction: column; }
  .profile-sidebar { position: static; flex: none; width: 100%; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-section { padding-top: 0; padding-bottom: 24px; gap: 0; }
  .hero-text { margin-top: 16px; }
  .hero-image { max-height: 280px; margin-bottom: 0; }
  .app-container { padding: 0 16px 48px; }
  .app-header { padding: 16px; }
  .result-card { padding: 36px 18px; }
  .result-actions { width: 100%; }
  .button-hero, button.button-secondary { width: 100%; text-align: center; }
  .share-card-visual { width: calc(100vw - 40px); max-width: 360px; }
}

/* ─── ANALIZA & SFERY ─── */
.analysis-section, .related-models-section {
  background: var(--surface); border-radius: var(--r-md);
  padding: 32px 24px; box-shadow: var(--shadow);
  margin-bottom: 36px; max-width: 680px; margin-left: auto; margin-right: auto;
  text-align: center;
}
.analysis-heading { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 6px; }
.analysis-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }

.spheres-container {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.sphere-item {
  display: flex; flex-direction: column; align-items: center; width: 100px;
}
.circular-chart {
  display: block; margin: 0 auto; width: 100%;
}
.circle-bg {
  fill: none; stroke: #EAE5DE; stroke-width: 2.5;
}
.circle {
  fill: none; stroke-width: 2.5; stroke-linecap: round;
  animation: progress 1.5s ease-out forwards;
}
@keyframes progress {
  0% { stroke-dasharray: 0 100; }
}
.percentage {
  fill: var(--text); font-family: var(--font-sans); font-size: 9px; font-weight: 700;
  text-anchor: middle;
}
.sphere-label {
  margin-top: 10px; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; color: var(--muted);
}

/* ─── POKREWNE MODELE ─── */
.related-models-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.related-model-card {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--bg); padding: 12px 16px; border-radius: var(--r-sm);
  cursor: pointer; border: 1.5px solid transparent; transition: all 0.2s ease;
}
.related-model-card:hover {
  border-color: var(--honey); transform: translateY(-2px); box-shadow: var(--shadow);
}
.rm-image { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.rm-info { display: flex; flex-direction: column; }
.rm-name { font-weight: 700; font-size: 0.95rem; font-family: var(--font-sans); }
.rm-title { font-size: 0.75rem; color: var(--muted); line-height: 1.2; margin-top: 2px; }

@media (max-width: 600px) {
  .related-models-grid { grid-template-columns: 1fr; }
}
