/* Clean Menu Styles */

.app-header {
    pointer-events: auto;
    /* OLD STYLE - Solid background with border (uncomment to revert) */
    /* background: linear-gradient(180deg, rgba(13, 15, 18, 0.95), rgba(13, 15, 18, 0.7)); */
    /* backdrop-filter: blur(10px); */
    /* border-bottom: 1px solid rgba(255, 69, 0, 0.2); */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); */

    /* NEW STYLE - Transparent to show map underneath */
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;

    padding: 12px 16px;
}

.header-menu {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 6px;
    width: 100%;
}

/* OLD LOGO STYLE (no longer used) */
/* .header-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-right: 4px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
} */

/* Logo button - styled like other menu buttons */
.logo-btn {
    margin-right: 4px;
    padding: 8px;
    min-width: 48px !important;
    width: 48px !important;
    max-width: 48px !important;
    height: 48px;
    flex: 0 0 auto !important;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.4));
}

/* All menu buttons with equal size - matching ADD SHOW/ADD TOUR style */
.menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(42, 52, 57, 0.9), rgba(26, 31, 36, 0.9));
    border: 2px solid var(--steel);
    border-radius: 16px;
    color: var(--silver);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-btn:hover::before {
    opacity: 0;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.menu-btn:active {
    transform: scale(0.96);
}

.menu-btn.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 69, 0, 0.3));
    border-color: var(--flame-red);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Green background when filter is active (not "ALL BANDS") */
.menu-btn.filter-active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(56, 142, 60, 0.3));
    border-color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.menu-btn.filter-active:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(56, 142, 60, 0.4));
    border-color: #66bb6a;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.5), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.menu-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
}

.menu-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
}

.menu-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.3));
}

.menu-icon-img-new {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
}

/* Individual button backgrounds */
.menu-btn-pingig {
    background-image: url('assets/MENU BUTTONS/pingig.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu-btn-profile {
    background-image: url('assets/MENU BUTTONS/quests.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu-btn-ranks {
    background-image: url('assets/MENU BUTTONS/ranks.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu-btn-stats {
    background-image: url('assets/MENU BUTTONS/stats.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu-btn-vest {
    background-image: url('assets/MENU BUTTONS/vest.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu-btn-backline {
    background-image: url('assets/MENU BUTTONS/BACKLINE.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.menu-btn-tools {
    background-image: url('assets/MENU BUTTONS/tools 2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.menu-btn-switch {
    background-image: url('assets/MENU BUTTONS/switch.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Enhanced text visibility for all button labels */
.menu-btn .menu-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    position: relative;
    z-index: 2;
    text-shadow:
        0 0 10px rgba(0, 0, 0, 1),
        0 0 20px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    color: white;
}

/* Dropdown containers */
.dropdown {
    position: relative;
    display: flex;
    justify-content: center;
}

.dropdown .menu-btn {
    /* Inherits from .menu-btn base styles */
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    margin-left: -80px;
    background: linear-gradient(135deg, var(--gunmetal), var(--dark-gunmetal));
    border: 2px solid var(--steel);
    border-radius: 12px;
    padding: 8px;
    width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        margin-top: -10px;
    }
    to {
        opacity: 1;
        margin-top: 0;
    }
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-menu button {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--silver);
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu button:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 69, 0, 0.2));
    color: white;
    transform: translateX(4px);
}

/* Filter dropdown list styling */
.filter-list-container {
    width: 100%;
    min-width: 200px;
    max-width: 280px;
}

.filter-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--flame-red) rgba(255, 107, 53, 0.1);
}

/* Custom scrollbar for Webkit browsers */
.filter-list::-webkit-scrollbar {
    width: 8px;
}

.filter-list::-webkit-scrollbar-track {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 4px;
}

.filter-list::-webkit-scrollbar-thumb {
    background: var(--flame-red);
    border-radius: 4px;
}

.filter-list::-webkit-scrollbar-thumb:hover {
    background: var(--hot-orange);
}

.filter-item {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--silver);
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.filter-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 69, 0, 0.2));
    color: white;
    transform: translateX(4px);
}

.filter-item.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 69, 0, 0.3));
    color: white;
    border-left: 3px solid var(--flame-red);
}

.filter-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .app-header {
        padding: 8px 10px;
    }

    .header-menu {
        gap: 4px;
    }

    /* OLD LOGO STYLE */
    /* .header-logo {
        width: 30px;
        height: 30px;
        margin-right: 3px;
    } */

    .logo-btn {
        min-width: 42px !important;
        width: 42px !important;
        max-width: 42px !important;
        height: 42px;
        padding: 6px;
        margin-right: 3px;
    }

    .logo-img {
        width: 28px;
        height: 28px;
    }

    .menu-btn {
        padding: 6px;
        flex: 0 0 65px;
        width: 65px;
        height: 65px;
    }

    .menu-icon {
        font-size: 1.2rem;
        width: 20px;
        height: 20px;
    }

    .menu-icon svg {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }

    .menu-icon-img-new {
        width: 32px;
        height: 32px;
    }

    .menu-label {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
    }

    .dropdown-menu {
        min-width: 140px;
    }

    .filter-list-container {
        max-width: 240px;
    }

    .filter-list {
        max-height: 250px;
    }

    .filter-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 6px 8px;
    }

    .header-menu {
        gap: 3px;
    }

    /* OLD LOGO STYLE */
    /* .header-logo {
        width: 28px;
        height: 28px;
        margin-right: 2px;
    } */

    .logo-btn {
        min-width: 38px !important;
        width: 38px !important;
        max-width: 38px !important;
        height: 38px;
        padding: 5px;
        margin-right: 2px;
    }

    .logo-img {
        width: 26px;
        height: 26px;
    }

    .menu-btn {
        padding: 5px;
        gap: 2px;
        flex: 0 0 55px;
        width: 55px;
        height: 55px;
    }

    .menu-icon {
        font-size: 1.1rem;
        width: 18px;
        height: 18px;
    }

    .menu-icon-img-new {
        width: 28px;
        height: 28px;
    }

    .menu-icon svg {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }

    .menu-label {
        font-size: 0.55rem;
        letter-spacing: 0.2px;
    }
}
