/* Article Page Styles */
.article-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    background: #f8fafc;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
}

.breadcrumb a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.separator {
    color: var(--text-secondary, #64748b);
}

.current {
    color: var(--text-primary, #1e293b);
    font-weight: 500;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.article-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
}

.article-category {
    display: inline-block;
    background: var(--primary-color, #2563eb);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.author:before {
    content: "👤";
}

.date:before {
    content: "📅";
}

.read-time:before {
    content: "⏱️";
}

.article-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 2rem;
    line-height: 1.8;
    color: var(--text-primary, #1e293b);
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f1f5f9;
    border-left: 4px solid var(--primary-color, #2563eb);
    border-radius: 0 8px 8px 0;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 2rem 0 1rem 0;
}

.article-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 1.5rem 0 0.75rem 0;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body strong {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

/* Special Boxes */
.highlight-box,
.info-box,
.prediction-box,
.cta-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid;
}

.highlight-box {
    background: #fef7ff;
    border-color: #a855f7;
}

.info-box {
    background: #eff6ff;
    border-color: #3b82f6;
}

.prediction-box {
    background: #f0fdf4;
    border-color: #22c55e;
}

.cta-box {
    background: #fff7ed;
    border-color: #f97316;
    text-align: center;
}

.highlight-box h4,
.info-box h4,
.prediction-box h3,
.cta-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), #1d4ed8);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Article Footer */
.article-footer {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: #e2e8f0;
    color: var(--text-secondary, #64748b);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color, #2563eb);
    color: white;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 500;
    color: var(--text-primary, #1e293b);
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.related-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.related-card h4 a {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card h4 a:hover {
    color: var(--primary-color, #2563eb);
}

.related-date {
    padding: 0 1rem 1rem 1rem;
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
}

/* Navigation Updates */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-color, #2563eb);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .article-body {
        padding: 1.5rem 1rem;
    }
    
    .article-footer {
        padding: 1.5rem 1rem;
    }
    
    .related-articles {
        padding: 1.5rem 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .highlight-box,
    .info-box,
    .prediction-box,
    .cta-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}
