/* =====================================================
   articole_blog.css – Clever Clean
   CSS comun pentru toate articolele de blog
   ===================================================== */

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

:root {
  --navy:    #003968;
  --sky:     #009DEA;
  --green:   #71CDA1;
  --gray-bg: #f5f7fa;
  --white:   #fff;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
}

body {
  font-family: 'Inter', sans-serif;
  color: #222;
  background: var(--white);
}
body p  { color: #444; }
body a  { text-decoration: none; }

/* ---- BREADCRUMB ---- */
.article-breadcrumb {
  background: var(--gray-bg);
  padding: 12px 40px;
  font-size: 13px;
  color: #888;
  border-bottom: 1px solid #e2e8f0;
}
.article-breadcrumb a {
  color: var(--sky);
  font-weight: 600;
}
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { margin: 0 6px; }

/* ---- HERO ARTICOL ---- */
.article-hero {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  overflow: hidden;
}

.article-hero-text {
  padding: 60px 48px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,157,234,.18);
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 50px;
  width: fit-content;
}

.article-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.article-hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-hero-img {
  position: relative;
  overflow: hidden;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- LAYOUT PRINCIPAL ---- */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ---- CONTINUT ARTICOL ---- */
.article-content {
  min-width: 0;
}

.article-content .lead {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid #e8eef6;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--sky);
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 8px;
}

.article-content li::marker {
  color: var(--sky);
}

.article-content strong {
  color: var(--navy);
  font-weight: 700;
}

/* ---- IMAGINE IN ARTICOL ---- */
.article-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 32px 0;
  object-fit: cover;
  max-height: 420px;
}

/* ---- CALLOUT / INFO BOX ---- */
.article-callout {
  background: #e8f4fd;
  border-left: 5px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.article-callout p {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

/* ---- TABEL FRECVENTA CURATARE ---- */
.frequency-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frequency-table thead tr {
  background: var(--navy);
  color: var(--white);
}

.frequency-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
}

.frequency-table td {
  padding: 13px 20px;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #e8eef6;
}

.frequency-table tbody tr:last-child td { border-bottom: none; }

.frequency-table tbody tr:nth-child(even) { background: var(--gray-bg); }

.frequency-table td:last-child {
  color: var(--sky);
  font-weight: 700;
}

/* ---- SECTIUNE CTA IN ARTICOL ---- */
.article-cta-inline {
  background: linear-gradient(135deg, var(--navy) 0%, #005ba3 100%);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 40px 0;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-cta-inline h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
}

.article-cta-inline p {
  font-size: .93rem;
  opacity: .85;
  margin: 0;
  color: var(--white);
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: #5ab88a;
  transform: translateY(-2px);
}

/* ---- SIDEBAR ---- */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e8eef6;
  overflow: hidden;
}

.sidebar-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sidebar-card-body {
  padding: 20px;
}

.sidebar-card-body p {
  font-size: .9rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 14px;
}

.sidebar-card-body .btn-primary {
  width: 100%;
  justify-content: center;
}

/* TOC */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  border-bottom: 1px solid #f0f4f8;
  margin: 0;
}

.toc-list li:last-child { border-bottom: none; }

.toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color .15s;
}

.toc-list a:hover { color: var(--sky); }

.toc-list a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
  flex-shrink: 0;
}

/* Articole recomandate */
.related-article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f4f8;
  text-decoration: none;
}

.related-article:last-child { border-bottom: none; }

.related-article-img {
  width: 64px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.related-article-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.related-article:hover .related-article-title { color: var(--sky); }

/* ---- FOOTER ARTICOL ---- */
.article-footer-nav {
  border-top: 2px solid #e8eef6;
  margin-top: 48px;
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-footer-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  padding: 10px 20px;
  border: 2px solid #dde3ec;
  border-radius: 50px;
  transition: background .2s, border-color .2s;
}

.article-footer-nav a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---- CTA FINAL ---- */
.article-cta-final {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 64px 40px;
}

.article-cta-final h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.article-cta-final p {
  opacity: .85;
  margin-bottom: 28px;
  font-size: 1.05rem;
  color: var(--white);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta-final .btn-primary {
  font-size: 15px;
  padding: 15px 36px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    padding: 40px 32px 60px;
  }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .article-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .article-hero-img {
    height: 240px;
    order: -1;
  }
  .article-hero-text { padding: 32px 20px; }
  .article-breadcrumb { padding: 10px 16px; }
  .article-layout { padding: 28px 16px 50px; }
  .article-content h2 { font-size: 1.25rem; }
  .article-cta-inline {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .article-cta-inline .btn-primary { width: 100%; justify-content: center; }
  .article-cta-final { padding: 40px 16px; }
  .article-cta-final h2 { font-size: 1.5rem; }
  .article-footer-nav { flex-direction: column; align-items: stretch; text-align: center; }
  .frequency-table { font-size: 13px; }
  .frequency-table th, .frequency-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .article-hero h1 { font-size: 1.4rem; }
}
