/* Article Page Styles */

.article-page {
    padding-top: 0;
}

.article-header {
    padding: 8rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    background: transparent;
    z-index: 1;
}

.article-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 1rem;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.author-title {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Article Content Layout */
.article-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    align-items: start;
}

.article-body {
    max-width: 800px;
}

/* Article Typography */
.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.article-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-intro {
    font-size: 1.2rem;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 3rem;
}

.article-intro p {
    font-size: 1.2rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.article-body strong {
    color: var(--light);
    font-weight: 600;
}

/* Key Stats */
.key-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.key-stat {
    background: rgba(26, 31, 58, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
}

.key-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.key-stat-label {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Callout Boxes */
.callout {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    border-left: 4px solid;
}

.callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.callout-content h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.callout-content p {
    margin-bottom: 0;
}

.callout-tip {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.callout-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

.callout-warning .callout-content h4 {
    color: #ffc107;
}

.callout-example {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4caf50;
}

.callout-example .callout-content h4 {
    color: #4caf50;
}

/* Code Blocks */
.code-block {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.code-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.code-language {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    background: rgba(10, 14, 39, 0.8);
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Savings Breakdown */
.savings-breakdown {
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
}

.savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.savings-item:last-of-type {
    border-bottom: none;
}

.savings-category {
    color: var(--gray);
    font-size: 1.1rem;
}

.savings-amount {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.savings-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary);
}

.savings-total .savings-category {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light);
}

.savings-total .savings-amount {
    font-size: 2rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.1));
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--light);
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Article Footer */
.article-footer-meta {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 8rem;
}

.sidebar-card {
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

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

.article-toc li {
    margin-bottom: 0.75rem;
}

.article-toc a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
}

.article-toc a:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    padding-left: 1rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.1));
    border-color: var(--primary);
}

.cta-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.related-article:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
}

.related-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-title {
    color: var(--light);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.related-label {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-content {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .key-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }

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

    .article-body h2 {
        font-size: 1.6rem;
    }

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

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

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .code-block pre {
        font-size: 0.85rem;
    }
}