/* ===== Pagina „Alege o temă” ===== */
.page-teme .site-header { position: sticky; }
.tm-hero { padding: clamp(18px, 3vw, 36px) 0 clamp(18px, 3vw, 30px); text-align: center; }
.tm-logo img { width: clamp(200px, 26vw, 380px); height: auto; margin: 0 auto; }
.tm-title {
  display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 22px); margin-top: clamp(4px, 1vw, 12px);
  font-family: 'Fredoka', var(--f-body); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.01em; color: #3d1d17;
}
.tm-title::before, .tm-title::after {
  content: ''; width: clamp(26px, 3vw, 40px); height: clamp(26px, 3vw, 40px); flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M30 6 L36 14 M10 20 L34 22 M14 34 L32 30' fill='none' stroke='%23f6b532' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tm-title::before { transform: scaleX(-1); }
.tm-sub { margin: .3rem auto 0; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: #3a3946; text-wrap: balance; }

/* călătoria: 4 pași, pasul curent luminat */
.journey { list-style: none; margin: clamp(18px, 3vw, 30px) auto 0; padding: 0; display: flex; justify-content: center; gap: 0; max-width: 760px; counter-reset: j; }
.journey li { position: relative; flex: 1; display: grid; justify-items: center; gap: 6px; font-weight: 700; font-size: clamp(.78rem, 1.1vw, .95rem); color: var(--ink-3); }
.journey li + li::before { content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, #d8cdbb 0 8px, transparent 8px 14px); z-index: -1; }
.jn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #d8cdbb; background: var(--white); font-family: 'Fredoka', var(--f-body); font-weight: 600; color: var(--ink-3); }
.journey .is-now { color: var(--ink); }
.journey .is-now .jn { border-color: var(--ink); background: var(--mustard); color: var(--ink); box-shadow: 0 0 0 6px rgba(246, 181, 50, .25); animation: jn-pulse 2.4s ease-in-out infinite; }
@keyframes jn-pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(246, 181, 50, .25); } 50% { box-shadow: 0 0 0 11px rgba(246, 181, 50, .08); } }

/* grila de teme */
.tm-grid-sec { padding: clamp(10px, 2vw, 24px) 0 clamp(40px, 6vw, 70px); }
.theme-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 1320px; }
.theme-card {
  position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: #3d1d17;
  background: var(--bg); border-radius: 26px; overflow: hidden;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .85), 0 14px 28px rgba(120, 80, 60, .12);
  transition: transform .45s var(--ease-spring), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.tc-art { display: block; aspect-ratio: 428 / 196; overflow: hidden; }
.tc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.tc-label { display: block; padding: clamp(8px, 1.2vw, 14px) 10px clamp(14px, 1.8vw, 20px); text-align: center; font-family: 'Fredoka', var(--f-body); font-weight: 600; font-size: clamp(1.02rem, 1.7vw, 1.55rem); line-height: 1.12; text-wrap: balance; }
.theme-card:hover, .theme-card:focus-visible { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 0 0 5px #fff, 0 22px 36px rgba(120, 80, 60, .2); outline: none; }
.theme-grid li:nth-child(even) .theme-card:hover { transform: translateY(-8px) rotate(1deg); }
.theme-card:hover .tc-art img { transform: scale(1.06); }
.theme-card:focus-visible { box-shadow: 0 0 0 5px var(--orange), 0 22px 36px rgba(120, 80, 60, .2); }
.theme-card:active { transform: scale(.97); }
/* alegerea: cardul „sare” înainte de a merge mai departe */
.theme-card.is-picked { animation: tc-pick .5s var(--ease-spring) both; }
@keyframes tc-pick { 0% { transform: scale(1); } 45% { transform: scale(1.07) rotate(-2deg); } 100% { transform: scale(1.02); } }
/* ruleta lui Lulu */
.theme-card.is-lit { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 0 5px var(--mustard), 0 18px 30px rgba(120, 80, 60, .2); }
.theme-card.is-winner { box-shadow: 0 0 0 6px var(--orange), 0 24px 40px rgba(234, 102, 44, .28); animation: tc-pick .6s var(--ease-spring) both; }
.theme-card.is-winner::after { content: '★'; position: absolute; top: 10px; right: 14px; font-size: 1.6rem; color: var(--mustard); text-shadow: 0 2px 0 #1b1b1b; animation: pop-in .5s var(--ease-spring) both; }

/* ajutor + încredere */
.tm-help { padding: 0 0 clamp(40px, 6vw, 70px); }
.help-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px);
  max-width: 1100px; margin: 0 auto; padding: clamp(24px, 3.5vw, 40px) clamp(24px, 5vw, 64px);
  background: #fdeec6; border-radius: 30px;
}
.help-copy h2 { font-family: var(--f-display); font-variation-settings: 'SOFT' 0, 'opsz' 144; font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -.035em; line-height: 1.05; }
.help-copy p:not(.lb-kicker) { margin-top: .5rem; font-size: clamp(1rem, 1.4vw, 1.15rem); color: #3a3946; max-width: 46ch; }
.help-copy .lb-kicker { transform: rotate(-2deg); transform-origin: left; }
.help-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 20px; }
button.pencil-btn { border: 0; cursor: pointer; }
.help-art { width: clamp(150px, 20vw, 250px); height: auto; }
.trust-row { list-style: none; margin: clamp(26px, 4vw, 44px) auto 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px clamp(18px, 4vw, 50px); max-width: 1100px; }
.trust-row li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: clamp(.95rem, 1.25vw, 1.08rem); }
.trust-row .ti { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px #f3e3c4; font-size: 1rem; }

/* responsive */
@media (max-width: 1100px) { .theme-grid { grid-template-columns: repeat(2, 1fr); max-width: 980px; } }
@media (max-width: 700px) {
  .theme-grid { gap: 14px; }
  .theme-card { border-radius: 20px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 10px 20px rgba(120, 80, 60, .12); }
  .help-card { grid-template-columns: 1fr; text-align: center; }
  .help-copy .lb-kicker { transform-origin: center; }
  .help-copy p:not(.lb-kicker) { margin-inline: auto; }
  .help-actions { justify-content: center; }
  .help-art { margin: 0 auto; width: 160px; }
  .journey li span:not(.jn) { max-width: 9ch; text-align: center; line-height: 1.15; }
}
@media (max-width: 340px) { .theme-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .journey .is-now .jn { animation: none; } }
@media (max-width: 760px) { .page-teme .site-header .logo { visibility: hidden; } }

/* pasul făcut: bifat și clicabil (înapoi) */
.journey .is-done a { display: grid; justify-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.journey .is-done .jn { border-color: var(--ink); background: var(--sky); color: var(--ink); }
.journey .is-done .jn svg { width: 18px; height: 18px; }
.journey .is-done a:hover .jn { transform: scale(1.08) rotate(-6deg); }
.journey .is-done + li::before, .journey .is-done + .is-now::before { background: var(--ink); }
.jn { transition: transform .3s var(--ease-spring); }
/* firimitură: înapoi la teme + tema aleasă */
.tm-crumb { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 4px; }
.tm-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1.5px #e8dcc6; transition: background-color .2s; }
.tm-back:hover { background: #fff; }
.tm-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; background: var(--bg); font-family: 'Fredoka', var(--f-body); font-weight: 600; color: #3d1d17; box-shadow: 0 0 0 3px #fff; }
.tm-switch { margin-top: clamp(22px, 3vw, 34px); text-align: center; }
.tm-switch a { font-weight: 700; color: var(--ink); text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tm-switch a:hover { color: var(--orange); }
.tm-switch a { display: inline-block; padding: 10px 6px; }
