/* Score.co.id - Football News - Compact Mobile Header */
/* ============================================= */

/* Mobile Menu Overhaul */
@media (max-width: 767px) {
    .site-header {
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(12px) !important;
        border-bottom: 2px solid rgba(0, 166, 118, 0.6);
        height: auto;
        min-height: 60px;
    }
    
    .header-inner {
        padding: 0.5rem 0 !important;
        min-height: 60px;
    }
    
    .logo img {
        height: 45px !important;
        max-height: 45px;
    }

    .hamburger {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 0.5rem;
        background: rgba(0, 166, 118, 0.15);
        border: 1px solid rgba(0, 166, 118, 0.3);
        border-radius: 8px;
        margin: 0;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
        background: white;
        margin: 0 auto;
    }
    
    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(15px);
        max-height: 75vh; 
        overflow-y: auto;
        overflow-x: hidden;
        border-bottom: 3px solid #00A676;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 999;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu.is-open {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0.5rem 0;
        margin: 0;
    }
    
    .mobile-menu-list > li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .mobile-menu-list > li:last-child {
        border-bottom: none;
    }

    .mobile-menu-list > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.9rem 1.2rem;
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-list > li > a:hover {
        background: rgba(0, 166, 118, 0.15);
        padding-left: 1.5rem;
    }
    
    .mobile-menu-list .menu-item-has-children > a::after {
        content: '▼';
        font-size: 0.7rem;
        margin-left: 0.5rem;
        opacity: 0.6;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-list .menu-item-has-children > a.submenu-open::after {
        transform: rotate(180deg);
    }
    
    .mobile-menu .sub-menu {
        background: rgba(20, 20, 20, 0.85);
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-left: 2px solid rgba(0, 166, 118, 0.3);
    }
    
    .mobile-menu .sub-menu.submenu-open {
        max-height: 500px; 
    }
    
    .mobile-menu .sub-menu li {
        margin: 0;
    }
    
    .mobile-menu .sub-menu a {
        display: block;
        padding: 0.8rem 1.2rem 0.8rem 2rem;
        color: #ccc;
        font-size: 0.9rem;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .mobile-menu .sub-menu a:hover {
        background: rgba(0, 166, 118, 0.2);
        color: white;
        padding-left: 2.2rem;
    }
    
    .mobile-menu:not(.is-open) {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-menu {
        max-width: 400px;
        right: 0;
        left: auto;
        border-radius: 0 0 0 12px;
    }
}

body.menu-open {
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu.is-open .mobile-menu-list > li {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.mobile-menu.is-open .mobile-menu-list > li:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu-list > li:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu-list > li:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu-list > li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu-list > li:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu-list > li:nth-child(6) { animation-delay: 0.3s; }

.mobile-menu-close {
    display: none;
}

@media (max-width: 767px) {
    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 0.8rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1001;
        font-size: 1.2rem;
        line-height: 1;
    }
}