/* ==========================================
   1. ROOT VARIABLES
   ========================================== */
:root {
    --font: 'Oswald Bold',
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    --pink: #f2179b;
    --blue: #2824ea;
    --purple: #231c23;
}

/* ==========================================
   2. CORE CONTAINERS & LIST SETTINGS
   ========================================== */
.navbar-container {
    display: flex;
    flex-direction: row;
    align-items: center !important;
    justify-content: space-between;
    /* Pushes Logo to left, Hamburger/Links to right */
    background-color: #231c23;
    border-radius: 20px;
    margin: 2%;
    padding: 10px 20px;
    /* Uniform internal spacing */
    max-width: 100%;
    position: relative;
    /* Crucial for absolute placement of the mobile dropdown */
    box-sizing: border-box;
}

.navbar-container ul,
.navbar-container li {
    list-style: none !important;
    list-style-type: none !important;
}

/* ==========================================
   3. LOGO STYLING
   ========================================== */
.logo {
    height: 30px;
    width: auto;
    margin-top: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover {
    transform: scale(1.04) rotate(-1.5deg);
    filter: drop-shadow(4px 4px 8px rgba(251, 0, 255, 0.4));
}

/* ==========================================
   4. NAVIGATION MENU BUTTONS (TOGGLERS)
   ========================================== */
/* --- CUSTOM HAMBURGER MENU --- */
.hamburger-menu {
    display: none;
    /* Hidden by default on Desktop widths */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Optional: Animates bars into an 'X' if button gets the .open class */
.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- BOOTSTRAP DEFAULT TOGGLER OVERRIDE --- */
.navbar-toggler {
    display: none !important;
    /* Completely nukes the gray dash from the DOM layout */
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

/* ==========================================
   5. GLOBAL NAV ITEM & LINK STYLES
   ========================================== */
.nav-item {
    background-color: var(--pink);
    text-wrap: nowrap;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: var(--font);
    transition: transform 0.1s ease;
}

.nav-link {
    color: black;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--font);
    font-weight: 700;
    position: relative;
    z-index: 2;
    width: 100%;
    display: block;
    padding: 10px;
    font-size: 1.2rem;
}

/* ==========================================
   6. DESKTOP MEDIA VIEWPORTS (min-width: 993px)
   ========================================== */
@media (min-width: 993px) {
    .navbar-collapse {
        display: flex !important;
        /* Always display links container */
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        gap: 5px;
    }

    .nav-item {
        margin: 0 5px;
    }

    .nav-item.dropdown {
        position: relative;
        /* Anchor point for desktop sub-dropdown placement */
    }

    /* Absolute floating desktop dropdown submenu box */
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #231c23 !important;
        border: 2px solid var(--pink);
        border-radius: 10px;
        padding: 10px;
        min-width: 160px;
        margin-top: 12px;
        z-index: 9999;
    }

    /* Show desktop dropdown cleanly on menu hover */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
    }
}

/* ==========================================
   7. MOBILE & TABLET MEDIA VIEWPORTS (max-width: 992px)
   ========================================== */
@media (max-width: 992px) {
    .hamburger-menu {
            display: flex;
            /* Reveal custom hamburger button */
    }

    /* CRITICAL MISSING PIECE ADDED HERE: 
        Hides the menu container by default on mobile layouts 
        until toggled open via jQuery/JavaScript 
    */
    .navbar-collapse {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        margin-top: 10px;
    }

    /* Transform links wrapper into a clean absolute dropdown drawer */
    .navbar-collapse.show-menu {
        display: flex !important;
        flex-direction: column !important;

        /* Adds breathing room inside the pink-bordered drawer frame */
        padding: 30px 20px !important;
        gap: 16px !important;
        /* Forces uniform spacing between your whimsy cards */

        background: var(--purple);
        /* Matches your dark, moody background color */
        border-radius: 12px;
        box-sizing: border-box;
    }

    .navbar-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 14px;

        list-style: none;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-item {
        width: 100% !important;
        /* Items fill width on vertical stacks */
        margin: 0;
        box-sizing: border-box;
        justify-content: center;
        /* Centers text for mobile neatness */
    }

    /* Adjust desktop absolute layout for mobile sub-menus */
    .nav-item.dropdown .dropdown-menu {
        background: var(--purple) !important;
        border: 1px dashed var(--main) !important;
        margin-top: 8px !important;
        border-radius: 6px;
        text-align: center;
    }

    .dropdown-item {
        color: #b5b5b5 !important;
        padding: 10px 0 !important;
    }
}

/* ==========================================
   8. NESTED DROPDOWN LIST TARGETS
   ========================================== */
.dropdown-menu .dropdown-item {
    color: #ffffff !important;
    font-weight: 500;
    font-family: var(--font), sans-serif;
    padding: 8px 16px;
    display: block;
    background-color: transparent !important;
    text-decoration: none;
    transition: background-color;
}