/* ==========================================
   MODERN DARK SPORTS NETWORK THEME
   ========================================== */

:root {
    --bg-dark: #0a0a0c;
    --bg-card: #16161a;
    --bg-nav: #111114;
    --accent-neon: #00f0ff;
    --accent-red: #ff2a6d;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2a35;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- NAVIGATION --- */
.main-nav {
    background: var(--bg-nav);
    padding: 1rem 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    border-bottom: 2px solid var(--accent-neon);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-neon);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* --- NEWS TICKER --- */
.news-ticker {
    background: #000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 12px 0;
    overflow: hidden;
    position: sticky;
    top: 60px;
    z-index: 99;
}

.ticker-logo {
    background: var(--accent-neon);
    color: #000;
    padding: 6px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 20px;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.ticker-logo h2 { margin: 0; font-size: 1.2rem; }

.ticker-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: scrollTicker 40s linear infinite;
}

.ticker-item {
    color: #fff;
    text-decoration: none;
    margin-right: 40px;
    font-weight: 500;
    font-size: 0.95rem;
}

.ticker-item:hover { color: var(--accent-neon); }

.ticker-bullet {
    color: var(--accent-red);
    margin-right: 8px;
    font-size: 1.2rem;
    vertical-align: middle;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- WEATHER WIDGET --- */
.weather-widget {
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    font-weight: 600;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

/* --- MAIN LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin: 0;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.refresh-time {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* --- STORY GRID & CARDS --- */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-neon);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.2);
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.story-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-source {
    color: var(--accent-neon);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.story-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: var(--text-main);
}

.story-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-neon);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loading-text {
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
    padding: 40px;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    font-size: 0.9rem;
}