﻿/* HEADER MENU - DESKTOP */
#header-desktop {
    width: 100%;
    max-width: 1080px; /* Set max-width for desktop header */
    margin: 0 auto; /* Center the header */
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    top: 0;
    left: 0; /* Align left for fixed positioning */
    right: 0; /* Align right for fixed positioning, works with margin:auto for centering */
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

#header-desktop-line1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

#header-desktop-line1-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
}

    #header-desktop-line1-logo a {
        display: flex;
        align-items: center;
        height: 100%;
    }

    #header-desktop-line1-logo img {
        height: 70px;
        width: auto;
        max-width: 250px;
        padding-bottom: 5px;
    }

#header-desktop-line1 .right-section-flex {
    display: flex;
    align-items: center; /* Ensures all items are vertically centered */
    gap: 0.75rem; /* Reduced gap to bring profile and streak closer */
    font-size: 1.5rem;
    position: relative;
    top: 0;
}



/* --- Desktop Search: Always Visible --- */
#header-desktop-line1-search {
    display: flex;
    align-items: center;
    width: 180px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    transition: none;
    cursor: auto;
    overflow: visible;
}

    #header-desktop-line1-search input[type="text"] {
        flex-grow: 1;
        border: none;
        outline: none;
        padding: 0;
        font-size: 1rem;
        background-color: transparent;
        min-width: 0;
        opacity: 1;
        pointer-events: auto;
        transition: none;
        margin-left: 0.5rem;
        padding: 0;
    }

    #header-desktop-line1-search button {
        background-color: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    #header-desktop-line1-search .fa-search {
        margin-left: 0;
        margin-right: 0;
        color: #333;
        font-size: 1.3rem;
        cursor: pointer;
    }

    #header-desktop-line1-search:focus-within {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    }

    #header-desktop-line1-search .fa-search:hover,
    #header-desktop-line1-account:hover {
        color: #0056b3;
    }

#header-desktop-line1-subscribe a {
    background-color: #007bff;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
    white-space: nowrap;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    height: 1.5rem;
}

    #header-desktop-line1-subscribe a:hover {
        background-color: #0056b3;
    }

/* Social icons container and wrapper for clipping */
#header-desktop-line1-social {
    display: flex;
    max-width: 350px; /* Adjust this value to comfortably fit all icons initially */
    transition: max-width 0.3s ease-out;
    padding-right: 1.5rem; /* Ensure consistent spacing before account icon */
    box-sizing: border-box;
}

.social-icons-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    gap: 1.5rem; /* Space between icons */
}

#header-desktop-line1-social a {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
    font-size: 1.5rem; /* Icon size */
    text-decoration: none; /* Crucial to remove underlines */
    line-height: 1; /* Ensure no extra line height for a clean look */
}

/* Specific icon colors */
.fa-youtube {
    color: #FF0000;
}

    .fa-youtube:hover {
        color: #cc0000;
    }

.fa-facebook {
    color: #1877F2;
}

    .fa-facebook:hover {
        color: #145cb3;
    }

.fa-x-twitter {
    color: #000000;
}

    .fa-x-twitter:hover {
        color: #333333;
    }

.fa-instagram {
    color: #E4405F;
}

    .fa-instagram:hover {
        color: #c23363;
    }

.fa-tiktok {
    color: #000000;
}

    .fa-tiktok:hover {
        color: #333333;
    }

.fa-rss {
    color: #FFA500;
}

    .fa-rss:hover {
        color: #cc8400;
    }

/* Profile Icon (Desktop) */
#header-desktop-line1-account {
    display: flex; /* Ensures the icon acts as a flex item */
    align-items: center; /* Centers the icon vertically within its small space */
    justify-content: center;
    cursor: pointer;
    color: #333333;
    font-size: 1.5rem;
    transition: color 0.2s ease-in-out;
}

    #header-desktop-line1-account:hover {
        color: #0056b3;
    }

/* Desktop Streak Icon and Number */
#header-desktop-streak {
    display: flex;
    align-items: center;
    gap: 0.15rem; /* Reduced gap to be very close */
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

    #header-desktop-streak .fa-fire {
        color: #ff8c00;
        font-size: 1em; /* Keep it relative to the surrounding text */
        line-height: 1; /* Ensure minimal vertical space */
    }

    #header-desktop-streak span { /* For the number 23 */
        line-height: 1; /* Ensure minimal vertical space for the number */
    }

    #header-desktop-streak:hover .fa-fire {
        color: #ffa500;
    }

    #header-desktop-streak:hover {
        color: #0056b3;
    }


#header-desktop-line2 {
    background-color: #007bff;
    color: #fff;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

    #header-desktop-line2 ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 2rem;
    }

        #header-desktop-line2 ul li {
            position: relative;
        }

            #header-desktop-line2 ul li a {
                display: block;
                padding: 0.5rem 1rem;
                border-radius: 0.5rem;
                color: inherit;
                text-decoration: none;
                font-weight: 500;
                font-size: 1rem;
                text-align: center;
                transition: background-color 0.2s ease-in-out, font-size 0.2s ease-in-out;
            }

                #header-desktop-line2 ul li a:hover {
                    background-color: #0056b3;
                }

        #header-desktop-line2 ul ul {
            position: absolute;
            left: 0;
            top: 105%;
            background-color: #dbeeff;
            color: #1a202c;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            border-radius: 0.5rem;
            z-index: 10;
            min-width: 10rem;
            display: block;
            opacity: 0;
            visibility: hidden;
            transform: translateY(0px);
            pointer-events: none;
            transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
            left: 0;
            right: auto;
            margin-left: 0;
            text-align: left;
        }

        /* Adjust positioning for rightmost dropdowns */
        #header-desktop-line2 ul li:nth-last-child(1) ul,
        #header-desktop-line2 ul li:nth-last-child(2) ul {
            left: auto;
            right: -20px;
        }

        #header-desktop-line2 ul li:nth-child(1) ul {
            min-width: 12rem;
        }

        #header-desktop-line2 ul li:nth-child(2) ul {
            min-width: 12rem;
        }

        #header-desktop-line2 ul li:nth-child(3) ul {
            min-width: 14rem;
        }

        #header-desktop-line2 ul li:nth-child(4) ul {
            min-width: 15rem;
        }

        #header-desktop-line2 ul li:nth-child(5) ul {
            min-width: 18rem;
        }

        #header-desktop-line2 ul li:nth-child(6) ul {
            min-width: 12rem;
        }

        #header-desktop-line2 ul li:nth-child(7) ul {
            min-width: 16rem;
        }

        #header-desktop-line2 ul li:hover > ul {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
        }

        #header-desktop-line2 ul ul li {
            width: 100%;
            display: block;
        }

            #header-desktop-line2 ul ul li a {
                padding: 0.75rem 1rem;
                display: block;
                white-space: nowrap;
                transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
                border-radius: 0.5rem;
                text-align: left;
                justify-content: flex-start;
            }

                #header-desktop-line2 ul ul li a:hover {
                    background-color: #c0e0ff;
                    color: #0056b3;
                }

.dropdown-separator {
    border-top: 1px solid #ccc;
    margin: 0.5rem 0;
    padding: 0;
    height: 0;
    overflow: hidden;
    list-style: none;
}

/* HEADER MENU - MOBILE */
#header-mobile {
    display: none;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
    z-index: 1000;
    color: #1a202c;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 3.5rem;
    padding: 0.5rem 1rem;
}

.mobile-menu-toggle {
    margin-right: 0;
    cursor: pointer;
    color: #007bff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.mobile-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

    .mobile-logo img {
        height: 2.5rem;
        width: auto;
        max-width: 120px;
        position: relative;
        top: -2px;
        display: block;
    }

.mobile-right-elements {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Re-evaluate gap for mobile if elements are too spread out */
    font-size: 1.3rem;
    transition: opacity 0.3s ease-in-out;
}

.mobile-header-top.search-active .mobile-right-elements {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Account Icon */
.mobile-account-icon {
    cursor: pointer;
    color: #333333;
    transition: color 0.2s ease-in-out;
    font-size: 1.3rem; /* Ensure consistent icon size */
}

    .mobile-account-icon:hover {
        color: #0056b3;
    }

/* Mobile Streak Icon and Number */
.mobile-streak {
    display: flex;
    align-items: center;
    gap: 0.15rem; /* Smaller gap for mobile */
    font-size: 0.75rem; /* Adjust font size for the number on mobile */
    color: #333;
    cursor: pointer;
}

    .mobile-streak .fa-fire {
        color: #ff8c00;
        font-size: 1.1em;
    }

    .mobile-streak:hover .fa-fire {
        color: #ffa500;
    }

    .mobile-streak:hover {
        color: #0056b3;
    }


.mobile-search-icon {
    cursor: pointer;
    color: #333333;
}

.mobile-right-elements .fa-rss {
    display: none;
}

#mobile-header-subscribe a {
    background-color: #007bff;
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 1.5rem;
    transition: background-color 0.2s ease-in-out;
}

    #mobile-header-subscribe a:hover {
        background-color: #0056b3;
    }

#mobile-header-social {
    display: none;
}

/* Mobile Trending Links */
#mobile-trending-links {
    background-color: #007bff;
    color: #fff;
    padding: 0.15rem 0;
    text-align: center;
    font-size: 0.82rem;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    border-bottom: 2px solid #007bff;
    line-height: normal;
}

    #mobile-trending-links.is-collapsed {
        height: 2px;
        padding-top: 0;
        padding-bottom: 0;
        font-size: 0;
    }

    #mobile-trending-links a {
        color: inherit;
        text-decoration: none;
        padding: 0 0.5rem;
        display: inline-block;
        white-space: nowrap;
    }


/* Mobile Search Box Overlay */
.mobile-search-input-container {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #fff;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
    display: none;
}

    .mobile-search-input-container.is-open {
        transform: translateX(0);
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-search-input-container input[type="text"] {
        flex-grow: 1;
        border: none;
        outline: none;
        padding: 0.5rem;
        font-size: 1rem;
        background-color: transparent;
    }

.mobile-search-close {
    font-size: 1.5rem;
    color: #333333;
    cursor: pointer;
    margin-left: 1rem;
}

/* Mobile Navigation Menu (Off-Canvas) */
#mobile-nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #2c3e50;
    color: #fff;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 9999;
}

    #mobile-nav-menu.is-open {
        transform: translateX(0);
    }

    #mobile-nav-menu .close-menu-icon {
        position: sticky;
        top: 0;
        float: right;
        font-size: 1.8rem;
        color: #fff;
        cursor: pointer;
        padding: 0.5rem 1rem;
        background-color: #2c3e50;
        z-index: 10;
    }

    #mobile-nav-menu .menu-title {
        float: left;
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: #fff;
        line-height: 1.8rem;
        position: sticky;
        top: 0;
        background-color: #2c3e50;
        z-index: 10;
    }

/* NEW: Wrapper for mobile menu content to control overall positioning */
.mobile-menu-content-wrapper {
    clear: both; /* Ensures this div starts below the floated title/close button */
    padding-top: 1rem; /* Adjust this value to create desired space below the sticky header */
    /* You might need to experiment with this value (e.g., 2rem, 3rem) depending on the exact height of your floating elements and desired spacing. */
    /* Using padding instead of margin to keep the background continuous */
}

#mobile-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0; /* Remove padding here so items stack tightly */
    /* Removed clear: both; and padding-top: from here */
}

    #mobile-nav-menu ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

        #mobile-nav-menu ul li:last-child {
            border-bottom: none;
        }

        #mobile-nav-menu ul li a {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 1.5rem;
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.2s ease-in-out;
        }

            #mobile-nav-menu ul li a:hover,
            #mobile-nav-menu ul li a:focus {
                background-color: #34495e;
            }

    #mobile-nav-menu ul ul {
        background-color: rgba(0, 0, 0, 0.2);
        padding-left: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        position: static;
        box-shadow: none;
        color: #fff;
    }

    #mobile-nav-menu ul li.has-submenu.expanded > ul {
        max-height: 500px;
    }

    #mobile-nav-menu ul ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

        #mobile-nav-menu ul ul li a {
            padding: 0.75rem 1rem;
            font-size: 0.95rem;
        }

li.mobile-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

    li.mobile-social-links a {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.4rem;
        font-size: 0.75rem;
        width: calc(50% - (1rem + 0.8rem));
        box-sizing: border-box;
        color: #fff;
    }

        li.mobile-social-links a span {
            font-size: 1.5rem;
            color: #fff;
            transition: color 0.2s ease-in-out;
        }

        li.mobile-social-links a .fa-youtube:hover {
            color: #FF0000;
        }

        li.mobile-social-links a .fa-facebook:hover {
            color: #1877F2;
        }

        li.mobile-social-links a .fa-x-twitter:hover {
            color: #000000;
        }

        li.mobile-social-links a .fa-instagram:hover {
            color: #E4405F;
        }

        li.mobile-social-links a .fa-tiktok:hover {
            color: #000000;
        }

        li.mobile-social-links a .fa-rss {
            color: #fff;
        }

            li.mobile-social-links a .fa-rss:hover {
                color: #FFA500;
            }


.dropdown-separator {
    border-top: 1px solid #ccc;
    margin: 0.5rem 0;
    padding: 0;
    height: 0;
    overflow: hidden;
    list-style: none;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    #header-desktop-line2 ul li a {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }

    #header-desktop-line2 ul {
        gap: 1.5rem;
    }
}

/* Clipping social icons from right to left using max-width on parent */
@media (max-width: 1024px) { /* Start clipping RSS (6th icon from right) */
    #header-desktop-line1-social {
        max-width: 216px;
    }
}

@media (max-width: 992px) { /* Clip TikTok (5th icon from right) */
    #header-desktop-line1-social {
        max-width: 168px;
    }
}

@media (max-width: 950px) { /* Clip Instagram (4th icon from right) */
    #header-desktop-line1-social {
        max-width: 120px;
    }
}

@media (max-width: 900px) { /* Clip X (Twitter) (3rd icon from right) */
    #header-desktop-line1-social {
        max-width: 72px;
    }
}

@media (max-width: 850px) { /* Clip Facebook (2nd icon from right) */
    #header-desktop-line1-social {
        max-width: 24px; /* Approx width for 1 icon (YouTube) */
    }
}




.headermenu-nowcovering-item,
.headermenu-fungames-item {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e0e0e0;
}

    .headermenu-nowcovering-item:last-child,
    .headermenu-fungames-item:last-child {
        border-bottom: none;
    }

    .headermenu-nowcovering-item .text-wrapper,
    .headermenu-fungames-item .text-wrapper {
        margin-left: 7px; /* Space between icon and text */
        flex-grow: 1; /* Allow text to take available space */
    }

    .headermenu-nowcovering-item a,
    .headermenu-fungames-item a {
        color: #3b82f6; /* A nice blue for links */
        text-decoration: none;
        font-size: 16px;
        padding: 5px 0;
        font-weight: 500;
        transition: color 0.2s ease-in-out;
        display: block; /* Make the link fill the text-wrapper */
        padding: 3px 0; /* Add some padding for better clickability */
    }

/* Styles for the colored circles */
.nowcoveringicon,
.fungamesicon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0; /* Prevent the circle from shrinking */
}

/* Fun & Games icons can be customized with their own classes */
.fungamesicon {
    font-size: 16px;
    color: #3b82f6; /* Default color for icons */
}

/* Modal specific styles */
#headermenu-openModalBtn {
    background-color: #2563eb; /* blue-600 */
    color: #ffffff; /* text-white */
    font-weight: 700; /* font-bold */
    padding: 12px 24px; /* py-3 px-6 */
    border-radius: 8px; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    transition: all 0.3s ease-in-out; /* transition duration-300 ease-in-out */
    transform: scale(1); /* initial transform */
    outline: none; /* focus:outline-none */
    border: none;
    cursor: pointer;
}

    #headermenu-openModalBtn:hover {
        background-color: #1d4ed8; /* hover:bg-blue-700 */
        transform: scale(1.05); /* hover:scale-105 */
    }

    #headermenu-openModalBtn:focus {
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.5); /* focus:ring-4 focus:ring-blue-300 */
    }

#headermenu-modalOverlay,
#headermenu-fungamesOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* bg-black bg-opacity-50 */
    display: flex;
    align-items: center; /* items-center */
    justify-content: center; /* justify-center */
    padding: 16px; /* p-4 */
    z-index: 9999; /* z-50 */
    visibility: hidden; /* hidden */
    opacity: 0;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

    #headermenu-modalOverlay.visible,
    #headermenu-fungamesOverlay.visible {
        visibility: visible;
        opacity: 1;
    }

#headermenu-modalContent,
#headermenu-fungamesContent {
    background-color: #ffffff; /* bg-white */
    border-radius: 12px; /* rounded-xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-2xl */
    width: 100%; /* w-full */
    max-width: 384px; /* max-w-sm */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
    padding: 12px; /* p-6 */
    position: relative; /* relative */
    transform: scale(0.95); /* scale-95 */
    opacity: 0; /* opacity-0 */
    transition: all 0.3s ease-out; /* transition-all duration-300 ease-out */
    z-index: 9999;
}

#headermenu-modalOverlay.visible #headermenu-modalContent,
#headermenu-fungamesOverlay.visible #headermenu-fungamesContent {
    transform: scale(1); /* scale-100 */
    opacity: 1; /* opacity-100 */
}

#headermenu-closeModalBtn,
#headermenu-closeFunGamesBtn {
    position: absolute; /* absolute */
    top: 12px; /* top-3 */
    right: 12px; /* right-3 */
    color: #9ca3af; /* text-gray-400 */
    font-size: 32px; /* text-2xl (approx, for 'x') */
    font-weight: 700; /* font-bold */
    border: none;
    background: none;
    cursor: pointer;
    outline: none; /* focus:outline-none */
}

    #closeModalBtn:hover,
    #headermenu-closeFunGamesBtn:hover {
        color: #4b5563; /* hover:text-gray-600 */
    }

#headermenu-modalContent h2,
#headermenu-fungamesContent h2 {
    font-size: 22px; /* text-2xl */
    font-weight: 600; /* font-semibold */
    color: #1f2937; /* text-gray-800 */
    margin-bottom: 10px; /* mb-4 */
    margin-top: 6px;
    text-align: center; /* text-center */
}


#desktop-profile-dropdown-menu,
#mobile-profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0px); /* Position below the icon, with a small gap */
    right: 0; /* Align to the right of the profile icon */
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    overflow: hidden; /* Ensures border-radius applies to children */
    transform: translateY(-5px); /* Start slightly above and slide down */
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
    z-index: 1001; /* Above other header elements */
    padding: 0.5rem 0; /* Padding inside the dropdown */
    opacity: 0;
    display: none;
    visibility: hidden;
}

#desktop-profile-dropdown-menu {
}

    #desktop-profile-dropdown-menu.show-dropdown,
    #mobile-profile-dropdown-menu.show-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.profile-dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #007bff; /* Primary color for username */
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.profile-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap; /* Prevent wrapping */
}

    .profile-dropdown-item:hover {
        background-color: #f0f2f5;
        color: #007bff;
    }


/* Profile Icon Container & Dropdown (Desktop) */
.profile-icon-wrapper {
    position: relative; /* Essential for dropdown positioning */
    display: flex; /* To contain the icon and potentially align it */
    align-items: center;
    height: 100%; /* Ensure it takes full height of parent flex container */
}



#header-desktop-line1-account:hover #desktop-profile-dropdown-menu {
    visibility: visible;
    display: block;
    opacity: 1;
}




.profile-streak-popup.show {
    display: block;
    opacity: 1;
}


.profile-streak-popup {
    display: none;
    position: absolute;
    top: 40px; /* ~20 pixels below the top of header-desktop */
    right: 0; /* Flush to the right edge */

    background: #ff5722;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}


/* At 768px and below, switch to mobile header */
@media (max-width: 768px) {
    #header-desktop {
        display: none;
    }

    #header-mobile {
        display: block;
    }

    body {
        /* Padding top will be dynamically calculated by JS */
    }
}

header#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    margin: 0;
    width: 100%;
    padding-top: 4px; /* Fixed white space that stays with the sticky header */
}