/* gabs.news - Asymmetric Bold Grid News */

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #0a0a0a;
    background: #ffffff;
}

/* ===== Red Top Bar ===== */
#top-bar {
    width: 100%;
    height: 4px;
    background: #dc2626;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* ===== Masthead ===== */
#masthead {
    padding: 20px 48px 16px;
    border-bottom: 2px solid #0a0a0a;
    margin-top: 4px;
}

.masthead-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

.masthead-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 42px;
    letter-spacing: -1px;
    color: #0a0a0a;
    text-transform: lowercase;
}

.edition-label,
.date-label {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Hero Zone ===== */
#hero-zone {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 32px;
}

.hero-lead {
    padding-right: 32px;
    border-right: 1px solid #d1d5db;
}

.headline-lead {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 48px;
    line-height: 1.1;
    color: #0a0a0a;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #0a0a0a;
    margin-bottom: 16px;
    max-width: 640px;
}

.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.secondary-story {
    padding-bottom: 24px;
    border-bottom: 1px solid #d1d5db;
}

.secondary-story:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.headline-secondary {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    color: #0a0a0a;
    margin-bottom: 8px;
}

/* ===== Category Labels ===== */
.category-label {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    margin-bottom: 8px;
}

.category-breaking {
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.red-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== Bylines ===== */
.byline {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    gap: 12px;
    align-items: center;
}

.author {
    font-weight: 500;
}

.timestamp {
    font-weight: 400;
}

/* ===== Breaking Bar ===== */
#breaking-bar {
    background: #dc2626;
    color: #ffffff;
    padding: 10px 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.breaking-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 12px;
    border: 2px solid #ffffff;
}

.breaking-scroll-container {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.breaking-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    animation: scroll-breaking 30s linear infinite;
}

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

/* ===== Stories Section ===== */
#stories {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 48px;
}

.stories-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.story-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.story-large {
    padding-right: 32px;
    border-right: 1px solid #d1d5db;
}

.headline-large {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 32px;
    line-height: 1.15;
    color: #0a0a0a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.story-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0a0a0a;
    margin-bottom: 12px;
}

.story-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.story-small {
    padding-bottom: 24px;
    border-bottom: 1px solid #d1d5db;
}

.story-small:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.headline-small {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.25;
    color: #0a0a0a;
    margin-bottom: 8px;
}

.section-rule {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 0;
}

/* ===== Opinion Strip ===== */
#opinion-strip {
    background: #f9fafb;
    padding: 40px 48px;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6b7280;
    margin-bottom: 24px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.opinion-piece {
    padding-right: 24px;
    border-right: 1px solid #d1d5db;
}

.opinion-piece:last-child {
    border-right: none;
    padding-right: 0;
}

.headline-opinion {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.25;
    color: #0a0a0a;
    margin-bottom: 12px;
}

/* ===== Edition Footer ===== */
#edition-footer {
    padding: 60px 48px 48px;
    text-align: center;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.end-edition {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6b7280;
    margin-bottom: 24px;
}

.footer-masthead {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: #0a0a0a;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 16px;
}

.footer-meta {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.footer-separator {
    color: #d1d5db;
}

/* ===== Hover Effects / Interactions ===== */
.hero-lead:hover .headline-lead,
.secondary-story:hover .headline-secondary,
.story-large:hover .headline-large,
.story-small:hover .headline-small,
.opinion-piece:hover .headline-opinion {
    color: #dc2626;
    transition: color 0.2s ease;
}

.headline-lead,
.headline-secondary,
.headline-large,
.headline-small,
.headline-opinion {
    transition: color 0.2s ease;
    cursor: pointer;
}

/* ===== Scroll Animation Classes ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-lead {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #d1d5db;
        padding-bottom: 24px;
    }

    .headline-lead {
        font-size: 36px;
    }

    .story-row {
        grid-template-columns: 1fr;
    }

    .story-large {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #d1d5db;
        padding-bottom: 24px;
    }

    .opinion-grid {
        grid-template-columns: 1fr 1fr;
    }

    .opinion-piece:nth-child(2) {
        border-right: none;
        padding-right: 0;
    }

    .opinion-piece:nth-child(3) {
        padding-top: 24px;
    }

    #masthead {
        padding: 16px 24px 12px;
    }

    #hero-zone,
    #stories,
    #opinion-strip,
    #edition-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    #breaking-bar {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 600px) {
    .masthead-title {
        font-size: 28px;
    }

    .headline-lead {
        font-size: 28px;
    }

    .headline-large {
        font-size: 24px;
    }

    .opinion-grid {
        grid-template-columns: 1fr;
    }

    .opinion-piece {
        border-right: none;
        padding-right: 0;
        padding-bottom: 20px;
        border-bottom: 1px solid #d1d5db;
    }

    .opinion-piece:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .masthead-inner {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}
