:root {
    /* Brand Colors */
    --jellyflix-red: #E50914; /* Official Netflix Red [cite: 50] */
    --jellyflix-purple: #381452;
    --jellyflix-maroon: #4B0000;
    --jellyflix-dark: #101010; /* Theme Dark [cite: 50, 76] */
    
    /* Adjusted Gradient: More Red Visibility (Vibrant Red dominant) */
    --jellyflix-gradient: linear-gradient(90deg, #381452 0%, #8E44AD 15%, #E50914 45%, #E50914 85%, #4B0000 100%);
    
    --card-bg: #181818;
    --pure-white: #FFFFFF;
    interpolate-size: allow-keywords; /* Smooth height transitions [cite: 315] */
}

* { box-sizing: border-box; }

body {
    background-color: var(--jellyflix-dark);
    color: var(--pure-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* Header Restored to far Left and Right Edges */
.headerTop {
    background-color: rgba(0, 0, 0, 0.98);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes items to edges */
    padding: 0 40px; /* Breathing room from screen edges */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.headerLeft { display: flex; align-items: center; gap: 20px; position: relative; }

/* Logo Shine/Bloom Effect [cite: 13] */
.headerLogo {
    background-image: url('https://asset.heisen.co.uk/jf/Jellyflix.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 140px;
    height: 35px;
    filter: drop-shadow(0 0 4px rgba(142, 68, 173, 0.5)) 
            drop-shadow(0 0 8px rgba(229, 9, 20, 0.3));
}

/* Menu Visibility Logic */
.menu-wrapper { position: relative; }

.hamburger-menu {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.nav-links {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-radius: 4px;
}

.nav-links.active { display: flex; flex-direction: column; }

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 700;
}

.nav-links a:hover { background: #222; color: var(--jellyflix-red); }

/* Main Body Constraints (Remains Centered) [cite: 2, 312] */
.mainBody { 
    max-width: 900px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

/* Vibrant Gradient Text */
.gradient-text {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    background: var(--jellyflix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 { font-size: 4rem; margin-bottom: 10px; }
h2 { font-size: 2.2rem; margin-top: 40px; }

/* Collapsible Section Styling [cite: 56] */
details {
    background: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    border-left: 5px solid transparent;
}

details[open] {
    border-image: linear-gradient(to bottom, #381452, #E50914) 1;
}

summary {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
}

summary::-webkit-details-marker { display: none; }

/* Smooth Reveal Transitions [cite: 315, 319] */
details::details-content {
    transition: height 0.5s ease, content-visibility 0.5s allow-discrete;
    height: 0;
    overflow: clip;
}

details[open]::details-content {
    height: auto;
    padding: 0 25px 25px 25px;
}

/* Feature Grid Alignment */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
    align-items: start; 
}

/* Solid Red Sign In Button [cite: 50, 264] */
.btnPrimary {
    background: var(--jellyflix-red); /* Removed Gradient */
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btnPrimary:hover { 
    transform: scale(1.05); 
    filter: brightness(1.2);
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .headerTop { padding: 0 20px; }
    .info-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
}
