/* ============================================
   ARTICLE PAGE STYLES - SHARED CSS
   ============================================ */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent, #ff6b00), var(--accent-light, #ff8c00), var(--accent, #ff6b00));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent, #ff6b00) 50%, transparent);
}

/* Article Hero */
.article-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 5, 16, 0.3) 0%, rgba(5, 5, 16, 0.6) 50%, rgba(5, 5, 16, 0.95) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

/* Breadcrumb */
.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.article-breadcrumb a:hover {
    color: var(--accent, #ff8c00);
}

.article-breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

.article-breadcrumb .current {
    color: var(--accent, #ff8c00);
}

/* Category Tag */
.article-category {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--accent, #ff6b00), var(--accent-light, #ff8c00));
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Title & Meta */
.article-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 900px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.article-meta-item i {
    color: var(--accent, #ff8c00);
    font-size: 16px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #ff6b00), var(--accent-light, #ff8c00));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

/* Table of Contents */
.article-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent, #ff8c00);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 12px;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    border-left: 2px solid transparent;
}

.toc-link:hover {
    color: #fff;
    background: rgba(255, 107, 0, 0.1);
}

.toc-link.active {
    color: var(--accent, #ff8c00);
    background: rgba(255, 107, 0, 0.1);
    border-left-color: var(--accent, #ff8c00);
}

.toc-number {
    font-weight: 600;
    color: var(--accent, #ff8c00);
    min-width: 20px;
}

/* Article Content */
.article-content {
    max-width: 800px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 50px 0 20px;
    padding-top: 20px;
    line-height: 1.3;
    position: relative;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 20px;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent, #ff6b00), var(--accent-light, #ff8c00));
    border-radius: 2px;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 35px 0 15px;
}

.article-content p {
    font-family: 'Merriweather', serif;
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.article-content p.lead {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    border-left: 4px solid var(--accent, #ff8c00);
    padding-left: 25px;
    margin: 30px 0;
}

.article-content ul,
.article-content ol {
    margin: 20px 0 30px 20px;
    padding: 0;
}

.article-content li {
    font-family: 'Merriweather', serif;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    padding-left: 10px;
}

.article-content li::marker {
    color: var(--accent, #ff8c00);
}

.article-content strong {
    color: #fff;
    font-weight: 600;
}

.article-content a {
    color: var(--accent, #ff8c00);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 140, 0, 0.05));
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin: 35px 0;
}

.highlight-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent, #ff8c00);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 16px;
}

/* Quote Block */
.article-quote {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 16, 32, 0.95), rgba(20, 20, 40, 0.9));
    border-radius: 16px;
    padding: 40px 40px 40px 80px;
    margin: 40px 0;
    border-left: 4px solid var(--accent, #ff8c00);
}

.article-quote::before {
    content: '"';
    position: absolute;
    left: 25px;
    top: 20px;
    font-size: 60px;
    font-family: Georgia, serif;
    color: var(--accent, #ff8c00);
    opacity: 0.5;
}

.article-quote p {
    font-size: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.article-quote cite {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-style: normal;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(15, 16, 32, 0.95), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent, #ff6b00), var(--accent-light, #ff8c00));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, rgba(15, 16, 32, 0.95), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 20px;
    padding: 35px;
    margin-top: 50px;
}

.author-box-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #ff6b00), var(--accent-light, #ff8c00));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-box-avatar i {
    font-size: 40px;
    color: #fff;
}

.author-box-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.author-box-content .author-title {
    font-size: 14px;
    color: var(--accent, #ff8c00);
    margin-bottom: 12px;
}

.author-box-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 0;
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 140, 0, 0.08));
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 24px;
    padding: 50px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
    animation: ctaRotate 20s linear infinite;
}

@keyframes ctaRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.article-cta h3 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.article-cta p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-btn.primary {
    background: linear-gradient(135deg, var(--accent, #ff6b00), var(--accent-light, #ff8c00));
    color: #fff;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4);
}

.cta-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.cta-btn.whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* Related Section */
.related-section {
    padding: 80px 0;
    background: #050510;
}

.related-header {
    text-align: center;
    margin-bottom: 50px;
}

.related-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-card {
    background: linear-gradient(135deg, rgba(15, 16, 32, 0.95), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    text-decoration: none;
}

.related-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 20px 50px rgba(255, 107, 0, 0.15);
}

.related-card-image {
    height: 180px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover .related-card-image img {
    transform: scale(1.1);
}

.related-card-content {
    padding: 25px;
}

.related-card-category {
    font-size: 12px;
    color: var(--accent, #ff8c00);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.related-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.related-card:hover .related-card-title {
    color: var(--accent, #ff8c00);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-toc {
        position: relative;
        top: 0;
        background: linear-gradient(135deg, rgba(15, 16, 32, 0.95), rgba(20, 20, 40, 0.9));
        border-radius: 16px;
        padding: 25px;
    }

    .article-content h2::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: auto;
        min-height: 400px;
    }

    .article-title {
        font-size: 32px;
    }

    .stats-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-cta {
        padding: 35px 25px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }
}