/* ============================================
   GOOD NEWS 24 - PROFESSIONAL NEWS LAYOUT
   BBC-inspired, warm branding, mobile-first
   ============================================ */

/* ===== HEADER - COMPACT & PROFESSIONAL ===== */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #FF8C42;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #2D3748;
    letter-spacing: -0.5px;
}

.logo-24 {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation - Horizontal */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 10px 16px;
    color: #4A5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 100%);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Search Button */
.search-btn {
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    border-color: #FF8C42;
    color: #FF8C42;
    background: #FFF9F0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #4A5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== MAIN CONTENT CONTAINER ===== */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 20px;
    background: #FFFBF5;
}

/* ===== FEATURED STORY - HERO STYLE ===== */
.featured-section {
    margin-bottom: 48px;
}

.featured-article {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.featured-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 100%);
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-image-container img {
    transform: scale(1.05);
}

.featured-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #FF8C42;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-breaking-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8C42 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.featured-content {
    padding: 32px;
}

.featured-headline {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: #2D3748;
    margin: 0 0 16px 0;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
}

.featured-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: #4A5568;
    margin-bottom: 24px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFB347 0%, #FF8C42 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin: 48px 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #2D3748;
    margin: 0;
}

.section-emoji {
    font-size: 36px;
}

.section-subtitle {
    color: #718096;
    font-size: 16px;
    margin-top: 8px;
}

/* ===== STORY GRID - 3 COLUMNS ===== */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* Story Card */
.story-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.story-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #4FC3F7 0%, #26C6DA 100%);
}

.story-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover .story-image-container img {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #FF8C42;
}

.fresh-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD54F 0%, #FFB347 100%);
    color: #2D3748;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(255, 213, 79, 0.4);
}

.story-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #2D3748;
    margin: 0 0 12px 0;
}

.story-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #4A5568;
    margin-bottom: 16px;
    flex: 1;
}

.story-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
    color: #718096;
    font-size: 13px;
    font-weight: 600;
}

.story-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.story-category-tag {
    background: #FFF9F0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #FF8C42;
    font-weight: 700;
}

/* ===== RESPONSIVE - MOBILE FIRST ===== */

/* Tablets (2 columns) */
@media (max-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .featured-headline {
        font-size: 30px;
    }
    
    .featured-image-container {
        height: 360px;
    }
}

/* Mobile (1 column) */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-navigation.mobile-open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    
    .nav-list a {
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-btn {
        order: 2;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .featured-image-container {
        height: 280px;
    }
    
    .featured-headline {
        font-size: 24px;
    }
    
    .featured-content {
        padding: 24px;
    }
    
    .featured-excerpt {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .content-wrapper {
        padding: 20px 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .featured-headline {
        font-size: 22px;
    }
    
    .story-headline {
        font-size: 16px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-card {
    animation: fadeInUp 0.5s ease-out;
}

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }
.story-card:nth-child(4) { animation-delay: 0.4s; }
.story-card:nth-child(5) { animation-delay: 0.5s; }
.story-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== GLASSMORPHISM ENHANCEMENTS (SUBTLE) ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
}

/* Keep warm gradient overlays subtle */
.warm-overlay {
    position: relative;
}

.warm-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.05) 0%, rgba(255, 140, 66, 0.08) 100%);
    pointer-events: none;
}
