/* ----------------------------------------------------------
   MAIN FIXED HEADER
---------------------------------------------------------- */
#w7t-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.w7t-logo a img {
    max-height: 100px;
    width: auto;
    max-width: 50%;
}

/* ----------------------------------------------------------
   HAMBURGER BUTTONS
---------------------------------------------------------- */
.w7t-menu-toggle,
.w7t-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.w7t-menu-toggle span,
.w7t-menu-close span {
    display: block;
    width: 30px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Active X animation */
.w7t-menu-toggle.active span:nth-child(1),
.w7t-menu-close.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.w7t-menu-toggle.active span:nth-child(2),
.w7t-menu-close.active span:nth-child(2) {
    opacity: 0;
}

.w7t-menu-toggle.active span:nth-child(3),
.w7t-menu-close.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ----------------------------------------------------------
   FULLSCREEN MENU
---------------------------------------------------------- */
.w7t-fullscreen-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    padding: 60px 20px;
}

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

/* Header inside fullscreen */
.w7t-fullscreen-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    padding: 20px;
}

/* Logo inside fullscreen menu */
.w7t-fullscreen-logo a img {
    width: 200px;
    margin-top: 20px;
}

/* Navigation inside fullscreen */
.w7t-fullscreen-menu nav {
    text-align: left;
}

.w7t-fullscreen-menu nav ul {
    list-style: none;
    padding: 0;
}

.w7t-fullscreen-menu nav ul li {
    margin-bottom: 20px;
}

.w7t-fullscreen-menu nav ul li a {
    color: #fff;
    font-weight: 300;
    font-size: 2em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.w7t-fullscreen-menu nav ul li a:hover {
    color: #0379C1;
}

/* ---------- Navigation Wrapper (centered) ---------- */
.w7t-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* perfect vertical centering */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    max-width: 1120px;
    padding: 0 20px;
}

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


/* ----------------------------------------------------------
   BUY-ME-A-COFFEE FLOATING ANI
---------------------------------------------------------- */
.bmac {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    animation: 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 float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* === CENTER FULLSCREEN MENU === */
.w7t-fullscreen-menu {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* Center menu links */
.w7t-fullscreen-menu nav {
    text-align: center !important;
}

/* === CLOSE BUTTON FIX === */
.w7t-menu-close span {
    background: #fff !important;  /* visible on dark overlay */
}

/* === REMOVE HOVER BACKGROUND ON BUTTONS === */
.w7t-menu-toggle:hover,
.w7t-menu-close:hover {
    background: transparent !important;
    box-shadow: none !important;
}

.w7t-menu-toggle:focus,
.w7t-menu-close:focus {
    outline: none !important;
}

/* Correct close button position */
.w7t-menu-close {
    position: absolute !important;
    top: 60px;
    right: 40px;
    background: none;
    border: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2000;
}

.w7t-menu-close span {
    background: #fff !important;
}



/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */
@media (max-width: 768px) {
    #w7t-header {
        padding: 15px;
    }

    .w7t-fullscreen-menu {
        padding: 40px 20px;
        font-size: 1.2rem;
    }

    .w7t-fullscreen-logo a img {
        width: 150px;
        margin-top: 40px;
    }
}

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