/* ============================================================
   Blog Article Detail Page – Premium Design
   ============================================================ */

/* ── Hero Banner ── */
.article-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 380px;
    max-height: 550px;
    overflow: hidden;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 40px 50px;
}

.article-hero-content {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.article-hero .article-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.article-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin: 0;
}

/* ── Article Meta Bar ── */
.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 36px;
    font-size: 13px;
    color: #8A97A8;
}

.article-meta i {
    margin-right: 6px;
    color: #3A7CFF;
    font-size: 13px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

.meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5A6A7C;
}

/* ── Article Container ── */
.article-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Article Body Typography ── */
.article-body {
    color: #C0C8D8;
    font-size: 16px;
    line-height: 1.85;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 44px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(58, 124, 255, 0.3);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #E5E7EB;
    margin: 32px 0 14px;
}

.article-body strong {
    color: #E5E7EB;
    font-weight: 600;
}

.article-body a {
    color: #3A7CFF;
    text-decoration: underline;
    text-decoration-color: rgba(58, 124, 255, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.article-body a:hover {
    color: #5B9AFF;
    text-decoration-color: #5B9AFF;
}

/* ── Styled Lists ── */
.article-body ul,
.article-body ol {
    padding-left: 0;
    margin: 24px 0;
    list-style: none;
    counter-reset: article-list;
}

.article-body ol li {
    counter-increment: article-list;
}

.article-body ul li,
.article-body ol li {
    position: relative;
    padding: 14px 18px 14px 54px;
    margin-bottom: 10px;
    background: rgba(58, 124, 255, 0.05);
    border: 1px solid rgba(58, 124, 255, 0.12);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.article-body ul li:hover,
.article-body ol li:hover {
    background: rgba(58, 124, 255, 0.1);
    border-color: rgba(58, 124, 255, 0.25);
    transform: translateX(4px);
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 22px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A7CFF, #2DEBFF);
    box-shadow: 0 0 8px rgba(58, 124, 255, 0.4);
}

.article-body ol li::before {
    content: counter(article-list);
    position: absolute;
    left: 16px;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A7CFF 0%, #2DEBFF 100%);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(58, 124, 255, 0.3);
}

/* ── Highlight / Callout Box ── */
.article-callout {
    position: relative;
    padding: 24px 28px;
    margin: 32px 0;
    background: rgba(58, 124, 255, 0.08);
    border: 1px solid rgba(58, 124, 255, 0.2);
    border-left: 4px solid #3A7CFF;
    border-radius: 0 12px 12px 0;
    color: #C0C8D8;
    font-style: italic;
}

.article-callout::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-style: normal;
    position: absolute;
    top: -12px;
    left: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3A7CFF;
    color: #FFFFFF;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(58, 124, 255, 0.4);
}

/* ── Article CTA ── */
.article-cta {
    margin: 50px 0 20px;
    padding: 36px 32px;
    background: linear-gradient(135deg, rgba(58, 124, 255, 0.12) 0%, rgba(45, 235, 255, 0.06) 100%);
    border: 1px solid rgba(58, 124, 255, 0.2);
    border-radius: 16px;
    text-align: center;
}

.article-cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px;
}

.article-cta p {
    color: #A8B0C8;
    margin-bottom: 20px;
    font-size: 15px;
}

.article-cta .btn-primary {
    display: inline-flex;
}

/* ── Share / Author Line ── */
.article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-share-label {
    font-size: 13px;
    color: #8A97A8;
    font-weight: 500;
}

.article-share-icons {
    display: flex;
    gap: 10px;
}

.article-share-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(58, 124, 255, 0.1);
    border: 1px solid rgba(58, 124, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A7CFF;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-share-icons a:hover {
    background: #3A7CFF;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 124, 255, 0.3);
}

/* ── Related Articles ── */
.related-articles {
    padding: 60px 0 40px;
}

.related-articles h2 {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
}

.related-articles h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3A7CFF, #2DEBFF);
    margin: 16px auto 0;
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(18, 22, 48, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(58, 124, 255, 0.25);
}

.related-card-img {
    height: 180px;
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-img img {
    transform: scale(1.08);
}

.related-card-body {
    padding: 20px;
}

.related-card-body .article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(58, 124, 255, 0.15);
    border: 1px solid rgba(58, 124, 255, 0.25);
    border-radius: 14px;
    font-size: 10px;
    font-weight: 600;
    color: #3A7CFF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.related-card-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #E5E7EB;
    line-height: 1.4;
    margin: 0 0 8px;
}

.related-card-body .related-date {
    font-size: 12px;
    color: #707791;
}

/* ── Back to Blog ── */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8A97A8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0;
    padding: 16px 0 0;
}

.back-to-blog:hover {
    color: #3A7CFF;
}

.back-to-blog i {
    transition: transform 0.3s ease;
}

.back-to-blog:hover i {
    transform: translateX(-4px);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .article-hero {
        height: 40vh;
        min-height: 280px;
    }

    .article-hero-overlay {
        padding: 30px 20px 36px;
    }

    .article-hero h1 {
        font-size: 24px;
    }

    .article-container {
        padding: 0 16px;
    }

    .article-body {
        font-size: 15px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .article-body ul li,
    .article-body ol li {
        padding-left: 46px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .article-hero {
        height: 35vh;
        min-height: 240px;
    }

    .article-hero h1 {
        font-size: 22px;
    }
}
