/* News Article Styles */

.news-article-container {
    min-height: 80vh;
    padding: 2rem 0;
    background: #f8f9fa;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Article Header */
.article-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-category {
    padding: 0.375rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-general { background: #e9ecef; color: #495057; }
.category-mental-health { background: #d1ecf1; color: #0c5460; }
.category-crisis-response { background: #f8d7da; color: #721c24; }
.category-community { background: #d4edda; color: #155724; }
.category-research { background: #fff3cd; color: #856404; }
.category-events { background: #e2e3ff; color: #383d41; }

.featured-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.article-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: #e74c3c;
}

/* Featured Image */
.article-featured-image {
    margin: 0;
    text-align: center;
    background: #f8f9fa;
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Article Content */
.article-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #34495e;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.article-content h1 {
    font-size: 2rem;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.6rem;
}

.article-content h3 {
    font-size: 1.4rem;
}

.article-content h4 {
    font-size: 1.2rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-content a {
    color: #e74c3c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #c0392b;
    border-bottom-color: #c0392b;
}

.article-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.article-content em {
    font-style: italic;
    color: #34495e;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #e74c3c;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Article Footer */
.article-footer {
    padding: 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h4,
.article-share h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-tags h4 i,
.article-share h4 i {
    color: #e74c3c;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #dee2e6;
    transform: translateY(-1px);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #0d8bd9;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.facebook:hover {
    background: #365899;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.linkedin:hover {
    background: #005885;
}

.share-btn.email {
    background: #6c757d;
    color: white;
}

.share-btn.email:hover {
    background: #545b62;
}

/* Article Navigation */
.article-navigation {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    padding: 0 2rem;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.back-to-news:hover {
    color: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.back-to-news i {
    transition: transform 0.3s ease;
}

.back-to-news:hover i {
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-article-container {
        padding: 1rem 0;
    }
    
    .news-article {
        margin: 0 1rem;
        border-radius: 0.5rem;
    }
    
    .article-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .article-featured-image img {
        height: 250px;
    }
    
    .article-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .article-content h1 {
        font-size: 1.6rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .article-footer {
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .article-navigation {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-footer {
        padding: 1rem;
    }
    
    .tags-list {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Print Styles */
@media print {
    .news-article-container {
        background: white;
        padding: 0;
    }
    
    .article-footer,
    .article-navigation,
    .share-buttons {
        display: none;
    }
    
    .article-content a {
        color: #000;
        text-decoration: underline;
    }
    
    .article-featured-image img,
    .article-image {
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Article Language Switcher */
.article-language-switcher {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.article-language-switcher h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: white;
    color: #495057;
    text-decoration: none;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-option:hover {
    border-color: #0c5a8a;
    background: #f8f9fa;
    text-decoration: none;
    color: #0c5a8a;
}

.lang-option.active {
    background: #0c5a8a;
    color: white;
    border-color: #0c5a8a;
}

.lang-option.active:hover {
    background: #0a4e75;
    border-color: #0a4e75;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .news-article-container {
        background: #1a1a1a;
    }
    
    .news-article {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .article-title {
        color: #f7fafc;
    }
    
    .article-content {
        color: #e2e8f0;
    }
    
    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4 {
        color: #f7fafc;
    }
    
    .article-footer {
        background: #4a5568;
        border-top-color: #4a5568;
    }
    
    .back-to-news {
        background: #4a5568;
        color: #e2e8f0;
    }
}
