/**
 * Professional Mobile Menu Styles
 * BigG's Laundromat - Clean & Modern Design
 */

/* ========================================
   MOBILE MENU TOGGLE BUTTON
   ======================================== */

.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Force mobile menu toggle to be visible on mobile screens */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    margin: 4px auto;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   MOBILE MENU CONTENT
   ======================================== */

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 90vw;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(30, 58, 138, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

/* ========================================
   MOBILE MENU CLOSE BUTTON
   ======================================== */

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.mobile-menu-close:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.mobile-menu-close:active {
    transform: scale(0.95);
}

/* ========================================
   MOBILE MENU HEADER
   ======================================== */

.mobile-menu-header {
    padding: 80px 30px 30px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-brand-icon {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    overflow: hidden;
}

.mobile-brand-text {
    display: flex;
    flex-direction: column;
}

.mobile-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.mobile-brand-accent {
    color: #60a5fa;
}

.mobile-brand-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 2px;
}

/* ========================================
   MOBILE MENU NAVIGATION
   ======================================== */

.mobile-menu-nav {
    padding: 0 20px 20px 20px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-nav-link.active {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.mobile-nav-icon {
    width: 40px;
    height: 40px;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-link:hover .mobile-nav-icon {
    background: rgba(96, 165, 250, 0.3);
    transform: scale(1.1);
}

.mobile-nav-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.mobile-nav-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

.mobile-nav-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover .mobile-nav-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(3px);
}

/* ========================================
   MOBILE DROPDOWN MENU
   ======================================== */

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 55px;
    background: rgba(15, 23, 42, 0.98);
    /* Solid dark slate background */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-dropdown-menu.active {
    max-height: 400px;
    /* Increased to accommodate content */
    opacity: 1;
    margin-bottom: 15px;
    padding: 5px 0;
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #ffffff !important;
    /* Force white text */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-link:last-child {
    border-bottom: none;
}

.mobile-dropdown-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    padding-left: 25px;
}

/* ========================================
   MOBILE MENU FOOTER
   ======================================== */

.mobile-menu-footer {
    padding: 30px 30px 40px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-menu-contact {
    margin-bottom: 20px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.mobile-contact-item i {
    width: 16px;
    color: #60a5fa;
}

.mobile-menu-hours {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-style: italic;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Desktop Navigation Styles - Restored from Original */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Ensure desktop navigation is visible */
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 0;
        align-items: center;
        position: static !important;
    }

    /* Professional Navigation - Original Styles */
    .professional-nav {
        gap: 0.2rem;
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        overflow: visible;
        max-width: 100%;
        justify-content: flex-end;
        margin-left: auto;
    }

    .professional-link {
        display: flex !important;
        align-items: center;
        gap: 0.2rem;
        padding: 0.4rem 0.5rem;
        color: #E5E7EB;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.8rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
        max-width: none;
    }

    .professional-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 10px;
    }

    .professional-link:hover::before {
        opacity: 1;
    }

    .professional-link:hover {
        color: #3B82F6;
        transform: translateY(-1px);
        text-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    }

    .professional-link.active {
        color: #60A5FA;
        background: rgba(96, 165, 250, 0.1);
        border: 1px solid rgba(96, 165, 250, 0.3);
    }

    .nav-icon {
        font-size: 14px;
        color: #60A5FA;
        transition: all 0.3s ease;
    }

    .professional-link:hover .nav-icon {
        color: #93C5FD;
        transform: scale(1.1);
    }

    .nav-text {
        font-size: 0.8rem;
        font-weight: 500;
        display: inline !important;
        margin-left: 0.3rem;
    }

    /* Dropdown styles */
    .professional-dropdown {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }

    .professional-dropdown-item {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 0.75rem 1rem;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        background: transparent;
    }

    .professional-dropdown-item:hover {
        background: rgba(96, 165, 250, 0.2);
        color: white;
        padding-left: 1.25rem;
    }

    .dropdown-content {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .dropdown-title {
        font-size: 14px;
        font-weight: 600;
        color: white;
    }

    .dropdown-desc {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
    }

    .dropdown-arrow {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
        transition: all 0.3s ease;
    }

    .professional-link:hover .dropdown-arrow {
        color: #93c5fd;
        transform: translateY(-1px);
    }
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hide desktop navigation on mobile */
    .navbar-collapse {
        display: none !important;
    }

    /* Fix navbar brand positioning on mobile */
    .professional-navbar .container-fluid {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .professional-navbar .navbar-brand {
        order: 1 !important;
        flex-shrink: 0 !important;
        margin-right: auto !important;
        margin-left: 0 !important;
    }

    .mobile-menu-toggle {
        order: 2 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }

    /* Ensure brand logo is properly sized on mobile */
    .professional-navbar .navbar-brand .brand-logo {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .professional-navbar .navbar-brand .brand-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    .professional-navbar .navbar-brand .brand-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .professional-navbar .navbar-brand .brand-name {
        font-size: 1.2rem !important;
        line-height: 1 !important;
    }

    .professional-navbar .navbar-brand .brand-subtitle {
        font-size: 0.8rem !important;
        line-height: 1 !important;
    }
}

@media (max-width: 480px) {
    .mobile-menu-content {
        width: 100%;
        max-width: 100%;
    }

    .mobile-menu-header {
        padding: 70px 20px 20px 20px;
    }

    .mobile-menu-nav {
        padding: 0 15px 15px 15px;
    }

    .mobile-menu-footer {
        padding: 20px 20px 30px 20px;
    }

    .mobile-nav-link {
        padding: 14px 16px;
    }

    .mobile-brand-name {
        font-size: 20px;
    }

    .mobile-brand-icon {
        width: 80px;
        height: 80px;
        font-size: 20px;
    }

    /* Fix logo positioning on small mobile screens */
    .professional-navbar .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .professional-navbar .navbar-brand .brand-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 16px !important;
    }

    .professional-navbar .navbar-brand .brand-name {
        font-size: 1rem !important;
    }

    .professional-navbar .navbar-brand .brand-subtitle {
        font-size: 0.7rem !important;
    }

    .mobile-menu-toggle {
        width: 45px !important;
        height: 45px !important;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.5);
    border-radius: 2px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.7);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-menu-content {
    animation: slideInRight 0.3s ease-out;
}

.mobile-menu-overlay {
    animation: fadeIn 0.3s ease-out;
}