/* ============================================
   blog-article.css
   Shared styles for all Saporina blog article pages.
   Load AFTER navbar.css and footer.css:
     <link rel="stylesheet" href="../../assets/css/blog-article.css">
   ============================================ */

/* ── BREADCRUMB ── */
.breadcrumb {
    padding: 16px 40px 20px;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 28px;
}
.breadcrumb-inner {
    max-width: 900px;
    margin: 0 auto;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
}
.breadcrumb-list li + li::before {
    content: '>';
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}
.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-list a:hover { color: rgba(255, 255, 255, 0.9); }
.breadcrumb-list li:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
    display: block;
}
@media (max-width: 860px) {
    .breadcrumb { padding: 12px 20px 16px; margin-bottom: 20px; }
    .breadcrumb-list li:last-child { max-width: 50vw; }
}
@media (max-width: 480px) {
    .breadcrumb-list li:last-child { max-width: 40vw; }
}

/* ── NAVBAR ──
   Navbar styling is fully owned by navbar.css so it matches index.html
   exactly. Do not override .navbar, .nav-container, .nav-menu, .nav-link,
   .nav-drawer, or .lang-toggle here — any spacing tweaks should go in
   navbar.css so they apply site-wide. */

/* Article aliases — map to brand colors (root.css handles base variables) */
:root {
    --navy:           var(--primary-blue);
    --blue:           var(--secondary-blue);
    --gold:           var(--accent-yellow);
    --red:            var(--action-red);
    --orange:         var(--brand-orange);
    --green:          var(--nature-green);
    --light-bg:       var(--bg-grey);
    --border:         var(--border-color);
    --text-primary:   var(--text-dark);
    --text-secondary: var(--text-light);
    --text-muted:     #7a7a9a;
}

/* ── CONTAINER ──
   The news-market-insights pages don't load index.css, so the base
   .container rule must be defined here to match the rest of the site. */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.article-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
/* Ensure footer container matches nav and content width */
.footer .container { width: 90% !important; }

/* ── HERO ── */
.hero,
.article-hero {
    position: relative;
    padding: 80px 40px 60px;
    overflow: hidden;
    color: var(--white);
}
.hero::before,
.article-hero::before { content: ''; position: absolute; top: -40%; right: -15%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); border-radius: 50%; }
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 14px; border-radius: 3px; color: var(--white); background: rgba(255,255,255,0.15); }
.hero-tag.gold { background: var(--gold); color: var(--navy); }
.hero-date { font-size: 13px; color: rgba(255,255,255,0.5); }
.hero h1 { font-size: clamp(24px, 4vw, 42px); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 20px; max-width: 800px; }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.65); font-weight: 300; line-height: 1.7; max-width: 680px; }

/* ── CONTENT LAYOUT ── */
.content-wrapper { max-width: 1200px; width: 90%; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 60px; padding: 60px 15px 80px; }

/* ── ARTICLE TYPOGRAPHY ── */
article h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 40px 0 16px; line-height: 1.3; padding-left: 16px; border-left: 4px solid currentColor; }
article h2:first-of-type { margin-top: 0; }
article p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.8; }

/* ── SOURCE NOTE ── */
.source-note { font-size: 13px; color: var(--text-muted); padding: 12px 16px; background: var(--light-bg); border-radius: 6px; margin-bottom: 32px; border-left: 3px solid var(--blue); }
.source-note a { color: var(--blue); text-decoration: none; }
.source-note a:hover { text-decoration: underline; }

/* ── STAT BAR ── */
.stat-bar { display: flex; margin: 28px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.stat-bar-item { flex: 1; padding: 16px 12px; text-align: center; background: var(--white); border-right: 1px solid var(--border); }
.stat-bar-item:last-child { border-right: none; }
.stat-bar-number { font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat-bar-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-top: 3px; }

/* ── DATA ROW ── */
.data-row { display: flex; gap: 12px; margin: 24px 0; }
.data-chip { flex: 1; padding: 14px 16px; background: var(--light-bg); border: 1px solid var(--border); border-radius: 8px; }
.data-chip-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.data-chip-value { font-size: 16px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.data-chip-sub { font-size: 11px; color: var(--text-muted); }

/* ── SHIFT ROW ── */
.shift-row { display: flex; gap: 12px; margin: 24px 0; align-items: center; }
.shift-from, .shift-to { flex: 1; padding: 14px 16px; background: var(--light-bg); border: 1px solid var(--border); border-radius: 8px; }
.shift-arrow { font-size: 24px; flex-shrink: 0; }
.shift-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.shift-value { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 4px; line-height: 1.4; }

/* ── MARKET FLAGS ── */
.market-flags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.market-flag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--light-bg); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--navy); }

/* ── HIGHLIGHT BOX ── */
.highlight-box { background: linear-gradient(135deg, var(--navy), var(--blue)); border-radius: 10px; padding: 28px; margin: 36px 0; color: var(--white); }
.highlight-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.highlight-box p { font-size: 14.5px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 0; }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 28px 0; }
.product-card { padding: 14px; background: var(--light-bg); border: 1px solid var(--border); border-radius: 8px; }
.product-card-title { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.product-card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ── PRODUCT TAGS ── */
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.product-tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--navy); }
.product-tag .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 92px; align-self: start; }
.sidebar-card { background: var(--light-bg); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.sidebar-card h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid currentColor; }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 10px; }
.toc-list a { font-size: 13.5px; color: var(--text-secondary); text-decoration: none; display: block; padding-left: 12px; border-left: 2px solid transparent; transition: all 0.2s; }
.toc-list a:hover { color: var(--navy); }
.cta-card { background: linear-gradient(160deg, var(--navy), #2a2565); border: none; border-radius: 10px; padding: 28px; text-align: center; }
.cta-card h4 { color: var(--white); border-bottom-color: rgba(255,255,255,0.2); }
.cta-card p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 18px; line-height: 1.6; }
.cta-btn { display: inline-block; color: var(--white); font-size: 13px; font-weight: 600; padding: 12px 28px; border-radius: 6px; text-decoration: none; transition: background 0.2s; }
.related-product { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: opacity 0.2s; }
.related-product:last-child { border-bottom: none; }
.related-product:hover { opacity: 0.7; }
.related-product-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.related-product-text { font-size: 13.5px; font-weight: 500; color: var(--navy); line-height: 1.4; }
.related-product-sub { font-size: 11.5px; color: var(--text-muted); }

/* ── FOOTER ICON FIX ── */
.footer-contact-icon { width: 20px !important; height: 20px !important; flex-shrink: 0; fill: var(--accent-yellow); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 13px; opacity: 0.9; }
/* Fix footer logo overflow */
.footer-logo-box img { max-width: 100%; width: 180px; height: auto; }
.footer-grid > div:first-child { min-width: 0; overflow: hidden; }
/* Force footer container to match page width */
.footer .container {
    width: 90% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-inner > * { animation: fadeUp 0.6s ease-out both; }
.hero-meta { animation-delay: 0.1s; }
.hero h1  { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
    .content-wrapper { grid-template-columns: 1fr; padding: 32px 20px 48px; gap: 32px; }
    .article-hero, .hero { padding: 40px 20px 36px; }
    .sidebar { position: static; }
    .stat-bar { flex-wrap: wrap; }
    .stat-bar-item { flex: 1 1 50%; }
    .stat-bar-item:nth-child(2) { border-right: none; }
    .stat-bar-item:nth-child(3) { border-bottom: none; }
    .stat-bar-item:nth-child(4) { border-right: none; border-bottom: none; }
    .stat-bar-number { font-size: 18px; }
    .data-row { flex-direction: column; }
    .shift-row { flex-direction: column; }
    .shift-arrow { transform: rotate(90deg); }
    .product-grid { grid-template-columns: 1fr; }
    article h2 { font-size: 18px; margin: 28px 0 12px; }
    article p { font-size: 15px; }
    .highlight-box { padding: 20px; margin: 24px 0; }
    .product-tag { font-size: 12px; padding: 6px 12px; }
    .hero h1 { font-size: clamp(22px, 6vw, 32px); }
    .hero-subtitle { font-size: 15px; }
}
  @media (max-width: 400px) {
      .content-wrapper {
        margin: 0px;
      }
    }