/* --- Upgraded Click-Open Menu Design --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    font-family: 'Public Pixel', sans-serif;
    background-color: #cf0404;
    color: white;
    border-radius: 8px;
    padding: 14px 22px;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.dropbtn:hover {
    background-color: #5c0606;
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(207, 4, 4, 0.6);
}

.chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dropdown.active .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background-color: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 8px;
    min-width: 240px;
    padding: 8px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.7);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1100;
}

.dropdown.active .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    font-family: 'Merchant Copy', sans-serif;
    color: #e0e0e0;
    padding: 10px 16px;
    font-size: 32px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.menu-icon {
    width: 22px;
    height: 22px;
    color: #cf0404;
    transition: color 0.2s;
}

.dropdown-content a:hover {
    background-color: #cf0404;
    color: #ffffff;
    padding-left: 22px;
}

.dropdown-content a:hover .menu-icon {
    color: #ffffff;
}

/* Styling for the menu separator line */
.menu-divider {
    height: 3px;           /* Thickness of the line */
    background: #747474;      /* Dark grey color to match the retro aesthetic */
    margin: 5px 15px;      /* Spacing so it doesn't touch the edges */
    opacity: 0.5;          /* Makes it look subtle and clean */
}

/* ==========================================================================
   MOBILE & COMPACT VIEWPORT OPTIMIZATIONS (Under 700px Wide OR Under 608px Tall)
   ========================================================================== */
/* Eye-catching highlight color specifically for the Download menu item */
@media (max-width: 700px), (max-height: 608px) {

.dropdown-content a.download-menu-item {
    color: #ff4c4c;
    border-top: 1px solid #333;
    margin-top: 4px;
    padding-top: 14px;
}

.dropdown-content a.download-menu-item .highlight-icon {
    color: #ff4c4c;
}

.dropdown-content a.download-menu-item:hover {
    background-color: #cf0404;
    color: #ffffff;
}

.dropdown-content a.download-menu-item:hover .highlight-icon {
    color: #ffffff;
}

    /* --- High-Visibility Mobile Dropdown --- */
    .dropbtn {
        padding: 8px 14px;
        font-size: 11px;
        gap: 6px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .dropdown.active .dropbtn {
        background-color: #5c0606;
        box-shadow: 0 0 10px rgba(207, 4, 4, 0.8);
        border-color: #ff4c4c;
    }

    .chevron-icon {
        width: 10px;
        height: 10px;
    }

    .dropdown-content {
        min-width: 200px;
        max-height: 60vh;
        background-color: rgba(15, 15, 15, 0.98) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid #cf0404 !important;
        box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.9);
        top: calc(100% + 8px);
        padding: 6px;
    }

    .dropdown-content a {
        font-size: 24px;
        padding: 10px 12px;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .menu-icon {
        width: 18px;
        height: 18px;
    }
}