/* ==========================================================================
   Wake Up America News — Main Stylesheet
   Republican-inspired color palette: Red, Navy, White, Gold
   ========================================================================== */

:root {
    --red: #BF0A30;
    --red-dark: #9A0825;
    --navy: #002868;
    --navy-dark: #001845;
    --navy-light: #003a8c;
    --white: #FFFFFF;
    --gold: #C5A54E;
    --gold-light: #D4B96A;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-text: #1A1A2E;
    --muted-text: #6C757D;
    --body-bg: #F8F9FA;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--red);
}

/* Top Bar */
.top-bar {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    padding: 6px 0;
}

.top-bar-date { font-weight: 500; }
.top-bar-tagline { font-style: italic; }

/* Main Navigation */
.main-nav {
    background-color: var(--navy) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white) !important;
    text-transform: uppercase;
}

.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 3px solid transparent;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--white) !important;
    border-bottom-color: var(--red);
}

/* Breaking News Strip */
.breaking-strip {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark-text);
    padding: 10px 0;
    font-weight: 700;
    overflow: hidden;
}

.breaking-badge {
    background-color: var(--red);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 12px;
    display: inline-block;
}

.breaking-strip a {
    color: var(--dark-text);
    font-weight: 600;
}

.breaking-strip a:hover {
    color: var(--red-dark);
}

/* Hero Section */
.hero-section {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-content {
    padding: 2rem;
}

.hero-category {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--red); }

.hero-meta {
    color: var(--muted-text);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero-excerpt {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Article Cards */
.article-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    display: inline-block;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.article-card-title a { color: inherit; }
.article-card-title a:hover { color: var(--red); }

.article-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    flex: 1;
}

.article-card-meta {
    color: var(--muted-text);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--medium-gray);
}

/* Featured Grid */
.featured-grid .article-card-img {
    height: 180px;
}

/* Section Headings */
.section-heading {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--red);
    letter-spacing: 0.5px;
}

/* Category Block */
.category-block {
    margin-bottom: 2.5rem;
}

.category-block .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-block .view-all {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    color: var(--red);
}

/* Trending Widget */
.trending-widget {
    background: var(--white);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.trending-widget .section-heading {
    font-size: 1.1rem;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.trending-item:last-child { border-bottom: none; }

.trending-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red);
    min-width: 35px;
    line-height: 1;
    margin-right: 0.75rem;
}

.trending-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.3;
}

.trending-title a { color: inherit; }
.trending-title a:hover { color: var(--red); }

.trending-meta {
    font-size: 0.75rem;
    color: var(--muted-text);
    margin-top: 2px;
}

/* Article Page */
.article-header { margin-bottom: 2rem; }

.article-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-text);
    font-size: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 2rem;
}

.article-meta-bar i { color: var(--red); }

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2,
.article-content h3 {
    color: var(--navy);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-content blockquote {
    border-left: 4px solid var(--red);
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    margin: 1.5rem 0;
    font-style: italic;
}

.article-content a { color: var(--red); text-decoration: underline; }

/* Badge styles */
.badge-featured {
    background-color: var(--gold);
    color: var(--dark-text);
}

.badge-breaking {
    background-color: var(--red);
    color: var(--white);
}

.badge-category {
    background-color: var(--navy);
    color: var(--white);
}

/* Category Page */
.category-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.category-header h1 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Gallery */
.gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 2rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Lightbox — move close button to top-right of viewport */
.lb-close {
    position: fixed !important;
    top: 16px;
    right: 16px;
    width: 40px !important;
    height: 40px !important;
    opacity: 0.9 !important;
    z-index: 10003;
    background-size: contain !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.lb-close:hover {
    opacity: 1 !important;
}

/* Lightbox — Back to Gallery button */
.gallery-back-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10003;
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
}
.gallery-back-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
}
.gallery-back-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .gallery-back-btn {
        padding: 12px 20px;
        font-size: 1rem;
        top: 12px;
        left: 12px;
    }
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Legal / Static Pages */
.static-page {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.static-page h1 {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--red);
}

/* Pagination */
.pagination .page-link {
    color: var(--navy);
    border-color: var(--medium-gray);
}

.pagination .page-item.active .page-link {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.pagination .page-link:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* Footer */
.site-footer {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-heading {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 1.5rem 0;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Utility */
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.bg-navy { background-color: var(--navy); }
.bg-red { background-color: var(--red); }

/* Article list (horizontal card) */
.article-list-item {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-list-img {
    width: 200px;
    min-height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.article-list-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-list-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-list-title a { color: var(--dark-text); }
.article-list-title a:hover { color: var(--red); }

/* Related articles sidebar */
.related-articles .article-card-img {
    height: 140px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-image { height: 250px; }
    .hero-title { font-size: 1.5rem; }
    .article-title { font-size: 1.6rem; }

    .article-list-item { flex-direction: column; }
    .article-list-img { width: 100%; height: 180px; }

    .site-logo { font-size: 1.15rem; }
    .main-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem !important;
    }

    .trending-widget { margin-top: 2rem; }
}

@media (max-width: 576px) {
    .hero-content { padding: 1.25rem; }
    .hero-image { height: 200px; }
    .breaking-strip { font-size: 0.9rem; }
}
