/* ========================================= */
/* --- General Resets & Variables --- */
/* ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4; 
    color: #333; 
}

body.ab-locked {
    overflow: hidden;
}

:root {
    --color-green-primary: #4CAF50; 
    --color-green-dark: #388E3C; 
    --color-gray-bg: #e0e0e0; 
    --color-gray-text: #555; 
    --color-gray-border: #ccc;
    --color-white: #fff;
    --content-width-desktop: 70%;
    --sidebar-width-desktop: 30%;
    --spacing: 20px;
    --color-breaking-red: #cc0000; 
    /* Weather Specific Colors */
    --color-alert-extreme: #d32f2f;
    --color-alert-severe: #f57c00;
}

/* ========================================= */
/* --- AdBlock Blocker Overlay (No box-shadow) --- */
/* ========================================= */
.ab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ab-content {
    background: var(--color-white);
    padding: 40px;
    max-width: 500px;
    text-align: center;
    border-radius: 8px;
    border: 4px solid var(--color-green-primary);
}

.ab-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.ab-content p {
    margin-bottom: 20px;
    color: var(--color-gray-text);
}

.btn-ab-refresh {
    background-color: var(--color-green-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-ab-refresh:hover {
    background-color: var(--color-green-dark);
}

/* ========================================= */
/* --- Header & Navigation --- */
/* ========================================= */
.main-header {
    background-color: var(--color-gray-bg);
    border-bottom: 2px solid var(--color-green-primary);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area .logo {
    max-width: 150px;
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column; 
    padding-top: 10px;
}

.main-nav ul li {
    padding: 5px 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.main-nav ul li a:hover {
    background-color: var(--color-green-primary);
    color: var(--color-white);
}

/* ========================================= */
/* --- BREAKING NEWS SCROLLING BANNER --- */
/* ========================================= */
.breaking-news-bar {
    background-color: #f1f1f1;
    border-bottom: 2px solid var(--color-breaking-red);
    padding: 5px 0;
    overflow: hidden;
}

.breaking-news-bar.has-weather {
    border-bottom: 2px solid #ff8c00; 
}

.breaking-news-content {
    display: flex;
    align-items: center;
}

.breaking-news-content .label {
    background-color: var(--color-breaking-red);
    color: var(--color-white);
    font-weight: bold;
    font-size: 0.9em;
    padding: 5px 10px;
    margin-right: 15px;
    flex-shrink: 0;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.breaking-news-bar.has-weather .label {
    background-color: #ff8c00;
}

.scrolling-text {
    margin: 0;
    padding: 0;
    font-size: 0.9em;
    font-weight: 500;
    color: #333;
    white-space: nowrap; 
    animation: news-scroll 25s linear infinite;
}

@keyframes news-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ========================================= */
/* --- Main Layout --- */
/* ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.content-area {
    padding: var(--spacing) 0;
    min-height: 60vh;
}

.content-and-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
}

.main-content-stream {
    width: 100%;
}

/* ========================================= */
/* --- Article & News Listing Styles --- */
/* ========================================= */
.article-meta {
    font-size: 0.85em;
    color: var(--color-gray-text);
    margin-bottom: 10px;
}

.article-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: var(--spacing);
}

.article-content {
    margin-top: var(--spacing);
    font-size: 1.1em;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-page h1,
.article-page .article-meta,
.article-page .article-hero,
.article-page .article-content,
.article-page .social-share-bar {
    max-width: 750px; 
    margin-left: auto;
    margin-right: auto;
}

.article-page h1 {
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.featured-article-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    overflow: hidden;
}

.featured-article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ========================================= */
/* --- Sidebar & Widgets --- */
/* ========================================= */
.sidebar {
    width: 100%;
    padding: var(--spacing);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 5px;
}

.sidebar-widget {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-green-primary);
    padding-bottom: 5px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather-sidebar-widget h3 {
    border-bottom-color: #ff8c00; 
}

.sidebar-alert-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.sidebar-alert-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.alert-type {
    display: block;
    font-weight: bold;
    color: #cc0000;
    font-size: 0.9em;
}

.alert-loc {
    display: block;
    font-size: 0.8em;
    color: var(--color-gray-text);
    line-height: 1.3;
}

.widget-cta {
    display: block;
    text-align: center;
    background-color: #444;
    color: #fff !important;
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

/* ========================================= */
/* --- Weather Page Specific Styles --- */
/* ========================================= */
.weather-page h1 {
    text-align: center;
    margin-bottom: 10px;
}

.radar-container {
    width: 100%;
    height: 600px;
    margin-bottom: 40px;
    border: 2px solid var(--color-gray-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.weather-map-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.alert-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 8px solid #ccc;
}

.alert-card.severity-extreme { border-left-color: var(--color-alert-extreme); }
.alert-card.severity-severe { border-left-color: var(--color-alert-severe); }

.btn-secondary {
    display: inline-block;
    padding: 8px 15px;
    background-color: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
}

/* ========================================= */
/* --- Utility & Social Share --- */
/* ========================================= */

/* Affiliate Disclosure Box Styling */
.affiliate-disclosure-box {
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid #dddddd; /* Clean, flat border */
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 1100px; /* Aligns with your main content width */
    text-align: center;
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.5;
}

.affiliate-disclosure-box strong {
    color: #333333;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Ensure it looks good on mobile */
@media (max-width: 768px) {
    .affiliate-disclosure-box {
        margin: 15px;
        padding: 12px;
        font-size: 0.8rem;
    }
}
.social-share-bar {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--color-gray-border);
    border-bottom: 1px solid var(--color-gray-border);
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    font-size: 0.9em;
    font-weight: bold;
    color: var(--color-white);
    border-radius: 5px;
    text-decoration: none;
    min-width: 110px;
}

.facebook-btn { background-color: #3b5998; }
.x-btn { background-color: #000000; }
.linkedin-btn { background-color: #0077b5; }
.truthsocial-btn { background-color: #f12d4d; }

/* ========================================= */
/* --- Responsive Adjustments --- */
/* ========================================= */
@media (min-width: 768px) {
    .main-nav ul {
        flex-direction: row;
    }
    
    .content-and-sidebar {
        flex-direction: row;
    }

    .main-content-stream {
        width: var(--content-width-desktop);
        max-width: 800px; 
    }

    .sidebar {
        width: var(--sidebar-width-desktop);
    }
}