/**
 * News Detail Page Styles
 * Inspired by Indian government websites
 * Matches with the news-ticker.css grid style
 */

/* News Detail Page - Main Container */
.news-detail-page {
    background-color: var(--section-light);
    position: relative;
    padding-bottom: 3rem;
}

/* Optional subtle pattern overlay */
.news-detail-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to right, rgba(27, 67, 50, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(27, 67, 50, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.news-detail-page > * {
    position: relative;
    z-index: 1;
}

/* Breadcrumb styles */
.breadcrumb-container {
    background-color: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumbs {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs .separator {
    padding: 0 0.5rem;
    color: var(--text-tertiary);
}

.breadcrumbs .current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Article container */
.news-article {
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

/* Article header */
.news-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--neutral-200);
}

.back-link {
    margin-bottom: 1rem;
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.news-title {
    font-size: 1.75rem;
    line-height: 1.3;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.news-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-meta i {
    color: #ffffff;
}

/* Featured image */
.news-featured-image {
    padding: 1.5rem 2rem 0;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

/* Content area */
.news-content {
    padding: 1.5rem 2rem 2rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.news-content p {
    margin-bottom: 1.25rem;
    font-size: var(--text-base);
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.news-content h2, 
.news-content h3, 
.news-content h4 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.news-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    padding-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
}

.news-content h4 {
    font-size: 1.1rem;
}

.news-content ul, 
.news-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: rgba(27, 67, 50, 0.05);
    font-style: italic;
}

/* Footer with share buttons */
.news-footer {
    border-top: 1px solid var(--neutral-200);
    padding: 1.5rem 2rem;
    background-color: rgba(27, 67, 50, 0.03);
}

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

.share-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-buttons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.share-buttons a.facebook {
    background-color: #3b5998;
}

.share-buttons a.twitter {
    background-color: #1da1f2;
}

.share-buttons a.whatsapp {
    background-color: #25d366;
}

.share-buttons a.email {
    background-color: var(--primary);
}

.share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Sidebar styling */
.news-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-block {
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
}

.sidebar-title {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--white);
}

.related-news-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    transition: background-color 0.3s ease;
}

.related-news-item:hover {
    background-color: rgba(27, 67, 50, 0.03);
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-news-image {
    flex: 0 0 80px;
}

.related-news-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.05);
}

.related-news-content {
    flex: 1;
}

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

.related-news-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-news-content h4 a:hover {
    color: var(--primary);
}

.related-news-date {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-news-date i {
    color: var(--primary);
    font-size: 0.8rem;
}

.no-related-news {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-tertiary);
}

/* Responsive styles */
@media (max-width: 991px) {
    .news-header {
        padding: 1.25rem 1.5rem;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .news-footer {
        padding: 1.25rem 1.5rem;
    }
    
    .news-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb-container {
        margin-bottom: 1.25rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .news-featured-image {
        padding: 1rem 1rem 0;
    }
    
    .news-content {
        padding: 1rem 1rem 1.5rem;
    }
    
    .news-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .related-news-item {
        padding: 1rem;
    }
}

/* Print styles */
@media print {
    .news-detail-page::before {
        display: none;
    }
    
    .news-article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .sidebar-block,
    .breadcrumb-container,
    .news-footer,
    .back-link {
        display: none;
    }
    
    .news-content,
    .news-header {
        padding: 0;
        border: none;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .news-detail-page::before {
        display: none;
    }
    
    .news-article,
    .sidebar-block {
        border: 2px solid #000;
        box-shadow: none;
    }
    
    .sidebar-title {
        background-color: #000;
    }
    
    .breadcrumbs a,
    .back-link a,
    .news-meta i,
    .related-news-date i,
    .news-content h2,
    .news-content h3,
    .news-content h4 {
        color: #000;
    }
    
    .share-buttons a {
        background-color: #000;
        border: 1px solid #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .news-detail-page *,
    .news-article *,
    .related-news-image img,
    .share-buttons a {
        transition: none !important;
        transform: none !important;
    }
} 