/*
Mobile Menu Fix for Sevo Theme
This file contains the CSS fixes for the mobile menu issue
Copy these rules to the main theme's style.css file
*/

/* Fix for menu toggle button styling */
.menu-toggle {
    display: none;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    color: white;
}

.menu-toggle:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.menu-toggle-icon span {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle-text {
    font-size: 0.75rem;
    color: white;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Mobile menu responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-header .container {
        position: relative;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        padding: 0.5rem 15px;
        gap: 0.5rem;
    }
    
    .site-branding {
        flex: 1;
        margin-right: auto;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        margin-top: 1rem;
    }
    
    .menu-toggle {
        display: flex !important;
        position: relative;
        order: 2;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 0.75rem;
        cursor: pointer;
        z-index: 1000;
    }
    
    .menu-toggle:hover {
        background: #1d4ed8;
    }
    
    .menu-toggle-text {
        color: white;
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }
    
    .primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem 0;
        margin-top: 0.5rem;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: relative;
        z-index: 999;
    }
    
    .main-navigation.menu-open .primary-menu {
        display: flex !important;
    }
    
    .primary-menu li {
        margin: 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu a {
        display: block;
        padding: 0.875rem 1.5rem;
        color: #374151;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .primary-menu a:hover {
        background: #f8f9fa;
        color: #2563eb;
        transform: translateX(4px);
    }
    
    .primary-menu .current-menu-item > a {
        background: #eff6ff;
        color: #2563eb;
        font-weight: 600;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .site-info-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-navigation .footer-menu {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional mobile menu animations */
.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Improved mobile menu accessibility */
.primary-menu a:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    background: #eff6ff;
    color: #2563eb;
}