/* ============================================================
   BLOG ARTICLE PAGE STYLES
   Relies on design tokens (colors, shadows, radius) defined in
   homepage.css, which is always loaded before this file.
   ============================================================ */

/* ===== ARTICLE HERO ===== */
.article-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 130px 24px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.article-hero::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -10%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.16);
    pointer-events: none;
}
.article-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -8%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.10);
    pointer-events: none;
}

.article-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 22px;
}
.article-breadcrumb a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s ease; }
.article-breadcrumb a:hover { color: #ffffff; }
.article-breadcrumb i { font-size: 9px; opacity: 0.6; }
.article-breadcrumb span { color: rgba(255, 255, 255, 0.55); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article-category-tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(67, 97, 238, 0.18);
    border: 1px solid rgba(67, 97, 238, 0.45);
    color: #a8b6ff;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.article-hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(28px, 4.5vw, 46px);
    color: #ffffff;
    max-width: 840px;
    margin: 0 auto 24px;
    line-height: 1.25;
}

.article-meta-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
.article-meta-row span { display: flex; align-items: center; gap: 7px; }
.article-meta-row i { color: var(--icon-color); font-size: 13px; }

/* ===== FEATURED IMAGE ===== */
.article-featured-img {
    max-width: 880px;
    margin: -46px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.article-featured-img img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ===== ARTICLE BODY ===== */
.blog-post-page {
    background: var(--bg-white);
    padding: 64px 24px 24px;
}

.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content > p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 24px;
}

.article-content > p:first-of-type {
    font-size: 19px;
    color: var(--text-dark);
    font-weight: 500;
}

.article-content h2 {
    font-size: clamp(21px, 3vw, 27px);
    color: var(--text-dark);
    margin: 44px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.article-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 54px;
    height: 3px;
    border-radius: 3px;
    background: var(--accent-color);
}

.article-content img {
    width: 100%;
    max-width: 100%;
    margin: 8px auto 28px;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.article-content ul {
    margin: 24px 0 32px;
    padding: 0;
    list-style: none;
}
.article-content ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 13px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-mid);
}
.article-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--icon-color);
    background: var(--accent-light);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 2px;
}

.article-content blockquote {
    position: relative;
    margin: 36px 0;
    padding: 26px 30px 26px 62px;
    background: var(--accent-light);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
}
.article-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: 6px;
    left: 18px;
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1;
    color: var(--accent-color);
    opacity: 0.35;
}

/* ===== ARTICLE FOOTER BAR (back link + share) ===== */
.article-footer-bar {
    max-width: 760px;
    margin: 40px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-color);
    transition: var(--transition);
}
.article-back-link:hover { gap: 12px; color: var(--hover-color); }

.article-share { display: flex; align-items: center; gap: 12px; }
.article-share span { font-size: 13px; color: var(--text-light); font-weight: 600; }
.article-share a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}
.article-share a:hover { background: var(--accent-color); color: #ffffff; transform: translateY(-3px); }

/* ===== ARTICLE CTA BANNER ===== */
.article-cta-banner {
    background: var(--primary-color);
    padding: 70px 24px;
    text-align: center;
    margin-top: 56px;
}
.article-cta-banner h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    color: var(--text-color);
    margin-bottom: 14px;
}
.article-cta-banner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 480px;
    margin: 0 auto 30px;
}
.article-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 32px;
    background: var(--accent-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.35);
    transition: var(--transition);
}
.article-cta-btn:hover { background: var(--hover-color); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .article-hero { padding: 108px 20px 54px; }
    .article-meta-row { gap: 16px; font-size: 13px; }
    .article-featured-img { margin-top: -34px; }
    .blog-post-page { padding: 48px 20px 12px; }
    .article-content > p { font-size: 16px; }
    .article-content > p:first-of-type { font-size: 17px; }
    .article-content blockquote { padding: 22px 22px 22px 52px; font-size: 16px; }
    .article-footer-bar { justify-content: center; text-align: center; }
    .article-cta-banner { padding: 52px 20px; margin-top: 40px; }
}

@media (max-width: 480px) {
    .article-breadcrumb span { max-width: 160px; }
    .article-meta-row { gap: 12px; }
    .article-cta-btn { width: 100%; max-width: 300px; justify-content: center; }
}
