/* DOCAlert Blog — stil consistent cu docalert.ro */

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

:root {
  --blue-50:#EFF6FF; --blue-100:#DBEAFE; --blue-200:#BFDBFE;
  --blue-400:#60A5FA; --blue-500:#3B82F6; --blue-600:#2563EB; --blue-700:#1D4ED8;
  --navy:#0F1E3C; --ink:#0A0F1E; --slate:#64748B; --mist:#F1F5F9;
  --white:#FFFFFF; --success:#10B981;
  --radius:12px;
  --font-head:'Sora',sans-serif; --font-body:'DM Sans',sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 64px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37,99,235,0.08);
}
.nav-logo {
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  color: var(--blue-700); letter-spacing: -0.3px; text-decoration: none;
}
.nav-logo span { color: var(--blue-400); }
.nav-back {
  font-family: var(--font-body); font-size: 14px;
  color: var(--slate); text-decoration: none;
  transition: color 0.15s;
}
.nav-back:hover { color: var(--navy); }

/* HERO BLOG INDEX */
.blog-hero {
  background: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 100%);
  padding: 72px 5vw 48px;
  text-align: center;
  border-bottom: 1px solid var(--mist);
}
.blog-hero .tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: var(--blue-600); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; background: var(--blue-50);
  border: 1px solid var(--blue-200); border-radius: 100px;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 48px); font-weight: 700;
  color: var(--navy); letter-spacing: -1.2px; line-height: 1.1;
  margin-bottom: 14px;
}
.blog-hero p {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--slate); font-weight: 300;
  max-width: 540px; margin: 0 auto;
}

/* MAIN */
main { max-width: 760px; margin: 0 auto; padding: 48px 5vw 80px; }

/* INDEX — Listă articole */
.posts-list { display: flex; flex-direction: column; gap: 18px; }

.post-card {
  display: block;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  padding: 24px 26px;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,58,138,0.08);
  border-color: var(--blue-200);
}
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--slate);
  margin-bottom: 10px;
}
.post-meta .pill {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: var(--blue-50); color: var(--blue-700);
  letter-spacing: 0.04em;
}
.post-meta .sep { color: #CBD5E1; }

.post-card h2 {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.4px;
  line-height: 1.3; margin-bottom: 10px;
}
.post-card p {
  font-size: 15px; color: var(--slate); font-weight: 300;
  margin-bottom: 12px;
}
.post-card .read-more {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--blue-600);
}
.post-card .read-more::after { content: ' →'; transition: transform 0.18s; }
.post-card:hover .read-more::after { content: ' →'; }

/* POST — Articol individual */
.post-header { margin-bottom: 36px; }
.post-header .tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: var(--blue-600); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; background: var(--blue-50); border-radius: 100px;
  margin-bottom: 14px;
}
.post-header h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 42px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.15;
  color: var(--navy);
  margin-bottom: 14px;
}
.post-header .lead {
  font-size: 17px; color: #475569;
  margin-bottom: 16px;
}
.post-header .post-meta { font-size: 13px; }

.post-content {
  font-size: 16px; color: #1E293B; line-height: 1.75;
}
.post-content h2 {
  font-family: var(--font-head);
  font-size: 24px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.4px;
  margin: 36px 0 14px;
}
.post-content h3 {
  font-family: var(--font-head);
  font-size: 19px; font-weight: 600;
  color: var(--navy);
  margin: 28px 0 10px;
}
.post-content h4 {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 600;
  color: var(--navy);
  margin: 22px 0 8px;
}
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol {
  margin: 0 0 18px 22px;
}
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--navy); font-weight: 600; }
.post-content em { font-style: italic; color: #334155; }
.post-content a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.post-content a:hover { color: var(--blue-700); }
.post-content code {
  background: var(--mist);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  color: var(--navy);
}
.post-content pre {
  background: #0F1E3C;
  color: #E2E8F0;
  padding: 18px 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.6;
}
.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.post-content blockquote {
  border-left: 4px solid var(--blue-400);
  background: var(--blue-50);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p { margin-bottom: 0; color: var(--navy); font-style: italic; }
.post-content hr {
  border: 0;
  border-top: 1px solid var(--mist);
  margin: 32px 0;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 18px 0;
}
.post-content .table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: var(--radius);
  border: 1px solid #E2E8F0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.post-content thead { background: var(--blue-50); }
.post-content th {
  font-family: var(--font-head);
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
  color: var(--navy);
  border-bottom: 2px solid var(--blue-200);
}
.post-content td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--mist);
  color: #334155;
}
.post-content tr:last-child td { border-bottom: 0; }
.post-content tbody tr:hover { background: #F8FAFF; }

/* CTA */
.cta-card {
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 32px 30px;
  margin: 48px 0 0;
  text-align: center;
}
.cta-card h2 {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}
.cta-card p { font-size: 15px; opacity: 0.95; margin-bottom: 22px; }
.cta-card a.btn {
  display: inline-block;
  background: var(--white);
  color: var(--blue-700);
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600; font-size: 14px;
  transition: transform 0.15s;
}
.cta-card a.btn:hover { transform: translateY(-2px); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate);
}

/* Back to blog */
.back-to-blog {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--slate);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.back-to-blog:hover { color: var(--navy); }

/* FOOTER */
footer {
  background: var(--ink);
  padding: 28px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
footer .nav-logo { font-size: 15px; color: rgba(255,255,255,0.9); }
footer .nav-logo span { color: var(--blue-400); }
footer p { font-size: 12px; color: rgba(255,255,255,0.65); }
footer a { font-size: 12px; color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,0.9); }
footer .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 600px) {
  main { padding: 32px 5vw 60px; }
  .post-card { padding: 20px; }
  .post-card h2 { font-size: 19px; }
  footer { flex-direction: column; text-align: center; }
}
