/* Article Page Styles */

/* Main article wrapper - MUST have padding-top for fixed header */
.article-page {
    padding-top: 120px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.article-header {
    position: static;
    display: block;
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: #888;
    font-size: 14px;
}

.article-meta .category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #fff;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #fff;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    color: #fff;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content code {
    background: rgba(102, 126, 234, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #667eea;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #aaa;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin: 40px 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0 0 5px;
    color: #fff;
}

.author-info p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .article-page {
        padding-top: 100px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-hero-image {
        height: 250px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}
