/* ==========================================================================
   blog.css — stiluri pentru blog hub + articole individuale
   Foloseste tokenii din homepage.css (--c-bg, --c-text, --c-accent etc.)
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* Blog hub (lista de articole)                                                */
/* -------------------------------------------------------------------------- */
.blog-hero {
  padding: 80px 0 40px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
  margin: 0 0 14px;
  line-height: 1.12;
}
.blog-hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--c-text-muted, #5a4f3a);
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 32px 0 80px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece5d2;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(45, 30, 10, 0.25);
}
.blog-card-cover {
  aspect-ratio: 16 / 9;
  background: #f3eedf;
  overflow: hidden;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-cover img {
  transform: scale(1.04);
}
.blog-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b08a3a;
  font-weight: 600;
}
.blog-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
  color: #0d2614;
}
.blog-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--c-text-muted, #5a4f3a);
  margin: 4px 0 0;
}
.blog-card-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: #7a6e54;
}

/* -------------------------------------------------------------------------- */
/* Blog article (single post)                                                 */
/* -------------------------------------------------------------------------- */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}
.blog-article .blog-breadcrumb {
  font-size: 0.85rem;
  color: var(--c-text-muted, #5a4f3a);
  margin-bottom: 24px;
}
.blog-article .blog-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.blog-article .blog-breadcrumb a:hover {
  color: #0d2614;
  text-decoration: underline;
}
.blog-article h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw + 0.8rem, 2.7rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: #0d2614;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: #7a6e54;
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #ece5d2;
}
.blog-meta time::after,
.blog-meta .blog-author::after {
  content: '·';
  margin-left: 18px;
  color: #cab98c;
}
.blog-meta > *:last-child::after { content: none; }

.blog-cover {
  margin: 0 -20px 32px;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f3eedf;
}
@media (min-width: 768px) {
  .blog-cover {
    margin: 0 0 32px;
    border-radius: 12px;
  }
}
.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-article .lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #2d2515;
  margin: 0 0 32px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Cuprins */
.blog-toc {
  background: #faf7ec;
  border: 1px solid #ece5d2;
  border-left: 3px solid #D4AF37;
  padding: 18px 22px 20px;
  border-radius: 0 8px 8px 0;
  margin: 30px 0 40px;
}
.blog-toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b08a3a;
  margin: 0 0 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.blog-toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.8;
}
.blog-toc a {
  color: #3d2c12;
  text-decoration: none;
}
.blog-toc a:hover {
  color: #0d2614;
  text-decoration: underline;
}

/* Tipografie continut */
.blog-article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 48px 0 16px;
  color: #0d2614;
  scroll-margin-top: 100px;
}
.blog-article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.18rem;
  margin: 30px 0 10px;
  color: #0d2614;
  font-weight: 600;
}
.blog-article p,
.blog-article li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2d2515;
}
.blog-article p {
  margin: 0 0 18px;
}
.blog-article ul,
.blog-article ol {
  padding-left: 22px;
  margin: 0 0 22px;
}
.blog-article li { margin-bottom: 8px; }

.blog-article strong { color: #0d2614; font-weight: 600; }
.blog-article a {
  color: #b08a3a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.blog-article a:hover { color: #0d2614; }

.blog-article blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: #faf7ec;
  border-left: 3px solid #D4AF37;
  font-style: italic;
  color: #3d2c12;
  border-radius: 0 8px 8px 0;
}
.blog-article blockquote p:last-child { margin-bottom: 0; }

.blog-article figure {
  margin: 32px -20px;
}
@media (min-width: 768px) {
  .blog-article figure { margin: 32px 0; }
}
.blog-article figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.blog-article figcaption {
  font-size: 0.85rem;
  color: var(--c-text-muted, #5a4f3a);
  text-align: center;
  padding: 8px 14px 0;
  font-style: italic;
}

/* Box informativ inline (e.g. "Pe scurt:") */
.blog-callout {
  background: linear-gradient(135deg, #fdfaf0 0%, #f9efd0 100%);
  border: 1px solid #e9d99f;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0;
}
.blog-callout strong { color: #6b4f10; }

/* Related posts */
.blog-related {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid #ece5d2;
}
.blog-related h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.blog-related-card {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ece5d2;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-related-card:hover {
  border-color: #D4AF37;
  box-shadow: 0 10px 24px -18px rgba(45, 30, 10, 0.3);
}
.blog-related-card .blog-related-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b08a3a;
  font-weight: 600;
}
.blog-related-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  margin: 6px 0 0;
  color: #0d2614;
  line-height: 1.3;
}

/* CTA in articol */
.blog-cta {
  margin: 50px 0 0;
  padding: 32px 28px;
  text-align: center;
  background: #0d2614;
  color: #fff;
  border-radius: 14px;
}
.blog-cta h2 {
  color: #fff !important;
  margin-top: 0 !important;
  font-size: 1.5rem !important;
}
.blog-cta p {
  color: #d6cfb8 !important;
  max-width: 480px;
  margin: 0 auto 22px !important;
}
.blog-cta .btn {
  display: inline-block;
  background: #D4AF37;
  color: #0d2614;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.blog-cta .btn:hover {
  transform: translateY(-1px);
  background: #e8c95c;
}
