/* Professional Article Page Styles */

/* Navigation */
.article-nav {
    background: #0f172a;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.article-nav .nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-nav .logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: #3b82f6;
    letter-spacing: 1px;
    text-decoration: none;
}

.article-nav .nav-links {
    display: flex;
    gap: 24px;
}

.article-nav .nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.article-nav .nav-links a:hover {
    color: white;
}

/* Article Hero Header */
.article-hero {
    padding: 140px 24px 60px;
    text-align: center;
    color: white;
}

.article-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-category-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.article-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.article-hero-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

/* Featured Image */
.article-image-container {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.article-featured-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Article Container */
.article-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Back Link */
.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.article-back-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateX(-4px);
}

/* Article Content */
.article-body-content {
    background: white;
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.article-body-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin: 48px 0 24px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

.article-body-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin: 32px 0 16px;
}

.article-body-content p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #475569;
    margin-bottom: 24px;
}

.article-body-content ul, 
.article-body-content ol {
    margin: 24px 0;
    padding-left: 28px;
}

.article-body-content li {
    margin-bottom: 14px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.article-body-content strong {
    color: #0f172a;
    font-weight: 600;
}

/* Code Blocks */
.article-body-content pre {
    background: #0d1117;
    color: #c9d1d9;
    padding: 24px;
    border-radius: 14px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 28px 0;
    border: 1px solid #30363d;
}

.article-body-content code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    color: #1e293b;
}

.article-body-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tables */
.article-body-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-body-content th {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    font-size: 0.95rem;
}

.article-body-content td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.article-body-content tr:last-child td {
    border-bottom: none;
}

.article-body-content tr:hover td {
    background: #f8fafc;
}

/* Footer */
.article-footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 32px;
    margin-top: 40px;
}

.article-footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .article-nav .nav-links {
        display: none;
    }
    
    .article-hero {
        padding: 120px 20px 50px;
    }
    
    .article-hero-title {
        font-size: 1.8rem;
    }
    
    .article-hero-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .article-image-container {
        margin-top: -30px;
    }
    
    .article-featured-image {
        height: 250px;
    }
    
    .article-body-content {
        padding: 28px;
    }
    
    .article-body-content h2 {
        font-size: 1.5rem;
    }
}
