/* MLNF Layout CSS - Main content structure loaded after critical CSS */
/* Version: 8.2.0 - Refined Fairphone 4 hero based on screenshot feedback */

/* ==========================================
   PAGE HEADER STYLES
   ========================================== */

/* Page Header Styles */
.page-header {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(var(--primary-rgb), 0.5);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    z-index: 2;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 13, 26, 0.15), rgba(26, 26, 51, 0.1));
    z-index: -1;
}

body.light-theme .hero::before {
    background: linear-gradient(rgba(240, 240, 245, 0.1), rgba(220, 220, 235, 0.15));
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 25px rgba(var(--accent-rgb, 255, 94, 120), 0.8);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: eternalGlow 3s ease-in-out infinite alternate;
}

body.light-theme .hero h1 {
    text-shadow: 0 0 15px rgba(214, 45, 77, 0.5);
    background: linear-gradient(45deg, #d62d4d, #e06000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(var(--accent-rgb, 255, 94, 120), 0.3);
}

body.light-theme .hero p {
    text-shadow: none;
    color: #262640;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Particle Container - covers full viewport */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.particle {
    position: absolute;
    bottom: -20px;
    border-radius: 50%;
    pointer-events: none;
    animation-name: floatUp;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% { 
        transform: translateY(0px); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-100vh); 
        opacity: 0; 
    }
}

/* ==========================================
   CENSORSHIP WARNING SECTION
   ========================================== */

/* Censorship Warning Section Style */
.censorship-warning {
    background: rgba(255, 68, 68, 0.1);
    padding: 1rem;
    text-align: center;
    margin: 2.5rem auto;
    max-width: 800px;
    border-left: 5px solid var(--danger);
    border-radius: var(--border-radius);
}

/* Mobile responsive positioning for disclaimer */
@media (max-width: 768px) {
    .censorship-warning {
        margin: 15vh auto 1.5rem auto;
    }
}

@media (max-width: 480px) {
    .censorship-warning {
        margin: 20vh auto 1rem auto;
    }
}

.censorship-warning p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

body.light-theme .censorship-warning p {
    color: var(--text);
}

/* ==========================================
   SECTION TITLES & STRUCTURE
   ========================================== */

/* General Section Title Styling */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

body.light-theme .section-title h2 {
    background: linear-gradient(45deg, #d62d4d, #e06000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(214, 45, 77, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 120px;
    height: 3px;
    background: var(--gradient-accent);
    transform: translateX(-50%);
}

.section-title p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
    color: var(--text-secondary, var(--text));
    margin-top: 0.5rem;
}

body.light-theme .section-title p {
    color: var(--text-secondary, #3a3a5c);
}

/* ==========================================
   SECTION WRAPPERS
   ========================================== */

/* Section Wrappers - Consistent Refined Spacing */
.features-section,
.highlights-section,
.mindmap-section {
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    z-index: 1;
}

/* ==========================================
   GRID LAYOUTS
   ========================================== */

/* Grid Layouts - Refined Spacing */
.features-grid,
.highlight-grid,
.debate-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1440px;
    margin: 2.5rem auto;
    align-items: stretch; /* Ensure equal height cards */
}

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

/* General Keyframes */
@keyframes eternalGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(var(--accent-rgb, 255, 94, 120), 0.4), 0 0 20px rgba(var(--accent-rgb, 255, 94, 120), 0.2); }
    50% { text-shadow: 0 0 20px rgba(var(--accent-rgb, 255, 94, 120), 0.7), 0 0 40px rgba(var(--accent-rgb, 255, 94, 120), 0.4); }
}

/* ==========================================
   RESPONSIVE LAYOUT
   ========================================== */

/* For general page layout elements */
@media (max-width: 768px) {
    .hero { min-height: 70vh; padding: 2rem 1rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; } /* Stack buttons */

    .section-title h2 { font-size: 2.2rem; }
    .section-title p { font-size: 1rem; }

    .features-grid, .highlight-grid, .debate-preview-grid { 
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem auto;
        padding: 0 1rem;
        width: 100%;
        max-width: 500px;
    }
}

/* Fairphone 4 Specific Optimizations - 1080x2340, 19.5:9 aspect ratio */
@media screen and (max-width: 414px) and (min-height: 800px) and (orientation: portrait) {
    .hero {
        min-height: 75vh;
        padding: 1.5rem 1.25rem;
        justify-content: flex-start;
        padding-top: 15vh; /* Account for tall screen */
    }
    
    .hero-content {
        padding: 2rem 1.75rem;
        max-width: 88%;
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 0.875rem;
        letter-spacing: -0.01em;
    }
    
    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 260px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        border-radius: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .section-title h2 { font-size: 1.8rem; }
}