/* BBC-Style Editorial Layout */

.bbc-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    padding-top: 0.5rem;
}

/* Breaking News Banner */
.breaking-banner {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.breaking-label {
    background: white;
    color: #FF6B6B;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.breaking-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    flex: 1;
}

.breaking-title:hover {
    text-decoration: underline;
}

/* Hero Section - Editorial Style */
.bbc-hero {
    border-bottom: 3px solid var(--color-mint);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.hero-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.hero-main {
    max-width: 100%;
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1rem 0;
    color: var(--color-text-primary);
}

.hero-headline a {
    color: inherit;
    text-decoration: none;
}

.hero-headline a:hover {
    color: var(--color-mint);
}

.hero-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.meta-author {
    font-weight: 600;
    color: var(--color-text-primary);
}

.meta-separator {
    color: var(--color-text-light);
}

/* Secondary Headlines - 2x2 Grid */
.bbc-secondary {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.secondary-item {
    border-left: 3px solid var(--color-mint);
    padding-left: 1rem;
}

.secondary-image {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.secondary-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.secondary-image:hover img {
    transform: scale(1.05);
}

.secondary-headline {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.75rem 0 0.5rem;
}

.secondary-headline a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.secondary-headline a:hover {
    color: var(--color-mint);
}

.secondary-excerpt {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

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

/* Main Layout - Sidebar */
.bbc-main-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
    position: relative; /* Create positioning context for sticky */
    min-height: 100vh;
}

/* News Feed - List Style (BBC-like) */
.bbc-news-feed {
    min-width: 0;
}

/* Ensure main content column stretches */
.bbc-main-content {
    min-width: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-mint);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

/* News item WITH image - 2 columns */
.news-item:has(.news-image) {
    grid-template-columns: 200px 1fr;
}

/* News item WITHOUT image - 1 column (full width) */
.news-item:not(:has(.news-image)) {
    grid-template-columns: 1fr;
}

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

.news-image {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.news-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.news-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-headline {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.5rem 0;
}

.news-headline a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.news-headline a:hover {
    color: var(--color-mint);
}

.news-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* Sidebar - Compact Editorial Style */
.bbc-sidebar {
    /* JavaScript will handle sticky behavior */
    will-change: transform;
}

.bbc-sidebar.is-sticky {
    position: fixed;
    width: 320px;
}

.bbc-sidebar.is-stuck-bottom {
    position: absolute;
    bottom: 0;
    top: auto !important;
}

.sidebar-section {
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-mint);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-mint);
    line-height: 1;
    flex-shrink: 0;
    width: 30px;
}

.sidebar-content {
    flex: 1;
    min-width: 0;
}

.sidebar-headline {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.sidebar-headline a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.sidebar-headline a:hover {
    color: var(--color-mint);
}

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

/* Pagination */
.bbc-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .bbc-main-layout {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }

    .secondary-grid {
        gap: 1.5rem;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .news-headline {
        font-size: 1.25rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .bbc-container {
        padding: 0 0.75rem;
    }

    .breaking-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bbc-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-image img {
        height: 250px;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .hero-excerpt {
        font-size: 1rem;
    }

    .secondary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bbc-main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bbc-sidebar {
        position: static;
    }

    .news-item:has(.news-image) {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
    }

    .news-item:not(:has(.news-image)) {
        grid-template-columns: 1fr;
    }

    .news-image img {
        height: 100px;
    }

    .news-headline {
        font-size: 1.125rem;
    }

    .sidebar-section {
        padding: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.5rem;
    }

    .secondary-headline {
        font-size: 1.125rem;
    }

    .news-headline {
        font-size: 1rem;
    }

    .sidebar-rank {
        font-size: 1.25rem;
        width: 25px;
    }

    .sidebar-headline {
        font-size: 0.875rem;
    }
}
