/* ============================================================
   rollshaper.md — Blog / Articole / Parteneri / Hartă
   Extinde tokens.css + styles.css. Aceeași direcție „Boutique”.
   ============================================================ */

/* Language switch ca link-uri (paginile server-rendered) */
.lang-switch a {
  border: 0; background: transparent; color: var(--c-body);
  font-size: 0.72rem; font-weight: var(--fw-bold); letter-spacing: 0.04em;
  padding: 0.32rem 0.62rem; border-radius: var(--r-pill); text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switch a.is-active { background: var(--c-coral); color: #fff; }
.nav a.is-current { color: var(--c-coral-deep); }

/* Breadcrumb */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: var(--c-muted); margin-bottom: var(--space-4); }
.crumb a { color: var(--c-body); }
.crumb a:hover { color: var(--c-coral-deep); }
.crumb__sep { color: var(--c-line-2); }
.crumb__cur { color: var(--c-ink); font-weight: var(--fw-semibold); }

/* ── Blog hero ── */
.blog-hero { padding-top: calc(var(--header-h) + clamp(2rem, 1.4rem + 3vw, 4rem)); padding-bottom: clamp(1.4rem, 1rem + 2vw, 2.6rem); background: var(--c-cream-2); border-bottom: 1px solid var(--c-line); }
.blog-hero__title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: var(--text-3xl); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--c-ink); max-width: 20ch; margin-bottom: var(--space-4); }
.blog-hero__lead { color: var(--c-body); font-size: var(--text-lg); max-width: 60ch; line-height: var(--lh-body); }

/* ── Post grid ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 0.8rem + 1.6vw, 2rem); }
.post-card { background: var(--c-cream-2); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media { position: relative; display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--c-cream-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: var(--c-coral); opacity: 0.5; }
.post-card__tag { position: absolute; left: 0.9rem; top: 0.9rem; background: rgba(72,33,62,0.9); color: var(--c-on-plum); font-size: var(--text-xs); font-weight: var(--fw-bold); letter-spacing: 0.03em; padding: 0.32rem 0.8rem; border-radius: var(--r-pill); }
.post-card__body { padding: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 0.6rem; font-size: var(--text-xs); color: var(--c-muted); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-coral); }
.post-card__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-xl); line-height: var(--lh-snug); color: var(--c-ink); }
.post-card__title a:hover { color: var(--c-coral-deep); }
.post-card__excerpt { color: var(--c-body); font-size: var(--text-base); line-height: 1.55; flex: 1; }
.post-card__read { margin-top: 0.3rem; font-weight: var(--fw-bold); font-size: var(--text-sm); color: var(--c-coral-deep); display: inline-flex; align-items: center; gap: 0.4rem; }
.post-card__read span { transition: transform var(--dur) var(--ease); }
.post-card:hover .post-card__read span { transform: translateX(4px); }

/* ── Empty state ── */
.blog-empty { text-align: center; max-width: 560px; margin: 2rem auto; padding: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem; background: var(--c-cream-2); border: 1px dashed var(--c-line-2); border-radius: var(--r-xl); }
.blog-empty__ico { font-size: 2.8rem; }
.blog-empty h2 { font-family: var(--font-display); font-size: var(--text-2xl); margin: 0.7rem 0 0.4rem; color: var(--c-ink); }
.blog-empty p { color: var(--c-body); margin-bottom: 1.6rem; }

/* ── Article ── */
.container--narrow { max-width: var(--container-narrow); }
.article-wrap { padding-top: calc(var(--header-h) + clamp(1.4rem, 1rem + 2vw, 2.6rem)); padding-bottom: var(--space-section); }
.article-head { margin-bottom: clamp(1.4rem, 1rem + 2vw, 2.2rem); }
.article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; font-size: var(--text-xs); color: var(--c-muted); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-4); }
.article-tag { background: var(--c-coral-soft); color: var(--c-coral-deep); padding: 0.32rem 0.8rem; border-radius: var(--r-pill); }
.article-title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: var(--text-3xl); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--c-ink); margin-bottom: var(--space-4); }
.article-lead { font-size: var(--text-xl); line-height: var(--lh-body); color: var(--c-body); }
.article-langs { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--c-muted); }
.article-langs a { display: inline-block; margin-left: 0.4rem; font-weight: var(--fw-bold); color: var(--c-coral-deep); padding: 0.1rem 0.5rem; border: 1px solid var(--c-line-2); border-radius: var(--r-pill); }
.article-langs a:hover { border-color: var(--c-coral); }
.article-cover { width: 100%; border-radius: var(--r-xl); margin: 0 0 clamp(1.6rem, 1.2rem + 2vw, 2.6rem); box-shadow: var(--shadow-md); aspect-ratio: 11/6; object-fit: cover; }

/* Article body typography */
.article-body { font-size: var(--text-lg); line-height: var(--lh-body); color: var(--c-body); }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: var(--text-2xl); color: var(--c-ink); letter-spacing: var(--ls-tight); margin-top: 1.8em; line-height: var(--lh-snug); }
.article-body h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-xl); color: var(--c-ink); margin-top: 1.5em; }
.article-body p { color: var(--c-body); }
.article-body a { color: var(--c-coral-deep); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li { margin-top: 0.4em; }
.article-body blockquote { border-left: 4px solid var(--c-coral); background: var(--c-cream-2); padding: 1rem 1.3rem; border-radius: 0 var(--r-md) var(--r-md) 0; font-size: var(--text-xl); color: var(--c-ink); font-style: italic; }
.article-body img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.article-body figure figcaption { font-size: var(--text-sm); color: var(--c-muted); text-align: center; margin-top: 0.5rem; }
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.article-body th, .article-body td { border: 1px solid var(--c-line); padding: 0.6rem 0.8rem; text-align: left; }
.article-body th { background: var(--c-cream-3); }
.article-back { display: inline-block; margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: var(--fw-bold); color: var(--c-coral-deep); }

/* Article CTA */
.article-cta { margin-top: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); background: var(--grad-plum); color: var(--c-on-plum); border-radius: var(--r-xl); padding: clamp(1.8rem, 1.4rem + 2vw, 2.8rem); text-align: center; box-shadow: var(--shadow-md); }
.article-cta h3 { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: var(--text-2xl); margin-bottom: 0.6rem; color: #fff; }
.article-cta p { color: var(--c-on-plum-muted); max-width: 52ch; margin: 0 auto 1.4rem; line-height: var(--lh-body); }
.article-cta__btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.article-cta .btn--ghost { color: var(--c-on-plum); border-color: rgba(247,236,228,0.3); }
.article-cta .btn--ghost:hover { border-color: var(--c-butter); color: var(--c-butter); }

/* Related */
.related { border-top: 1px solid var(--c-line); }
.related__title { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: var(--text-2xl); color: var(--c-ink); margin-bottom: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); }

/* ── Homepage: teaser articole ── */
.artteaser__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }
.artteaser__more { font-weight: var(--fw-bold); color: var(--c-coral-deep); display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.artteaser__more:hover { color: var(--c-coral); }

/* ── Listă parteneri: max ~3 carduri, apoi scroll ── */
@media (min-width: 901px) {
  .loclist { max-height: 620px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--c-line-2) transparent; }
  .loclist::-webkit-scrollbar { width: 8px; }
  .loclist::-webkit-scrollbar-thumb { background: var(--c-line-2); border-radius: 999px; }
  .loclist::-webkit-scrollbar-track { background: transparent; }
}

/* ── Hartă parteneri (Leaflet) ── */
.rs-map { width: 100%; height: 100%; min-height: 360px; border-radius: var(--r-xl); }
.locmap { padding: 0; }
.leaflet-container { font-family: var(--font-body); background: var(--c-cream-3); }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: 0.85rem 1rem; font-size: var(--text-sm); color: var(--c-body); line-height: 1.5; }
.leaflet-popup-content b { color: var(--c-ink); font-family: var(--font-display); }
.leaflet-popup-content a { color: var(--c-coral-deep); font-weight: var(--fw-semibold); }
.leaflet-bar a { color: var(--c-ink); }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
}
