/* =========================================
   Blindspot Revealer - stil specific
   ========================================= */

/* Hero dedicat Revealer */
.hero--revealer {
  background: var(--surface-1);
}

.hero--revealer .hero__inner {
  grid-template-columns: 1.2fr;
}

.hero--revealer .badge {
  margin-bottom: var(--space-3);
}

.hero--revealer .h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  background: var(--color-yellow);
  border-radius: 999px;
}

.hero--revealer .hero-note {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 50ch;
}

/* Layout principal */

/* Layout principal */

.revealer-shell {
  display: flex;
  align-items: flex-start;
  gap: var(--space-7);
}

/* pe mobil, coloanele se așază una sub alta */
@media (max-width: 880px) {
  .revealer-shell {
    flex-direction: column;
  }
}

/* Sidebar */

.revealer-sidebar {
  /* fără sticky ca să nu se suprapună peste cardul din dreapta */
  position: static;
  top: auto;
  z-index: auto;

  flex: 0 0 260px;
  display: grid;
  gap: var(--space-4);
}

/* pe mobil, sidebarul ocupă lățimea completă */

@media (max-width: 880px) {
  .revealer-sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* cardul de progres nu se afișează pe mobil; acolo avem bara de jos */

.revealer-sidebar-card--progress {
  display: block;
}

@media (max-width: 880px) {
  .revealer-sidebar-card--progress {
    display: none;
  }
}


/* Carduri sidebar */

.revealer-sidebar-card {
  background: var(--surface-0);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

/* cardul de progres nu se afișează pe mobil; acolo avem bara de jos */

.revealer-sidebar-card--progress {
  display: block;
}

@media (max-width: 880px) {
  .revealer-sidebar-card--progress {
    display: none;
  }
}

/* Secțiuni în sidebar */

.revealer-card-kicker {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.revealer-card-title {
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--text-strong);
}

.revealer-card-meta {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.revealer-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.revealer-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  margin-top: var(--space-3);
}

.revealer-section-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: var(--fs-sm);
  cursor: pointer;
  border: 1px solid rgba(15,23,42,.06);
  background: var(--surface-0);
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}

.revealer-section-item:hover {
  background: var(--surface-2);
  transform: translateY(1px);
}

.revealer-section-item-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.revealer-section-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.revealer-section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(15,23,42,.14);
  background: var(--surface-2);
}

.revealer-section-item--active {
  border-color: var(--color-yellow);
  background: #fff9e5;
}

.revealer-section-item--active .revealer-section-dot {
  background: var(--color-yellow);
  border-color: #e4ad00;
}

.revealer-section-item--done.revealer-section-item--green {
  background: #ecfdf3;
  border-color: #a7f3d0;
}

.revealer-section-item--done.revealer-section-item--green .revealer-section-dot {
  background: #16a34a;
  border-color: #15803d;
}

.revealer-section-item--done.revealer-section-item--amber {
  background: #fffbeb;
  border-color: #fed7aa;
}

.revealer-section-item--done.revealer-section-item--amber .revealer-section-dot {
  background: #f59e0b;
  border-color: #d97706;
}

.revealer-section-item--done.revealer-section-item--red {
  background: #fef2f2;
  border-color: #fecaca;
}

.revealer-section-item--done.revealer-section-item--red .revealer-section-dot {
  background: #ef4444;
  border-color: #b91c1c;
}

/* Zona principală */

.revealer-main {
  display: grid;
  gap: var(--space-4);
}

.revealer-card {
  background: var(--surface-0);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}

.revealer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* text întrebări */

.revealer-question-text {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text-default);
}

.revealer-note {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* buton help lângă întrebare */

.revealer-help-trigger {
  border-radius: 999px;
  background-color: var(--color-yellow);
}

/* footer navigație */

.revealer-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.revealer-footer-left {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.revealer-footer-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* download */

.revealer-download {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-2);
}

/* inițial butonul de download nu se vede; îl arătăm doar la rezumat */

#revealerDownloadBtn[hidden] {
  display: none;
}

/* Reflecție semafor RAG pe secțiune */

.revealer-reflection-options {
  margin-top: var(--space-3);
}

.revealer-reflection-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.revealer-reflection-note {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--text-default);
}

.revealer-summary-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 840px) {
  .revealer-summary-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.revealer-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.revealer-summary-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15,23,42,.06);
  background: var(--surface-inset);
  font-size: var(--fs-sm);
}

.revealer-summary-item-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.revealer-summary-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.revealer-summary-pill--green {
  background: #ecfdf3;
  color: #166534;
}

.revealer-summary-pill--amber {
  background: #fffbeb;
  color: #92400e;
}

.revealer-summary-pill--red {
  background: #fef2f2;
  color: #b91c1c;
}

.revealer-summary-pill--todo {
  background: var(--surface-2);
  color: var(--text-muted);
}

/* dot în rezumat */

.revealer-summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.revealer-summary-dot--green {
  background: #16a34a;
}

.revealer-summary-dot--amber {
  background: #f59e0b;
}

.revealer-summary-dot--red {
  background: #ef4444;
}

.revealer-summary-dot--todo {
  background: var(--surface-2);
}

/* Modal help - tipografie */

.modal__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-strong);
}

.modal__subtitle {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.modal__body p {
  margin-top: 0;
  margin-bottom: var(--space-2);
  font-size: var(--fs-sm);
}

/* Pop-up consent date (tip cookie) */

.revealer-consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: 480px;
  width: min(92vw, 480px);
  background: var(--surface-0);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: var(--shadow-lg);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: var(--fs-sm);
}

.revealer-consent-icon {
  font-size: 18px;
}

.revealer-consent-text {
  flex: 1;
}

.revealer-consent-text strong {
  font-weight: 700;
}

/* ascuns după ce userul dă "Am înțeles" */

.revealer-consent[hidden] {
  display: none;
}

/* Progres mobil - bară subțire jos */

.revealer-mobile-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 4px 10px;
  background: rgba(15,23,42,.9);
  color: #f9fafb;
  display: none; /* doar pe mobil */
  align-items: center;
  gap: 8px;
  z-index: 50;
}

.revealer-mobile-progress-label {
  font-size: 11px;
  white-space: nowrap;
}

.revealer-mobile-progress-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(148,163,184,.6);
  overflow: hidden;
}

.revealer-mobile-progress-bar-inner {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--color-yellow);
}

/* doar pe ecrane mici */

@media (max-width: 880px) {
  .revealer-mobile-progress {
    display: flex;
  }
}

/* Buton final transformat in bifa verde */
.revealer-final-checkmark {
  background: #ecfdf3 !important;
  color: #16a34a !important;
  border: 1px solid #a7f3d0 !important;
  pointer-events: none;
  font-weight: 700;
}

.revealer-final-checkmark::before {
  content: "✓ ";
  font-weight: 900;
}





/* Aliniere butoane în footer pe mobil */
/* footer navigatie */

.revealer-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  /* fara wrap ca sa nu rupa butoanele pe 2 randuri la latimi intermediare */
  flex-wrap: nowrap;
}

.revealer-footer-left {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.revealer-footer-right {
  display: flex;
  gap: 10px;
  align-items: stretch; /* aceeasi inaltime la butoane */
}

.revealer-footer-right .btn {
  flex: 0 0 auto;
  min-width: 0;
}

/* layout pe coloana si butoane full width pe ecrane mai mici */

@media (max-width: 880px) {
  .revealer-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .revealer-footer-right {
    width: 100%;
  }

  .revealer-footer-right .btn {
    flex: 1 1 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
}

/* footer navigatie */

.revealer-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.revealer-footer-left {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.revealer-footer-right {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

/* aici fortam butoanele sa nu rupa textul pe 2 randuri la latimi intermediare */
.revealer-footer-right .btn {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

/* pe ecrane mai mici mutam footerul pe coloana, butoanele devin full width
   si permitem din nou ruperea textului ca sa nu iasa in afara */
@media (max-width: 880px) {
  .revealer-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .revealer-footer-right {
    width: 100%;
  }

  .revealer-footer-right .btn {
    flex: 1 1 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: normal; /* ok sa se rupa pe mobil */
  }
}
/* Footer navigatie - baza, pentru desktop */

.revealer-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.revealer-footer-left {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.revealer-footer-right {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.revealer-footer-right .btn {
  flex: 0 0 auto;
  min-width: 0;
}

/* Pe mobil - butoanele unul sub altul, aceeasi dimensiune */

@media (max-width: 768px) {
  .revealer-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .revealer-footer-right {
    flex-direction: column;   /* butoanele pe coloana */
    width: 100%;
    gap: 8px;
  }

  .revealer-footer-right .btn {
    width: 100%;              /* full width */
    flex: 0 0 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: normal;      /* poate rupe textul daca e nevoie */
    min-height: 44px;         /* aceeasi inaltime minima pentru ambele */
  }
}
.revealer-question-subtext {
  font-size: 0.95rem;
  font-style: italic;
  color: #4a5568; /* un gri neutru, folosit deja în UI */
  margin-top: 6px;
  line-height: 1.45;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.hero-actions-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* împinge butonul de PDF în dreapta */
.hero-actions-right {
  margin-left: auto;
  white-space: nowrap;
}

/* opțional, mai mic un pic decât butonul principal */
.hero-actions-right.button {
  padding-inline: 18px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .hero-actions-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions-right {
    margin-left: 0;
    width: 100%;
  }

  .hero-actions-right.button {
    width: 100%;
    text-align: center;
  }
}
.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.hero-actions-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions-right {
  margin-left: auto;
  white-space: nowrap;
}

/* === Mobile fix === */
@media (max-width: 768px) {
  .hero-actions-row {
    flex-direction: column;
    align-items: stretch; /* important: full width */
    gap: 12px;
  }

  .hero-actions-right {
    margin-left: 0;
    width: 100%;
  }

  .hero-actions-left a.button {
    width: 100%;
  }

  .hero-actions-right.button {
    width: 100%;
  }
}
/* Segmented group */
.btn-group {
  display: inline-flex;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 10px;
  overflow: clip;
  background: var(--surface-0);
}
.btn-group .btn {
  border: 0;
  height: 40px;
  padding: 0 14px;
  border-right: 1px solid rgba(15,23,42,.12);
  background: transparent;
}

/* Fără gap între butoane în interiorul grupului */
.btn-group .btn + .btn {
  margin-left: 0;
}
@media (max-width: 560px){
  .button + .button,
  .btn + .btn {
    margin-left: 0;
    margin-top: 10px;
  }
  .cta-group,
  .actions,
  .button-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}
@media (max-width: 560px){
  .button + .button,
  .btn + .btn {
    margin-left: 0;
    margin-top: 10px;
  }

  /* În grupurile segmentate păstrăm butoanele pe un singur rând */
  .btn-group .btn + .btn {
    margin-top: 0;
  }
}
/* Hero card Blindspot Revealer */


.hero--revealer {
  background: #f5f5f7;        /* fundal deschis, ca pe homepage */
  padding-top: 64px;
  padding-bottom: 72px;
  max-height: 100vh;          /* nu depășește viewportul */
  overflow-y: auto;           /* dacă conținutul e mai mare, se scrollează în interior */
}


.hero-card--revealer {
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 72px;
  position: relative;
}

.hero--revealer .hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero--revealer .hero-slide__inner {
  max-width: 640px;
}

.hero--revealer .hero-actions-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 260px;
}

.hero--revealer .hero-actions-right {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 28px;
}

/* scroll down să stea frumos sub card */
.hero--revealer .scroll-down {
  margin-top: 32px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-card--revealer {
    padding: 40px 28px 32px;
    border-radius: 28px;
  }

  .hero--revealer .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .hero--revealer .hero-actions-row {
    width: 100%;
    align-items: flex-start;
  }

  .hero--revealer .hero-actions-right {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-card--revealer {
    padding: 32px 20px 28px;
    border-radius: 24px;
  }

  .hero--revealer {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero--revealer .h1 {
    font-size: 1.9rem;
    line-height: 1.15;
  }
}
/* FIX REAL: cardul mov trebuie sa se alinieze si sa nu fie mai lat decat cardul mama */
@media (max-width: 640px) {

  /* containerul general */
  .revealer-shell {
    display: block;          /* nu mai lasam flex-ul sa extinda copiii */
    width: 100%;
  }

  /* cardul mama */
/* cardul mare cu secțiuni + întrebări */
.panel {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;        /* asta îl centrează în viewport */
  overflow-x: hidden;
}


  /* cardul mov (sidebar) */
  .revealer-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;     /* CHEIA - rupe overflow-ul */
    margin: 0 0 24px 0;

  }

  /* cardurile din interior */
  .revealer-sidebar-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;                 /* elimina orice margini care forteaza overflow */
    padding-left: 0;
    padding-right: 0;
    
    
  }

  /* lista sectiunilor */
  .revealer-section-list {
    width: 100%;
    max-width: 100%;
  }
}
/* Fix: padding interior real în cardul mov, fără să împingă cardul roșu */
@media (max-width: 640px) {

  /* cardul roșu rămâne neatins */
  .revealer-sidebar-card {
    padding: 0;               /* scoatem padding-ul */
    margin-bottom: 24px;      /* spațiu față de cardul de dedesubt */
  }

  /* padding aplicat DOAR pe interiorul cardului mov */
  .revealer-sidebar-card > * {
    padding-left: 8px;
    padding-right: 18px;
  }

  /* kicker, titlu, paragraf, listă etc. să stea vertical corect */
  .revealer-sidebar-card > *:first-child {
    padding-top: 16px;
  }

  .revealer-sidebar-card > *:last-child {
    padding-bottom: 18px;
  }
}
/* Centrare și lățime uniformă pentru cardul mare din hero */
.hero--revealer.section {
  padding-left: 0;
  padding-right: 0;
}

.hero-card--revealer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* cardul din hero să nu fie mai înalt decât viewportul */
@media (min-width: 1024px) {
  .hero-card--revealer {
    max-height: calc(100vh - 140px); /* header + un pic de aer jos */
    overflow-y: auto;
  }
}
/* Reducem înălțimea internă a cardului doar pe desktop */

@media (min-width: 1024px) {

  /* cardul: reducere padding */
  .hero-card--revealer {
    padding: 32px 48px !important;
  }

  /* blocul cu textul principal */
  .hero--revealer .hero-slide__inner {
    max-width: 540px; /* era 640px — îl facem un pic mai "scurt" vertical */
  }

  /* titlu mai compact */
  .hero--revealer .h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }

  /* paragrafe compacte */
  .hero--revealer .lead,
  .hero--revealer .hero-note {
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  /* spațiu vertical mai mic în interior */
  .hero--revealer .hero__inner {
    gap: 24px !important;   /* era 40px */
  }

  /* zona butoanelor mai compactă */
  .hero--revealer .hero-actions-row {
    gap: 6px !important;
    margin-top: 12px !important;
    min-width: 200px;
  }
}
/* ===== STRUCTURĂ MAI SCURTĂ — DOAR DESKTOP ===== */
@media (min-width: 960px) {

  /* secțiunea mare devine mai scurtă */
  #blindspot-revealer.section {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  /* cardul mare cu întrebările */
  .revealer-card {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  /* cardurile din sidebar */
  .revealer-sidebar-card {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}
/* ===== ZONA STRUCTURĂ — MICȘORARE GLOBALĂ (DOAR DESKTOP) ===== */
@media (min-width: 960px) {
  .panel {
    transform: scale(0.92);
    transform-origin: top center;
  }
}
