/**
 * Klubovna Header and Navigation Styles
 */

/* Header & Menu */
.site-header {
    padding: 40px 0;
    text-align: center;
    z-index: 100;
}

.site-branding {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    max-width: 650px;
    width: 90%;
    height: auto;
}

.header-navigation {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu-btn {
    display: inline-block;
    padding: 10px 30px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    text-decoration: none;
    color: var(--color-dark-grey-klu);
    font-size: 21px;
    transition: transform 0.2s ease;
    text-align: center;
    position: relative;
}

.menu-btn::after {
    content: '';
    position: absolute;
    width: 49px;
    height: 62px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.menu-btn:hover::after,
.menu-btn.current-menu-item::after,
.current_page_item > .menu-btn::after,
.current-menu-item > .menu-btn::after {
    opacity: 1;
}

.menu-btn-yellow::after {
    background-image: url('../images/menu-star-orange.png');
    bottom: -27px;
    left: -24px;
}

.menu-btn-red::after {
    background-image: url('../images/menu-star-yellow.png');
    top: -31px;
    left: -24px;
}

.menu-btn-white::after {
    background-image: url('../images/menu-star-yellow.png');
    top: -31px;
    right: -24px;
}

.menu-btn:hover {
    transform: scale(1.05);
}

.menu-btn-yellow {
    background-image: url('../images/menu-button-yellow.png');
}

.menu-btn-red {
    background-image: url('../images/menu-button-red.png');
}

.menu-btn-white {
    background-image: url('../images/menu-button-white.png');
}

.flame-menu-container {
    text-align: center;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.flame-menu {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    /* Placeholder for animated gif */
    background: url('../images/menu-mobile-fire.png') no-repeat center;
    background-size: contain;
    border-radius: 50%;
}

.flame-menu-label {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    letter-spacing: 2px;
}

.main-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-black);
    z-index: 999;
    padding-top: 100px;
}

.flame-menu-container:hover + .main-navigation,
.main-navigation:hover {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-content li {
    margin: 20px 0;
}

.nav-content a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 2.5rem;
    text-transform: uppercase;
    transition: font-size 0.3s ease;
}

.nav-content li.current-menu-item a {
    font-size: 3.125rem; /* ~25% increase */
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.header-top-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 20px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0;
    font-family: var(--font-main);
    text-transform: lowercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px; /* Consistent width for balancing */
}

.mobile-menu-toggle-spacer {
    width: 60px; /* Matches toggle width */
}

.flame-icon {
    width: 50px;
    height: auto;
}

.flame-label {
    font-size: 20px;
    margin-top: -3px;
    color: var(--color-orange-klu);
    margin-bottom: 19px;
}

/* Mobile Navigation Overlay */
.mobile-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
    padding: 30px 0;
    overflow-y: auto;
}

body.mobile-menu-open .mobile-navigation {
    padding-bottom: 250px; /* Space for the fixed footer */
}

.mobile-menu-close {
    position: absolute;
    top: 34px;
    right: 10vw;
    background: none;
    border: none;
    color: var(--color-orange-klu) !important;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-logo {
    margin-bottom: 40px;
    text-align: center;
}

.mobile-menu-logo img {
    max-width: 55vw;
    height: auto;
}

.mobile-navigation.is-open {
    transform: translateY(0);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    width: 100%;
    position: relative;
}

.mobile-menu-ilu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    pointer-events: none;
    z-index: 10002;
}

.mobile-menu-ilu {
    position: absolute;
    height: auto;
}

.ilu-leaves {
    top: -50px;
    left: 0;
    width: 33vw;
}

.ilu-barel {
    bottom: 9vh;
    right: 60px;
    width: 20vw;
}

.ilu-sphere {
    position: absolute;
    top: -8px;
    left: 44%;
    transform: translate(-50%, -50%);
    width: min(26vw, 18vh);
    z-index: 10002;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

body.mobile-menu-open .ilu-sphere {
    opacity: 1;
}

.grain-area {
    position: absolute;
    background-image: url('../images/div-bg-grain.png');
    background-size: cover;
    opacity: 0.6;
    z-index: -1;
}

.grain-leaves {
    top: 104px;
    left: 0;
    width: 33vw;
    height: 103px;
    filter: brightness(0.5);
}

.grain-barel {
    top: 74%;
    right: 0;
    width: 38vw;
    height: 16vw;
    filter: brightness(0.5);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 60px;
    z-index: 2;
}

.mobile-menu-item-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mobile-menu-btn {
    display: inline-block;
    padding: 15px 30px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    text-decoration: none;
    color: var(--color-dark-grey-klu);
    font-size: clamp(20px, 6vw, 35px);
    text-align: center;
    z-index: 2;
    min-width: 75px;
    max-width: 90%;
    box-sizing: border-box;
}

.mobile-menu-btn-yellow {
    background-image: url('../images/button-bg-yellow.png');
}

.mobile-menu-btn-light-yellow {
    background-image: url('../images/button-bg-white.png');
}

.mobile-menu-btn-orange-gr {
    background-image: url('../images/button-bg-orange-grain.png');
    color: var(--color-light-yellow-klu);
}

@media (max-width: 768px) {
    .site-logo {
        max-width: 420px;
    }

    .site-header {
        padding: 20px 0;
    }

    .header-top-row {
        justify-content: center;
        padding: 0; 
    }
}
