/* Modern Header - Global Styles */
:root {
    --primary-dark: #0b456d;
    --primary-light: #3e5fce;
    --primary-gradient: linear-gradient(135deg, #0b456d 0%, #3e5fce 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.landing-header {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.1rem 1rem;
}

.custom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 40px;
}

.navbar-brand {
    flex-shrink: 0;
    line-height: 0;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: transform 0.2s;
    height: 30px;
    width: auto;
}

.navbar-brand img:hover {
    transform: scale(1.02);
}

/* Navigation Menu */
.landing-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.landing-menu .nav-item {
    list-style: none;
}

.landing-menu .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
    transition: all 0.2s;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    white-space: nowrap;
}

.landing-menu .nav-link i {
    font-size: 0.7rem;
}

.landing-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(0px);
    padding: 0.2rem 0.6rem;
}

.landing-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 600;
}

#google_play {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: #1a1a2e;
    padding: 0.1rem 0.5rem;
    border-radius: 1.5rem;
    margin-left: 0.2rem;
}

#google_play img {
    transition: transform 0.2s;
    height: 22px;
    width: auto;
}

#google_play img:hover {
    transform: translateY(-1px);
}

.toggle-menu {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    line-height: 1;
}

.menu-back {
    display: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .landing-menu .nav-link {
        padding: 0.18rem 0.5rem;
        font-size: 0.7rem;
    }
    .landing-menu .nav-link i {
        font-size: 0.65rem;
    }
    #google_play img {
        height: 20px;
    }
    .navbar-brand img {
        height: 26px;
    }
    #google_play {
        padding: 0.1rem 0.4rem;
    }
}

@media (max-width: 992px) {
    .toggle-menu {
        display: block;
    }
    
    .landing-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        background: var(--primary-gradient);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        transition: left 0.3s ease;
        z-index: 1002;
        gap: 0;
        flex-wrap: nowrap;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .landing-menu.active {
        left: 0;
    }
    
    /* Menu Header/Back Button */
    .menu-back {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 1.2rem;
        color: white;
        font-size: 1rem;
        cursor: pointer;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 0;
        font-weight: 500;
        background: rgba(0, 0, 0, 0.1);
    }
    
    .menu-back i {
        font-size: 1.2rem;
    }
    
    .menu-back:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Menu Items */
    .landing-menu .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .landing-menu .nav-link {
        width: 100%;
        color: white;
        white-space: normal;
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        border-radius: 0;
        gap: 0.8rem;
    }
    
    .landing-menu .nav-link i {
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
    }
    
    .landing-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        padding: 0.9rem 1.2rem;
        transform: none;
    }
    
    .landing-menu .nav-link.active {
        background: rgba(255, 255, 255, 0.25);
        border-left: 3px solid white;
    }
    
    /* Google Play in Mobile Menu */
    #google_play {
        margin: 0;
        margin-top: auto;
        margin-bottom: 1rem;
        width: calc(100% - 2rem);
        justify-content: center;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0.5rem;
        align-self: center;
    }
    
    #google_play img {
        height: 28px;
    }
    
    .custom-container {
        padding: 0 1rem;
    }
    
    .landing-header {
        padding: 0.1rem 0.8rem;
    }
    
    .navbar {
        min-height: 38px;
    }
    
    /* Overlay when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 90px;
        height: auto;
    }
    
    .landing-menu .nav-link {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }
    
    .navbar {
        min-height: 36px;
    }
}