/* ===========================================
   ARTICLE PAGE STYLES
   Styles specific to solution article pages
   =========================================== */

/* Article Header - Compact Hero Style */
.article-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 60px 20px 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: heroGlow 20s ease-in-out infinite;
    pointer-events: none;
}

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

/* Back Navigation Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.back-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
}

/* Article Icon */
.article-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.article-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Article Header Typography */
.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Article Container - Main Layout */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
}

/* Article Content */
.article-content {
    max-width: 800px;
}

.article-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Article Sections */
.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
    text-align: left;
}

.article-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.article-section h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Lists in Articles */
.article-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.article-section ul li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.article-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
}

/* Code Blocks */
.article-section pre {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.article-section code {
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-section p code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.95em;
    color: var(--primary-color);
}

/* CTA Section at End of Article */
.article-cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 4rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.article-cta-section h2 {
    text-align: center;
}

.article-cta-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.article-cta-section p {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.article-cta-section .btn {
    margin-top: 0.5rem;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.article-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Related Solutions Navigation */
.related-solutions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-solutions a {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.related-solutions a:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.related-solutions a.current {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary-color);
    color: var(--primary-color);
    cursor: default;
    transform: none;
}

.related-solutions a.current:hover {
    transform: none;
    box-shadow: none;
}

/* Article Footer */
.article-page footer {
    margin-top: 0;
}

/* Highlight Box for Key Points */
.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.highlight-box p {
    margin-bottom: 0;
    font-style: italic;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .article-sidebar {
        position: static;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
    }

    .related-solutions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .related-solutions a {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 40px 20px 60px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

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

    .article-icon {
        width: 64px;
        height: 64px;
    }

    .article-container {
        padding: 2.5rem 20px;
    }

    .article-intro {
        font-size: 1.125rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-section p {
        font-size: 1rem;
    }

    .article-cta-section {
        padding: 2rem 1.5rem;
    }

    .related-solutions a {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 32px 16px 50px;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    .back-link {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }

    .article-container {
        padding: 2rem 16px;
    }
}
