@import url("style-main.css");

/* Top fixed menu bar */
.menu-bar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: auto;
    height: 80px;
    background-color: var(--bg-dark);
    z-index: 10;
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    padding: 0 24px; 
    margin: 0;
}

.menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0 20px;
    gap: 30px;
}
.menu-list li{
    font-size: 1.4rem;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease-in-out;
}


.menu-logo {
    height: 80px;
    width: auto;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}
.menu-logo:hover {
    transform: scale(1.02);
}


/* Hamburger menu for mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    transition: transform 0.3s ease;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Footer */
.footer{
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 10px;
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.9rem;
    bottom: 0;
}
.footer-logo {
    height: 28px;
    width: auto;
    margin: 0 8px;
    transition: all 0.3s ease-in-out;
}

.footer-logo:hover {
    transform: scale(1.1);
}
.store-badge {
    height: 40px;
    width: auto;
    margin: 10px;
    transition: transform 0.3s ease;
}
.store-badge:hover {
    transform: scale(1.05);
}
.footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    text-align: center;
}
.footer ul li {
    display: inline;
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.3s;
}
.footer-link{
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    font-size: 0.9rem;
    font-family: "Roboto", sans-serif;
}
.footer-link:hover {
    font-size: 0.92rem;
}

.footer p {
    font-size: 0.8rem;
    font-family: "Roboto", sans-serif;
}
.footer hr {
    border: none;
    border-top: 1px solid var(--text-muted);
    margin: 30px 100px;
}

/* Responsive menu */
@media (max-width: 768px) {
    /* slide open/close via max-height; opacity switches instantly so it isn't visible when closed */
    .menu-list {
        max-height: 0;
        overflow: hidden;
        /* intentionally not using opacity or display — we'll hide via max-height/overflow */
        pointer-events: none; /* prevent interaction when closed */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-med);
        padding: 0 20px;
        gap: 0;
        border-top: none; /* hide border while collapsed to avoid visible 1px line */
        height: calc(100vh - 80px); /* full viewport height minus menu bar */
        padding-bottom: 0; /* remove bottom padding while collapsed */
        box-sizing: border-box;
        transition: max-height 1s cubic-bezier(.2,.9,.2,1);
    }

    .menu-list.active {
        max-height: calc(100vh - 80px);
        pointer-events: auto;
        border-top: 1px solid var(--border); /* show border only when open */
        padding-bottom: 20px; /* restore bottom padding when open */
    }

    .menu-list li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .menu-list li:last-child {
        margin-top: auto;
        border-bottom: none; /* Remove border from last item */
    }

    .menu-list li a {
        padding: 15px 0;
        display: block;
        width: 100%;
        font-size: 1.5rem;
    }


    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
}

