/* ============================================
   GOOD NEWS 24 - Positive News Website
   Your 24-hour source for good news 📺
   goodnews-24.com
   ============================================ */

/* CSS Variables - Our Warm, Professional Color Palette */
:root {
    --sunshine-yellow: #FFD93D;
    --warm-orange: #FF9F1C;
    --soft-coral: #FF6B6B;
    --sky-blue: #4ECDC4;
    --ocean-blue: #3B82F6;
    --fresh-green: #10B981;
    --lavender: #A78BFA;
    --soft-pink: #F9A8D4;
    
    /* News channel accent - professional red for "24" */
    --news-red: #E53935;
    --news-red-dark: #C62828;
    
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;
    --background-white: #FFFFFF;
    --background-cream: #FFFBF0;
    --background-light: #FEF9E7;
    
    --gradient-hero: linear-gradient(135deg, #FFD93D 0%, #FF9F1C 50%, #FF6B6B 100%);
    --gradient-warm: linear-gradient(135deg, #FFD93D 0%, #FF9F1C 100%);
    --gradient-fresh: linear-gradient(135deg, #4ECDC4 0%, #10B981 100%);
    --gradient-broadcast: linear-gradient(135deg, #FF9F1C 0%, #E53935 100%);
    
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.main-header {
    background: var(--background-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-24 {
    background: var(--news-red);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: white;
    background-clip: initial;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 900;
    box-shadow: 0 2px 4px rgba(229, 57, 53, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--background-light);
    color: var(--warm-orange);
}

.nav-links a.support-link {
    background: linear-gradient(135deg, #FF5E5B 0%, #FF9966 100%);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 94, 91, 0.3);
}

.nav-links a.support-link:hover {
    background: linear-gradient(135deg, #FF4845 0%, #FF8855 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 91, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: var(--gradient-hero);
    padding: 80px 20px 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* LIVE Badge */
.live-badge {
    display: inline-block;
    background: var(--news-red);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
    letter-spacing: 1px;
}

@keyframes livePulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
    }
    50% { 
        box-shadow: 0 4px 25px rgba(229, 57, 53, 0.7);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--warm-orange);
    padding: 15px 35px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ============================================
   SECTIONS - Common Styles
   ============================================ */

section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ============================================
   FEATURED STORY
   ============================================ */

.featured-story {
    background: var(--background-cream);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.featured-image {
    position: relative;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.category-tag.heroes { background: var(--soft-coral); }
.category-tag.science { background: var(--ocean-blue); }
.category-tag.animals { background: var(--fresh-green); }
.category-tag.community { background: var(--soft-pink); }
.category-tag.environment { background: var(--sky-blue); }
.category-tag.health { background: var(--lavender); }

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.story-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.featured-content p {
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: var(--warm-orange);
    font-weight: 700;
    margin-top: 10px;
}

.read-more:hover {
    color: var(--soft-coral);
    transform: translateX(5px);
}

/* ============================================
   STORIES GRID
   ============================================ */

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.story-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.story-content {
    padding: 25px;
}

.story-content h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.story-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categories-section {
    background: var(--background-light);
}

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

.category-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.category-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.heroes-bg { background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%); }
.science-bg { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.animals-bg { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.community-bg { background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%); }
.environment-bg { background: linear-gradient(135deg, #4ECDC4 0%, #2DD4BF 100%); }
.health-bg { background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%); }

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
    background: var(--gradient-hero);
    padding: 80px 20px;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content > p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: 3px solid rgba(255,255,255,0.5);
}

.newsletter-form button {
    padding: 15px 30px;
    background: white;
    color: var(--warm-orange);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.newsletter-note {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* ============================================
   QUOTE SECTION
   ============================================ */

.quote-section {
    background: var(--background-cream);
    padding: 60px 20px;
    text-align: center;
}

.quote-section blockquote {
    max-width: 700px;
    margin: 0 auto;
}

.quote-section blockquote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 15px;
}

.quote-section cite {
    color: var(--text-light);
    font-style: normal;
    font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand .logo-text {
    color: white;
    -webkit-text-fill-color: white;
}

.footer-brand .logo-24 {
    -webkit-text-fill-color: white;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

.footer-links h4,
.footer-social h4 {
    color: var(--sunshine-yellow);
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-social p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--warm-orange);
    transform: translateY(-3px);
}

.footer-support h4 {
    color: var(--sunshine-yellow);
    font-size: 1rem;
    margin-bottom: 15px;
}

.footer-support p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.kofi-button:hover {
    background: #FF4845 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 91, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
    background: var(--gradient-fresh);
    padding: 80px 20px;
    text-align: center;
}

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.about-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    padding: 60px 20px;
}

.about-content .container {
    max-width: 800px;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.about-content li {
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ============================================
   LISTEN PAGE
   ============================================ */

.listen-hero {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    padding: 80px 20px;
    text-align: center;
}

.listen-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.listen-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
}

.listen-content {
    padding: 60px 20px;
    text-align: center;
}

.coming-soon-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--background-light);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

.coming-soon-card .emoji {
    font-size: 5rem;
    margin-bottom: 20px;
}

.coming-soon-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.coming-soon-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ============================================
   CATEGORY PAGES
   ============================================ */

.category-hero {
    padding: 60px 20px;
    text-align: center;
}

.category-hero.heroes-page { background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%); }
.category-hero.science-page { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); }
.category-hero.animals-page { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.category-hero.community-page { background: linear-gradient(135deg, #F472B6 0%, #EC4899 100%); }
.category-hero.environment-page { background: linear-gradient(135deg, #4ECDC4 0%, #2DD4BF 100%); }
.category-hero.health-page { background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%); }

.category-hero .emoji {
    font-size: 4rem;
    margin-bottom: 15px;
}

.category-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
}

.category-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: var(--shadow-medium);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 12px 20px;
        width: 100%;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 250px;
    }
    
    .featured-content {
        padding: 25px;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-24 {
        font-size: 0.85em;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 15px 100px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Success message styling */
.success-message {
    background: var(--fresh-green);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    margin-top: 15px;
    font-weight: 600;
}
