/*
Theme Name: World Wide Headlines
Theme URI: https://example.com/world-wide-headlines
Author: Your Name
Author URI: https://example.com
Description: A modern, AI-powered news portal theme inspired by Eenadu.net.
Version: 1.0.2
*/

/* --- General Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
}

/* IMPROVEMENT: Updated color scheme to a professional blue */
.section-title {
    background-color: #1e3a8a; /* Dark Blue */
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
    border-left: 5px solid #3b82f6; /* Brighter Blue */
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: 2px solid #3b82f6; /* Brighter Blue */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.state-news-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e3a8a; /* Dark Blue */
    margin-bottom: 1rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Sidebar Tab Styles */
.sidebar-tab {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 2px solid transparent;
}

.sidebar-tab.active {
    color: #1e3a8a; /* Dark Blue */
    border-bottom-color: #1e3a8a;
}

/* Horizontal Ticker Styles */
.category-ticker-box {
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.category-ticker-title {
    font-weight: bold;
    color: #1e40af; /* Medium Blue */
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.horizontal-ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.horizontal-ticker-content {
    display: flex;
    width: max-content; /* Let the content define the width */
    animation: horizontal-scroll 25s linear infinite;
}

.horizontal-ticker-content li {
    width: 300px; /* Adjust width of each news item */
    flex-shrink: 0;
    padding-right: 1.5rem; /* Space between items */
    white-space: normal;
}

.category-ticker-box:hover .horizontal-ticker-content {
    animation-play-state: paused;
}

@keyframes horizontal-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: #666;
}

/* Loader Styles */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1e3a8a; /* Dark Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* --- NEW STYLES --- */

/* Video Overlay Styles */
.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

a:hover .video-overlay {
    opacity: 1;
}

/* Photo Gallery Overlay Styles */
.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    color: white;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

a:hover .photo-overlay {
    opacity: 1;
}

