/* ==========================================================
   W7TWEAKS CORE — HEADER  (desktop + mobile-fixed)
   ========================================================== */

/* ----------------------------------------------------------
   FIXED HEADER BAR
---------------------------------------------------------- */
#w7t-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,.07);
    box-sizing: border-box;
}

.w7t-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1120px;
    max-width: 100%;
    margin: 0 auto;
}

.w7t-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.w7t-logo a img {
    max-height: 52px;
    width: auto;
    max-width: 180px;
    display: block;
}

/* ----------------------------------------------------------
   HAMBURGER TOGGLE
---------------------------------------------------------- */
.w7t-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    transition: background .2s;
    flex-shrink: 0;
}

.w7t-menu-toggle:hover  { background: rgba(0,0,0,.05); }
.w7t-menu-toggle:focus  { outline: 2px solid #0073e6; outline-offset: 2px; }

.w7t-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: transform .28s ease, opacity .2s ease;
}

/* ----------------------------------------------------------
   FULLSCREEN OVERLAY MENU
---------------------------------------------------------- */
.w7t-fullscreen-menu {
    display: none;                 /* shown via JS .active */
    position: fixed;
    inset: 0;                      /* top/right/bottom/left: 0 */
    background: rgba(10, 10, 18, 0.93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    z-index: 1001;
    overflow-y: auto;              /* ← KEY FIX: scrollable on mobile */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.w7t-fullscreen-menu.active {
    display: flex;
    flex-direction: column;
}

/* ------ inner layout ------ */
.w7t-fullscreen-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0 24px 40px;
    box-sizing: border-box;
}

/* Top bar: logo + close */
.w7t-fullscreen-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-shrink: 0;
}

.w7t-fullscreen-logo a img {
    max-height: 44px;
    width: auto;
    max-width: 150px;
    display: block;
}

/* Close button */
.w7t-menu-close {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
    padding: 0;
}

.w7t-menu-close:hover { background: rgba(255,255,255,.22); }
.w7t-menu-close:focus { outline: 2px solid #fff; outline-offset: 2px; }

/* ------ nav links ------ */
.w7t-menu-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.w7t-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.w7t-menu-nav ul li a {
    display: block;
    color: #fff;
    font-weight: 300;
    font-size: clamp(1.4rem, 4vw, 2.4rem); /* ← responsive font size */
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: color .2s, background .2s;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.w7t-menu-nav ul li a:hover {
    color: #60b0ff;
    background: rgba(255,255,255,.07);
}

/* ----------------------------------------------------------
   BUY-ME-A-COFFEE FLOATING ANIMATION (unchanged)
---------------------------------------------------------- */
.bmac {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    animation: w7t-float 5s ease-in-out infinite;
}

.bmac::before {
    content: "";
    width: 40px;
    height: 40px;
    background: url("https://www.w7tweaksapp.com/wp-content/uploads/2025/04/latte.png") no-repeat center/contain;
    margin-right: 8px;
}

@keyframes w7t-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

/* ----------------------------------------------------------
   MOBILE  (≤ 640 px)
---------------------------------------------------------- */
@media (max-width: 640px) {
    #w7t-header {
        padding: 10px 16px;
    }

    .w7t-logo a img {
        max-height: 40px;
        max-width: 140px;
    }

    /* Smaller menu links so ALL items fit even on 375 px */
    .w7t-menu-nav ul li a {
        font-size: clamp(1.1rem, 5.5vw, 1.6rem);
        padding: 8px 12px;
    }

    .w7t-fullscreen-topbar {
        padding: 14px 0;
    }
}

/* ----------------------------------------------------------
   BODY LOCK WHEN MENU OPEN
---------------------------------------------------------- */
body.w7t-menu-open {
    overflow: hidden;
}
