:root {
    --bg-color: #0c0a1a;
    --primary-color: #e0e0e0;
    --accent-color: #00bfff; /* Deep Sky Blue - a vibrant Fortnite-like color */
    --glow-color: rgba(0, 191, 255, 0.7); /* Original blue glow */
    --purple-outline-color: #7f00ff; /* Medium purple for text outline */
    --purple-lightning-color: #c800ff; /* Vibrant neon purple for lightning glow */
    --purple-lightning-color-dim: rgba(200, 0, 255, 0.4); /* Dimmed version for animation start/end */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    overflow-x: hidden;
    background-image: url('fortnite_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.header nav {
    display: flex; /* Ensure nav items align horizontally */
    align-items: center;
}

.header nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1rem;
    font-weight: normal;
    transition: color 0.3s, text-shadow 0.3s;
    white-space: nowrap; /* Prevent text wrapping in nav items */
}

.header nav a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 1.5rem; /* Match margin of other nav items */
}

.dropbtn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 0; /* Remove default padding for anchor */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropbtn:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(12, 10, 26, 0.85); /* Slightly darker, more opaque than content-section */
    backdrop-filter: blur(8px);
    min-width: 250px; /* Increased width for "longer" bar */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 1;
    top: 100%; /* Position directly below the button, removing the gap */
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden; /* For border-radius */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content .season-item {
    color: var(--primary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    margin: 0; /* Override nav a margin */
}

.dropdown-content .season-item:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-shadow: none; /* Remove text shadow on hover for dropdown items */
}

.dropdown-content .season-item .download-icon {
    color: var(--primary-color); /* Default icon color */
    margin-left: 10px;
    font-size: 1rem;
    transition: color 0.2s;
}

.dropdown-content .season-item:hover .download-icon {
    color: var(--bg-color); /* Icon color when hovering over the season item */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.title {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 700;
    color: #ffffff; /* The actual text color */
    letter-spacing: 0.05em;
    text-shadow: 
        /* Purple Outline Effect */
        -2px -2px 0 var(--purple-outline-color),
         2px -2px 0 var(--purple-outline-color),
        -2px  2px 0 var(--purple-outline-color),
         2px  2px 0 var(--purple-outline-color),
        
        /* Blue Glow (Existing) */
        0 0 10px var(--glow-color),
        0 0 25px var(--glow-color),
        0 0 50px var(--glow-color),
        
        /* Purple Lightning Glow (Initial/Dim State, will be animated) */
        0 0 10px var(--purple-lightning-color-dim),
        0 0 20px var(--purple-lightning-color-dim),
        0 0 40px var(--purple-lightning-color-dim),
        
        /* Dark Drop Shadow (Existing) */
        4px 4px 10px rgba(0,0,0,0.7);
    transition: transform 0.1s ease-out; /* Keep mouse sway transition */
    animation: lightning-flicker 1.5s ease-in-out infinite alternate;
}

@keyframes lightning-flicker {
    0%, 100% { /* Dim state */
        text-shadow: 
            /* Purple Outline Effect */
            -2px -2px 0 var(--purple-outline-color),
             2px -2px 0 var(--purple-outline-color),
            -2px  2px 0 var(--purple-outline-color),
             2px  2px 0 var(--purple-outline-color),
            
            /* Blue Glow */
            0 0 10px var(--glow-color),
            0 0 25px var(--glow-color),
            0 0 50px var(--glow-color),
            
            /* Dimmed Purple Lightning Glow */
            0 0 10px var(--purple-lightning-color-dim),
            0 0 20px var(--purple-lightning-color-dim),
            0 0 40px var(--purple-lightning-color-dim),
            
            /* Dark Drop Shadow */
            4px 4px 10px rgba(0,0,0,0.7);
    }
    50% { /* Bright state */
        text-shadow: 
            /* Purple Outline Effect */
            -2px -2px 0 var(--purple-outline-color),
             2px -2px 0 var(--purple-outline-color),
            -2px  2px 0 var(--purple-outline-color),
             2px  2px 0 var(--purple-outline-color),
            
            /* Blue Glow */
            0 0 10px var(--glow-color),
            0 0 25px var(--glow-color),
            0 0 50px var(--glow-color),
            
            /* Bright Purple Lightning Glow */
            0 0 25px var(--purple-lightning-color), /* Increased spread/blur */
            0 0 50px var(--purple-lightning-color),
            0 0 100px var(--purple-lightning-color),
            
            /* Dark Drop Shadow */
            4px 4px 10px rgba(0,0,0,0.7);
    }
}

.title-a {
    display: none;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: normal;
    margin-top: 1rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

.content-section {
    max-width: 800px;
    margin: 10rem auto;
    padding: 2rem;
    background: rgba(12, 10, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Newsfeed Section Specific Styles */
.newsfeed-section {
    padding: 0; /* Remove padding to let the image span full width of the section box */
    overflow: hidden; /* Ensures the image respects the border-radius of the parent */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-image {
    width: 100%; /* Make image fill the width of its container */
    height: auto;
    border-top-left-radius: 15px; /* Match section border radius */
    border-top-right-radius: 15px;
    object-fit: cover; /* Ensure image covers the area without distortion */
    max-height: 400px; /* Limit height for aesthetic */
}

.news-content {
    padding: 1.5rem 2rem 2rem; /* Add consistent padding for text content */
    text-align: center;
    width: 100%; /* Ensure content takes full width for padding */
}

.news-headline {
    font-size: 2.5rem; /* Inherit from H2 */
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.news-description {
    font-size: 1.1rem; /* Inherit from P */
    line-height: 1.6;
    font-weight: normal;
}

.discord-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

.online-dot {
    width: 10px;
    height: 10px;
    background-color: #3ba55d; /* Discord online green */
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 165, 93, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 165, 93, 0);
    }
}

.discord-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.6rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px var(--glow-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.discord-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--glow-color);
}

.discord-user-container {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.discord-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

#discord-username {
    font-size: 1.2rem;
    font-weight: 700;
}

.discord-button.logout {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
}

.discord-button.logout:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
}