/* News Articles Template Styling */

/* Article header */
.article-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.article-header .container {
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    background: #ff6b35;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-date {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.article-read-time {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-tagline {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Hero image */
.article-hero {
    width: 100%;
    height: auto;
    background: #f5f5f5;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
    display: block;
}

.hero-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.hero-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-placeholder p {
    opacity: 0.8;
}

/* Article content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article-content h2 {
    color: #1a1a2e;
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem 0;
}

.article-content p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #333;
    font-size: 1.05rem;
}

.article-content ul,
.article-content ol {
    margin: 1.2rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Key points highlight */
.key-points {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.key-points h4 {
    color: #e65100;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Quote styling */
.article-quote {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #495057;
}

.article-quote h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-style: normal;
    font-size: 1.2rem;
}

.article-quote p:last-child {
    margin-bottom: 0;
}

/* Sources section */
.sources-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.sources-section h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.sources-list {
    list-style: none;
    padding: 0;
}

.sources-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.sources-list li::before {
    content: "🔗";
    position: absolute;
    left: 0;
}

.sources-list a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.sources-list a:hover {
    border-bottom-color: #007bff;
}

/* Related articles */
.related-articles {
    background: #f8f9fa;
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.related-articles h3 {
    margin-bottom: 1.5rem;
    color: #495057;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.related-card h4 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Article infographic styling */
.article-infographic {
    text-align: center;
    margin: 2rem 0;
}

.article-infographic img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.infographic-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-tagline {
        font-size: 1.1rem;
    }
    
    .article-hero {
        height: auto;
    }
    
    .article-hero img {
        max-height: 250px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-infographic img {
        max-width: 85%;
    }
    
    .infographic-caption {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.7rem;
    }
    
    .article-hero {
        height: auto;
        margin: 1rem 0;
    }
    
    .article-hero img {
        max-height: 200px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-infographic img {
        max-width: 95%;
    }
}
