:root {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-red: #da291c;
    --accent-green: #006847;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --card-bg: #1e293b;
    --header-bg: rgba(15, 23, 42, 0.85);
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-red);
}

/* Header & Glassmorphism Navigation */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.02);
}

.date-display {
    color: var(--text-secondary);
    font-weight: 500;
}

.top-bar-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.25rem;
}

.top-bar-actions button:hover {
    color: var(--accent-green);
    transform: scale(1.1);
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-red) 100%);
    border-radius: 4px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-text span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    margin-top: 140px;
    min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero-section {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.8s ease-out;
}

.hero-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.hero-section:hover .hero-image {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
}

.category-tag {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.category-tag.politics { background-color: var(--accent-green); }
.category-tag.sports { background-color: #3b82f6; }

.hero-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.hero-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* News Grid Section */
.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--text-primary);
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40%;
    height: 3px;
    background-color: var(--accent-green);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* News Card */
.news-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    margin: 0.75rem 0;
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Trending Sidebar */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trending-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.trending-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--border-color);
    line-height: 1;
    transition: color 0.3s ease;
}

.trending-item:hover .trending-number {
    color: var(--accent-red);
}

.trending-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background-color: #111827;
    color: #f9fafb;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Gutter Ads (Skyscrapers) */
.gutter-ad {
    position: fixed;
    top: 160px;
    width: 160px;
    height: 600px;
    display: none;
    z-index: 900;
}
.gutter-ad img, .gutter-ad video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.gutter-ad-left { left: max(10px, calc(50% - 700px - 170px)); }
.gutter-ad-right { right: max(10px, calc(50% - 700px - 170px)); }

@media (min-width: 1760px) {
    .gutter-ad { display: block; animation: fadeIn 1s ease; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

html {
    scroll-behavior: smooth;
}
/* Responsive */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        margin-bottom: 2rem;
    }

    .hero-overlay {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    main {
        margin-top: 100px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .top-bar {
        padding: 0.5rem 1rem;
    }
    
    .date-display {
        display: none;
    }

    .logo-text {
        font-size: 1.4rem;
    }
    
    .hero-image {
        height: 50vh;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

html {
    scroll-behavior: smooth;
}
