/* Hamburger Menu System - Dropdown Style */

/* Hide the main header */
.game-header {
    display: none !important;
}

/* Hamburger Button - Fixed position in top-right */
.hamburger-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10001; /* Higher than landing page (10000) */
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(30, 20, 40, 0.95), rgba(20, 15, 30, 0.95));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    cursor: url('../images/cursor.png') 16 16, pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hamburger-btn:hover {
    border-color: rgba(255, 215, 0, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

/* Hamburger icon lines */
.hamburger-line {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.9), rgba(255, 180, 0, 0.9));
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animated hamburger when menu is open */
.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Dropdown Menu Panel */
.hamburger-menu {
    position: fixed;
    top: 75px; /* Just below the hamburger button */
    right: 15px;
    width: 320px;
    max-height: 0;
    background: linear-gradient(180deg, rgba(30, 20, 40, 0.98), rgba(20, 15, 30, 0.98));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.2);
    z-index: 10010; /* Above vials (10005) */
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    backdrop-filter: blur(10px);
}

.hamburger-menu.open {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
}

/* Menu Header */
.menu-header {
    text-align: center;
    padding: 20px 15px 15px 15px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.menu-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    margin: 0;
}

/* Menu Content - Scrollable */
.menu-content {
    max-height: 480px;
    overflow-y: auto;
    padding: 15px;
}

/* Menu Section */
.menu-section {
    margin-bottom: 20px;
}

.menu-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1em;
    color: rgba(255, 215, 0, 0.9);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menu Items */
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(50, 35, 65, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: url('../images/cursor.png') 16 16, pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(50, 40, 60, 0.8);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateX(-3px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

.menu-item-icon {
    font-size: 1.3em;
    width: 25px;
    text-align: center;
}

.menu-item-text {
    flex: 1;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
}

/* Player Stats in Menu */
.menu-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    background: rgba(40, 25, 60, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 10px;
    margin-bottom: 15px;
}

.menu-stat {
    text-align: center;
}

.menu-stat-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffd700;
    display: block;
}

.menu-stat-label {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Audio Controls in Menu */
.menu-audio-section {
    padding: 12px;
    background: rgba(40, 25, 60, 0.8);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 10px;
}

.menu-audio-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.menu-audio-control:last-child {
    border-bottom: none;
}

.menu-audio-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger-menu {
        width: calc(100vw - 30px);
        max-width: 320px;
    }

    .menu-title {
        font-size: 1.3em;
    }

    .menu-stats {
        grid-template-columns: 1fr;
    }
}

/* Custom scrollbar for menu content */
.menu-content::-webkit-scrollbar {
    width: 6px;
}

.menu-content::-webkit-scrollbar-track {
    background: rgba(20, 10, 30, 0.5);
}

.menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Remove overlay - not needed for dropdown */
.hamburger-menu-overlay {
    display: none !important;
}
