/* Premium CSS Stylesheet for SEO-Optimized Articles */
:root, :root[data-theme="dark"] {
    --seo-glow: rgba(0, 242, 255, 0.15);
    --seo-glow-strong: rgba(0, 242, 255, 0.35);
    --seo-card-bg: rgba(255, 255, 255, 0.02);
    --seo-border: rgba(255, 255, 255, 0.06);
}

:root[data-theme="light"] {
    --seo-glow: rgba(2, 132, 199, 0.1);
    --seo-glow-strong: rgba(2, 132, 199, 0.2);
    --seo-card-bg: rgba(15, 23, 42, 0.02);
    --seo-border: rgba(15, 23, 42, 0.08);
}

/* Layout and Container Adjustments */
.seo-article {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 120px 24px;
}

.seo-article h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
    text-align: left;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--seo-border);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.seo-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seo-meta-item strong {
    color: var(--accent);
}

/* AEO Quick Answer Box */
.aeo-quick-answer {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px var(--seo-glow);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.aeo-quick-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.aeo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.aeo-header span {
    font-size: 1.2rem;
}

.aeo-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #f1f5f9 !important;
    margin: 0;
    font-weight: 500;
}

/* Two-Column Responsive Layout */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 992px) {
    .article-grid {
        grid-template-columns: 2.8fr 1.2fr;
    }
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 900;
    border-bottom: 1px solid var(--seo-border);
    padding-bottom: 12px;
    color: var(--accent);
}

.article-body h3 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #f8fafc;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 20px;
    display: block; /* Overrides .container display: inline-block */
}

.article-body li {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 10px;
}

/* Sidebars and Pro-Tips */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pro-tip-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid var(--seo-border);
    border-left: 4px solid #f59e0b; /* Amber/Orange color for Pro Tip */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pro-tip-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.3);
}

.pro-tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 10px;
}

.pro-tip-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
}

/* Highlight Box */
.highlight-box {
    background: var(--seo-card-bg);
    border: 1px solid var(--seo-border);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
}

.highlight-box h4 {
    margin-top: 0;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 16px;
    border: 1px solid var(--seo-border);
    background: var(--seo-card-bg);
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-responsive th {
    background: rgba(0, 242, 255, 0.03);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 16px;
    border-bottom: 2px solid var(--seo-border);
}

.table-responsive td {
    padding: 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--seo-border);
    color: #e2e8f0;
}

.table-responsive tr:last-child td {
    border-bottom: none;
}

.table-responsive tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.table-highlight {
    background: rgba(0, 242, 255, 0.02);
    font-weight: 600;
    color: var(--accent) !important;
}

/* Challenges Section */
.challenges-container {
    margin: 50px 0;
}

.challenge-card {
    background: rgba(248, 113, 113, 0.02);
    border: 1px solid rgba(248, 113, 113, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    border-color: rgba(248, 113, 113, 0.3);
    box-shadow: 0 4px 20px rgba(248, 113, 113, 0.05);
}

.challenge-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.article-body h3.challenge-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fca5a5;
    margin: 0 0 12px 0;
}

.challenge-problem {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.6;
}

.challenge-problem strong {
    color: #f87171;
}

.challenge-solution {
    background: rgba(16, 185, 129, 0.03);
    border: 1px dashed rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 16px;
    font-size: 0.95rem;
    color: #a7f3d0;
    line-height: 1.6;
    margin: 0;
}

.challenge-solution strong {
    color: #34d399;
}

/* FAQ Section */
.faq-container {
    margin: 60px 0;
}

.faq-card {
    background: var(--seo-card-bg);
    border: 1px solid var(--seo-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}

.faq-card:hover {
    border-color: rgba(0, 242, 255, 0.2);
}

.article-body h3.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question::before {
    content: '?';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 900;
}

.faq-answer {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0;
}

/* Call to Action Card */
.seo-cta-card {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px var(--seo-glow);
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.seo-cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.seo-cta-badge {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.seo-cta-card h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 900;
    border-bottom: none;
    padding-bottom: 0;
}

.seo-cta-card p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.seo-cta-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.seo-cta-strike {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #64748b;
    font-weight: 500;
}

.seo-cta-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.seo-cta-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.seo-cta-button {
    display: inline-block;
    background: var(--accent);
    color: #000000 !important;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.seo-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 255, 0.5);
    background: #ffffff;
}

.seo-cta-note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Responsive Font Scaling */
@media (max-width: 768px) {
    .seo-article h1 {
        font-size: 2.5rem;
    }
    .seo-cta-card h2 {
        font-size: 1.8rem;
    }
    .seo-cta-price {
        font-size: 2rem;
    }
}

/* Light Theme Overrides for SEO Articles */
:root[data-theme="light"] .seo-article h1 {
    background: linear-gradient(135deg, #0f172a 40%, #475569 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .aeo-text {
    color: var(--text) !important;
}

:root[data-theme="light"] .article-body h3 {
    color: var(--text-title);
}

:root[data-theme="light"] .pro-tip-text {
    color: var(--text-dim);
}

:root[data-theme="light"] .table-responsive td {
    color: var(--text);
}

:root[data-theme="light"] .challenge-card {
    background: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.15);
}

:root[data-theme="light"] .article-body h3.challenge-title {
    color: #b91c1c;
}

:root[data-theme="light"] .challenge-problem {
    color: var(--text-dim);
}

:root[data-theme="light"] .challenge-solution {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
}

:root[data-theme="light"] .article-body h3.faq-question {
    color: var(--text-title);
}

:root[data-theme="light"] .seo-cta-card {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    border-color: var(--border);
}

:root[data-theme="light"] .seo-cta-card h2 {
    color: var(--text-title);
}

:root[data-theme="light"] .seo-cta-card p {
    color: var(--text-dim);
}

:root[data-theme="light"] .seo-cta-tag {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--border);
    color: var(--text);
}

:root[data-theme="light"] .aeo-quick-answer {
    background: var(--bg-card);
    border-color: var(--border);
}

:root[data-theme="light"] .faq-question::before {
    background: rgba(2, 132, 199, 0.08);
}

:root[data-theme="light"] .pro-tip-card {
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

:root[data-theme="light"] .table-responsive th {
    background: rgba(2, 132, 199, 0.03);
}

:root[data-theme="light"] .table-highlight {
    background: rgba(2, 132, 199, 0.02);
}

/* ==========================================================================
   TECHNICAL ARTICLES MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
    .seo-article {
        padding: 80px 16px !important;
    }
    
    .seo-article h1 {
        font-size: 2.2rem !important;
        margin-bottom: 16px !important;
        line-height: 1.25 !important;
    }
    
    .seo-meta-bar {
        margin-bottom: 30px !important;
        padding-bottom: 15px !important;
        gap: 12px 16px !important;
    }
    
    .aeo-quick-answer {
        padding: 16px !important;
        margin-bottom: 30px !important;
        border-radius: 12px !important;
    }
    
    .aeo-text {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }
    
    .article-grid {
        gap: 30px !important;
    }
    
    .article-body h2 {
        font-size: 1.5rem !important;
        margin-top: 35px !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }
    
    .article-body h3 {
        font-size: 1.2rem !important;
        margin-top: 24px !important;
        margin-bottom: 10px !important;
    }
    
    .article-body p {
        font-size: 1rem !important;
        line-height: 1.65 !important;
        margin-bottom: 16px !important;
    }
    
    .pro-tip-card {
        padding: 16px !important;
        border-radius: 10px !important;
    }
    
    .highlight-box {
        padding: 16px !important;
        margin: 20px 0 !important;
        border-radius: 10px !important;
    }
    
    .table-responsive {
        margin: 24px 0 !important;
        border-radius: 12px !important;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .challenge-card {
        padding: 16px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    
    .challenge-problem {
        font-size: 0.95rem !important;
        margin-bottom: 12px !important;
    }
    
    .challenge-solution {
        padding: 12px !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
    }
    
    .faq-card {
        padding: 16px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }
    
    .article-body h3.faq-question {
        font-size: 1.05rem !important;
        gap: 8px !important;
    }
    
    .faq-answer {
        font-size: 0.95rem !important;
    }
    
    .seo-cta-card {
        padding: 24px 16px !important;
        margin: 40px 0 !important;
        border-radius: 16px !important;
    }
    
    .seo-cta-card h2 {
        font-size: 1.6rem !important;
        margin-bottom: 12px !important;
    }
    
    .seo-cta-card p {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    .seo-cta-pricing {
        margin-bottom: 20px !important;
    }
    
    .seo-cta-price {
        font-size: 2rem !important;
    }
    
    .seo-cta-button {
        padding: 12px 24px !important;
        font-size: 1rem !important;
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
        border-radius: 10px !important;
    }
}
