/* ============================================================
   SilicaGel Blog — stiluri comune
   Reia tokenii de design ai site-ului principal.
============================================================ */

:root {
  --ink: #1a1a1a;
  --text: #333333;
  --muted: #6b6b6b;
  --line: #e7e7e4;
  --line-soft: #f1f1ee;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --accent: #1E5B8C;
  --accent-dark: #144065;
  --accent-soft: #e8f0f6;
  --amber: #C7430A;
  --amber-soft: #FBE6D6;
  --max: 760px;
  --max-wide: 1180px;
  --gutter: 2rem;
  --radius: 6px;
}

@media (min-width: 768px) { :root { --gutter: 2.5rem; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* base container for the canonical nav (same as index/calculator/legal) */
.container { max-width: var(--max-wide); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }

/* HEADER: nav styto acum inline în fiecare pagină (vezi navbar.py) */

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
  font-size: .82rem; color: var(--muted);
  padding: 1.5rem 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; opacity: .5; }

/* ============================================================
   ARTICLE
============================================================ */
.article-head { padding: 1rem 0 2rem; }
.article-cat {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: .3rem .7rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.article-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.15;
  margin: 0 0 1rem; letter-spacing: -0.025em;
}
.article-meta {
  font-size: .85rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center;
}
.article-meta .dot { width: 3px; height: 3px; background: var(--muted); border-radius: 50%; opacity: .5; }

.article-hero {
  margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.article-hero svg { width: 100%; height: auto; display: block; }
.article-hero figure.hero-figure { margin: 0; }
.article-hero img.hero-raster { width: 100%; height: auto; display: block; }
.article-hero figcaption { padding: .7rem 1.1rem; font-size: .85rem; color: var(--muted); background: var(--bg-alt); border-top: 1px solid var(--line); line-height: 1.55; }

.article-body { font-size: 1.06rem; line-height: 1.75; }
.article-body > p { margin: 0 0 1.35rem; }
.article-body p:first-of-type { font-size: 1.15rem; color: var(--ink); line-height: 1.65; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.75rem 0 1rem;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 1.2rem; margin: 2rem 0 .75rem; color: var(--accent-dark);
}
.article-body ul, .article-body ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a { font-weight: 500; border-bottom: 1px solid var(--accent-soft); }
.article-body a:hover { border-color: var(--accent); }

/* Technical callout box */
.tech-box {
  margin: 1.75rem 0; padding: 1.25rem 1.5rem;
  background: var(--bg-alt); border-left: 3px solid var(--accent);
  border-radius: var(--radius); font-size: .98rem;
}
.tech-box .label {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}
.tech-box.amber { border-left-color: var(--amber); }
.tech-box.amber .label { color: var(--amber); }
.tech-box p:last-child { margin-bottom: 0; }

/* Data table */
.data-table { margin: 1.75rem 0; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.data-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.data-table th { background: var(--bg-alt); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.data-table td:first-child { font-weight: 600; color: var(--ink); }

/* CTA at article end */
.article-cta {
  margin: 3rem 0 0; padding: 2rem; background: var(--accent);
  border-radius: var(--radius); color: #fff;
}
.article-cta h3 { color: #fff; font-size: 1.3rem; margin: 0 0 .5rem; }
.article-cta p { color: rgba(255,255,255,.85); margin: 0 0 1.25rem; font-size: .98rem; }
.article-cta a {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; color: var(--accent) !important; font-weight: 600;
  padding: .7rem 1.4rem; border-radius: var(--radius); font-size: .92rem;
  border: none;
}
.article-cta a:hover { background: var(--bg-alt); }

/* Related articles */
.related { margin: 3.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 1.25rem; }
.related-list { display: grid; gap: .75rem; }
.related-list a {
  display: block; padding: 1rem 1.25rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-weight: 600; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.related-list a:hover { border-color: var(--accent); background: var(--bg-alt); color: var(--accent); }

/* ============================================================
   BLOG INDEX
============================================================ */
.blog-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.blog-hero .article-cat { margin-bottom: 1rem; }
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .75rem; letter-spacing: -0.025em; }
.blog-hero p { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 42rem; }

.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem; padding: 2.5rem 0 3rem;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .2s;
  background: #fff;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 30px -16px rgba(30,91,140,.25); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card .thumb svg { width: 100%; height: 100%; display: block; }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post-card .cat { font-size: .7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.post-card h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .6rem; color: var(--ink); letter-spacing: -0.01em; }
.post-card p { font-size: .92rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.55; flex: 1; }
.post-card .more { font-size: .85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.post-card:hover .more { gap: .55rem; }
.post-card a.cover { color: inherit; display: flex; flex-direction: column; height: 100%; }

/* ============================================================
   FOOTER (simplificat)
============================================================ */
.blog-footer {
  background: var(--ink); color: #fff; padding: 2.5rem 0 1.75rem; margin-top: 3rem;
}
.blog-footer .wrap-wide { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.blog-footer a { color: rgba(255,255,255,.75); font-size: .9rem; }
.blog-footer a:hover { color: #fff; }
.blog-footer .links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.blog-footer .copy { font-size: .82rem; color: rgba(255,255,255,.45); width: 100%; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); margin-top: .5rem; }

::selection { background: var(--accent); color: #fff; }

@media print { .site-header, .blog-footer, .article-cta { display: none; } }

/* ============================================================
   COOKIE CONSENT + FOOTER LEGAL
============================================================ */
.blog-footer .blog-legal {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem;
  width: 100%; padding-top: 1rem; margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.blog-footer .blog-legal a { color: rgba(255,255,255,.7); font-size: .85rem; }
.blog-footer .blog-legal a:hover { color: #fff; }

.cookies {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 430px; margin-left: auto;
  background: var(--ink); color: #fff;
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.35);
  z-index: 200; display: none; font-size: .86rem; line-height: 1.55;
}
.cookies.show { display: block; }
.cookies .ck-title { font-weight: 700; color: #fff; margin: 0 0 .4rem; font-size: .95rem; }
.cookies p { margin: 0 0 .85rem; color: rgba(255,255,255,.82); }
.cookies a { color: #fff; text-decoration: underline; }
.ck-actions { display: flex; gap: .6rem; }
.ck-btn {
  flex: 1; border: none; padding: .6rem 1rem; border-radius: var(--radius);
  font-family: inherit; font-weight: 600; font-size: .85rem; cursor: pointer;
  background: var(--accent); color: #fff; transition: background .15s;
}
.ck-btn:hover { background: var(--accent-dark); }
.ck-ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; }
.ck-ghost:hover { background: rgba(255,255,255,.1); }


