/* ============================================
   ARTICLE COMMON STYLES
   Shared styles for all article pages
   ============================================ */

/* Fix double white background issue */
body.article-page {
    background: var(--bg-primary) !important;
}

.article-hero,
.article-hero-bg {
    background-color: transparent !important;
}

/* Article Hero Section */
.article-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0a0a0a 100%) !important;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0a0a0a 100%) !important;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(201, 162, 39, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(239, 68, 68, 0.1), transparent 50%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, rgba(201, 162, 39, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(201, 162, 39, 0.03) 87.5%, rgba(201, 162, 39, 0.03)),
        linear-gradient(150deg, rgba(201, 162, 39, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(201, 162, 39, 0.03) 87.5%, rgba(201, 162, 39, 0.03)),
        linear-gradient(30deg, rgba(201, 162, 39, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(201, 162, 39, 0.03) 87.5%, rgba(201, 162, 39, 0.03)),
        linear-gradient(150deg, rgba(201, 162, 39, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(201, 162, 39, 0.03) 87.5%, rgba(201, 162, 39, 0.03));
    background-size: 80px 80px;
    background-position: 0 0, 40px 40px, 40px 40px, 80px 80px;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.article-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.1));
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 30px;
    padding: 8px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.article-main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
}

.article-main-title .gold-text {
    color: var(--gold);
}

.article-main-title .italic {
    font-style: italic;
}

.article-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.meta-item i {
    color: var(--gold);
    font-size: 1rem;
}

/* Article Main Container - Remove any white backgrounds */
.article-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 80px 60px;
    background: transparent !important;
}

.article-main.no-sidebar {
    grid-template-columns: 1fr;
    justify-items: center;
}

.article-main.no-sidebar .article-content-wrapper {
    max-width: 1000px;
    width: 100%;
}

.article-content-wrapper {
    max-width: 1000px;
    background: transparent !important;
}

/* Fix content containers - no white backgrounds */
.article-content,
.article-body,
.content-section {
    background: transparent !important;
}

/* Key Takeaways Box */
.key-takeaways-box {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(201, 162, 39, 0.05) 100%);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 60px;
}

.takeaway-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.takeaway-header i {
    color: var(--gold);
    font-size: 1.3rem;
}

.takeaway-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
}

.takeaway-list {
    list-style: none;
}

.takeaway-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.takeaway-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* Table of Contents */
.article-toc {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    position: relative;
}

.article-toc::before {
    content: '\f0c9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 20px;
    background: #0a0a0a;
    padding: 0 10px;
    font-size: 24px;
}

.article-toc h2 {
    color: #C9A227;
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.article-toc ul {
    list-style: none;
    padding: 0;
}

.article-toc li {
    margin-bottom: 12px;
}

.article-toc a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.article-toc a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.article-toc a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.article-toc a:hover::before {
    transform: translateX(5px);
}

/* Article Content Typography */
.article-content-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 60px;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 16px;
}

.article-content-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.article-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.article-content-wrapper h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

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

.article-content-wrapper li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.article-content-wrapper blockquote {
    border-left: 4px solid var(--gold);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
}

.article-content-wrapper strong,
.article-content-wrapper b {
    color: var(--gold);
    font-weight: 600;
}

.article-content-wrapper a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    transition: all 0.3s ease;
}

.article-content-wrapper a:hover {
    border-bottom-color: var(--gold);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-main {
        grid-template-columns: 1fr;
        padding: 60px 40px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        min-height: 50vh;
    }

    .article-main {
        padding: 40px 20px;
    }

    .article-main-title {
        font-size: 2rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .key-takeaways-box {
        padding: 24px;
    }

    .article-content-wrapper h2 {
        font-size: 1.6rem;
        margin-top: 40px;
    }

    .article-content-wrapper h3 {
        font-size: 1.3rem;
    }

    .article-content-wrapper p,
    .article-content-wrapper li {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {

    .article-hero-bg,
    .hero-gradient,
    .hero-pattern {
        background: white !important;
    }

    .article-main-title,
    .article-content-wrapper h2,
    .article-content-wrapper h3 {
        color: #000 !important;
    }

    .article-content-wrapper p,
    .article-content-wrapper li {
        color: #333 !important;
    }
}