/* ================================================================
   REPORT.CSS — valentinborsan.art / sapereplus.it
   Continental Print design system
   Fonturi: Cormorant Garamond · EB Garamond · Barlow Condensed · DM Sans
   Paletă: --sienna / --text / --muted / --bg / --border
   ================================================================ */

/* ── Layout principal ─────────────────────────────────────────── */
.report-layout {
  background: var(--bg);
  min-height: 100vh;
  padding: 6rem 1.5rem;
}

.report-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Header articol ───────────────────────────────────────────── */
.report-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* Linia de meta: categorie · dată · autor */
.report-meta {
  font-family: 'Barlow Condensed', 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sienna);
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.report-meta .meta-dot {
  opacity: 0.4;
}

/* Badge categorie inline în meta */
.report-category-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sienna);
  border: 1px solid var(--sienna);
  border-radius: 2px;
  padding: 0.15em 0.55em;
  opacity: 0.85;
}

/* Titlu principal */
.report-title {
  font-family: 'Cormorant Garamond', 'EB Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* Subtitlu editorial */
.report-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
}

/* Excerpt / lead (dacă nu e subtitlu) */
.report-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Divider ornamental sub header */
.report-header-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--sienna);
  opacity: 0.5;
}

.report-header-rule::before,
.report-header-rule::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--sienna);
  opacity: 0.5;
}

.report-header-rule-ornament {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
}

/* ── Imagine hero ─────────────────────────────────────────────── */
.report-hero-image {
  margin-bottom: 4rem;
  width: 100%;
}

.report-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  display: block;
}

.report-hero-image figcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: right;
  letter-spacing: 0.03em;
  opacity: 0.7;
}

/* ── Conținut Rich Text (HTML de la CKEditor) ─────────────────── */
.editorial-rich-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text);
}

.editorial-rich-text p {
  margin-bottom: 1.6rem;
}

/* Drop cap pentru primul paragraf */
.editorial-rich-text > p:first-of-type::first-letter {
  float: left;
  font-size: 4.8rem;
  line-height: 0.78;
  padding-top: 6px;
  padding-right: 10px;
  padding-left: 2px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--sienna);
}

.editorial-rich-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 400;
  margin: 3.5rem 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.editorial-rich-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sienna);
  margin: 2.5rem 0 1rem;
}

.editorial-rich-text blockquote {
  font-size: 1.45rem;
  font-style: italic;
  border-left: 2px solid var(--sienna);
  padding: 0.25rem 0 0.25rem 1.75rem;
  margin: 3rem 0;
  color: var(--muted);
  position: relative;
}

.editorial-rich-text blockquote::before {
  content: '\201C';
  position: absolute;
  left: -0.1rem;
  top: -0.75rem;
  font-size: 3rem;
  color: var(--sienna);
  font-family: 'Cormorant Garamond', serif;
  opacity: 0.4;
  line-height: 1;
}

.editorial-rich-text img,
.editorial-rich-text iframe {
  max-width: 100%;
  height: auto;
  margin: 2.5rem 0;
  border-radius: 3px;
  display: block;
}

.editorial-rich-text ul,
.editorial-rich-text ol {
  margin-bottom: 1.6rem;
  padding-left: 2rem;
}

.editorial-rich-text li {
  margin-bottom: 0.6rem;
}

.editorial-rich-text strong {
  font-weight: 600;
  color: var(--text);
}

/* ── Footer articol ───────────────────────────────────────────── */
.report-footer {
  margin-top: 6rem;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

/* Colofon FINIS în stil tipografic */
.journal-finis {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: var(--sienna);
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Autor în footer */
.report-footer-author {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.report-footer .back-link {
  display: inline-block;
  font-family: 'Barlow Condensed', 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.report-footer .back-link:hover {
  color: var(--sienna);
}

/* ── Grila de Reportaje (Arhivă) ──────────────────────────────── */
.reports-archive .issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3.5rem 2.5rem; /* Ajustat ușor pentru un echilibru mai bun */
  margin-top: 2rem;
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem; /* Spațiu mai rafinat între imagine și texte */
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* Containerul imaginii - Aspect Ratio fix pentru uniformitate */
.report-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* Proporția clasică foto (ex: 35mm) */
  overflow: hidden;
  border-radius: 2px; /* Colțuri abia perceptibil curbate, mai "print-like" */
  background-color: #1a1a1a;
}

.report-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Efect de Hover pe Card */
.report-card:hover .report-card-image img {
  transform: scale(1.03);
}

.report-card:hover .report-card-title {
  color: var(--sienna);
}

.report-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-card-meta {
  font-family: 'Barlow Condensed', 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}

.report-card-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.55rem; /* Redus puțin pentru a respira mai bine */
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.3s ease;
  margin: 0;
}

.report-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



/* ── Admin form — grid & hints ────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.field.full {
  grid-column: 1 / -1;
}

.form-section-title {
  font-family: 'Barlow Condensed', 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sienna);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
  font-family: 'DM Sans', sans-serif;
}

/* ── CKEditor theming ─────────────────────────────────────────── */
.ck-editor__editable_inline {
  min-height: 500px;
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.65;
  color: #111;
  background: #fff;
}

.ck-editor__editable h2,
.ck-editor__editable h3 {
  font-weight: normal;
  color: #000;
}

.ck.ck-toolbar {
  background: #f4f4f4 !important;
  border-color: #ccc !important;
  border-radius: 6px 6px 0 0 !important;
}

.ck.ck-editor__main > .ck-editor__editable {
  border-radius: 0 0 6px 6px !important;
  border-color: #ccc !important;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
  border-color: var(--sienna) !important;
  box-shadow: inset 0 0 0 1px var(--sienna) !important;
}

/* ================================================================
   REPORTS ARCHIVE — Secțiunea de grilă (înlocuiește blocul vechi)
   ================================================================ */

/* ── Arhivă wrapper ───────────────────────────────────────────── */
.reports-archive {
  padding: 0 1.5rem 6rem;
}

.reports-archive .issues-grid {
  display: grid;
  /* auto-fit: coloanele goale colapsează, nu rămân gri */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Primul card — Featured (full width, orizontal) ───────────── */
.report-card:first-child {
  grid-column: 1 / -1;           /* span pe toată lățimea */
  flex-direction: row;
  gap: 0;
  max-height: 420px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
  margin-bottom: 0.5rem;
}

.report-card:first-child .report-card-image {
  width: 55%;
  flex-shrink: 0;
  aspect-ratio: unset;
  height: 100%;
  min-height: 340px;
  border-radius: 3px 0 0 3px;
}

.report-card:first-child .report-card-body {
  padding: 1.5rem 2.25rem 1rem;
  justify-content: center;
  gap: 0.85rem;
}

.report-card:first-child .report-card-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.report-card:first-child .report-card-excerpt {
  -webkit-line-clamp: 5;
  font-size: 1rem;
  line-height: 1.7;
}

/* Badge "IN EVIDENZA" doar pe primul card */
.report-card:first-child .report-card-meta::before {
  content: 'In evidenza';
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  background: var(--sienna);
  padding: 0.2em 0.6em;
  border-radius: 2px;
}

/* Linia de lectură estimată */
.report-read-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  margin-top: auto;
  padding-top: 1rem;
}

/* ── Carduri secundare (≥ 2) ─────────────────────────────────── */
.report-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.report-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--border);   /* placeholder culoare sistem, nu gri hard */
}

.report-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
  will-change: transform;
  display: block;
}

/* Overlay sienna subtil la hover */
.report-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sienna);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.report-card:hover .report-card-image img {
  transform: scale(1.04);
}

.report-card:hover .report-card-image::after {
  opacity: 0.08;
}

.report-card:hover .report-card-title {
  color: var(--sienna);
}

/* ── Card body ────────────────────────────────────────────────── */
.report-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-card-meta {
  font-family: 'Barlow Condensed', 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Categoria cu linie colorată stânga */
.report-category-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 2px solid var(--sienna);
  padding-left: 0.5em;
  line-height: 1.2;
}

.report-card-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  transition: color 0.3s ease;
  margin: 0;
  letter-spacing: -0.01em;
}

.report-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Divider numeric tra card (opțional, rafinat) ─────────────── */
.report-card-index {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  color: var(--sienna);
  opacity: 0.35;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  letter-spacing: 0.1em;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .report-card:first-child {
    flex-direction: column;
    max-height: unset;
  }

  .report-card:first-child .report-card-image {
    width: 100%;
    min-height: unset;
    aspect-ratio: 16 / 9;
    border-radius: 2px;
  }

  .report-card:first-child .report-card-body {
    padding: 1rem 0 0;
  }

  .reports-archive .issues-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .reports-archive .issues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}