/* VETOS Mobile Menu - Adapted from FreeWinTools */

/* Base Styles */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.98) 0%, 
        rgba(20, 20, 20, 0.98) 50%, 
        rgba(10, 10, 10, 0.98) 100%);
    display: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Breakpoint Logic */
@media (max-width: 1024px) {
    .mobile-menu-container {
        display: block;
    }
}

.mobile-menu-container.is-open {
    opacity: 1;
    visibility: visible;
}

/* Animated Background */
.mobile-menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Header */
.mobile-menu-header {
    position: relative;
    padding: 2rem 1.5rem 1rem;
    display: flex;
    justify-content: center; /* Changed from space-between to center */
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 2rem;
}

.mobile-menu-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mobile-menu-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1;
}

.mobile-menu-slogan {
    font-family: 'Great Vibes', cursive;
    font-size: 19px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-top: 5px;
}

.mobile-menu-close {
    position: absolute; /* Take out of flow to keep logo centered */
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

/* Navigation Items */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
    gap: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-item:hover, .mobile-menu-item:active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(5px);
}

.mobile-menu-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--accent);
}

.mobile-menu-item-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-menu-item-arrow {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.mobile-menu-item:hover .mobile-menu-item-arrow {
    opacity: 1;
    color: var(--accent);
}

/* Toggle Button (Burger) */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    width: auto; /* Override global button width */
}

/* Brand Container for Main Header */
.brand-container {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide Desktop Nav */
    header nav {
        display: none !important;
    }

    /* Center Header Logo on Mobile */
    .header-top {
        justify-content: center !important;
    }

/* Mobile Search Input Override */
.mobile-menu-search-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}

.mobile-menu-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

    .brand-container {
        align-items: center;
        text-align: center;
    }

    /* Mobile CTA Button */
    .mobile-cta {
        display: inline-block !important;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

.mobile-cta {
    display: none;
}
