/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: none;
    transform: translateX(100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
}

.mobile-menu-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    border-color: #1e40af;
    color: #1e40af;
}

/* Search Bar */
.mobile-menu-search {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-search-form {
    display: flex;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.mobile-search-form:focus-within {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.mobile-search-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.mobile-search-form button {
    padding: 12px 16px;
    background: #1e40af;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-search-form button:hover {
    background: #1e3a8a;
}

.mobile-search-history-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-search-history-link:hover {
    color: #1e40af;
    background: #f1f5f9;
}

.mobile-menu-body {
    padding: 16px 16px 100px;
}

.mobile-menu-section {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 10px;
    padding-left: 12px;
}

.mobile-menu-section:first-child {
    margin-top: 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #334155;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: #f1f5f9;
    color: var(--primary, #1e40af);
}

.mobile-menu-link svg {
    flex-shrink: 0;
}

/* Collapsible Section */
.mobile-menu-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin: 16px 0 8px;
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-section-toggle:hover {
    color: #334155;
}

.mobile-menu-section-toggle .toggle-icon {
    transition: transform 0.3s;
}

.mobile-menu-section-toggle.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.mobile-services-list {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease-out;
}

.mobile-services-list.collapsed {
    max-height: 0;
}

/* Footer Buttons */
.mobile-menu-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-footer {
    transform: translateX(0);
}

.mobile-menu-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-btn-outline {
    background: #fff;
    color: #1e40af;
    border: 2px solid #e5e7eb;
}

.mobile-menu-btn-outline:hover {
    border-color: #1e40af;
    background: #eff6ff;
}

.mobile-menu-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
}

.mobile-menu-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Theme Toggle Icons */
.theme-icon-moon,
.theme-icon-sun {
    flex-shrink: 0;
}

[data-theme="dark"] .theme-icon-moon {
    display: none !important;
}

[data-theme="dark"] .theme-icon-sun {
    display: block !important;
}

/* Dark mode for mobile menu */
[data-theme="dark"] .mobile-menu {
    background: #1e293b;
}

[data-theme="dark"] .mobile-menu-header {
    border-color: #334155;
}

[data-theme="dark"] .mobile-menu-logo {
    color: #f1f5f9;
}

[data-theme="dark"] .mobile-menu-close {
    background: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

[data-theme="dark"] .mobile-menu-link {
    color: #cbd5e1;
}

[data-theme="dark"] .mobile-menu-link:hover,
[data-theme="dark"] .mobile-menu-link.active {
    background: #334155;
}

[data-theme="dark"] .mobile-menu-search {
    border-color: #334155;
}

[data-theme="dark"] .mobile-search-form {
    border-color: #475569;
    background: #1e293b;
}

[data-theme="dark"] .mobile-search-form input {
    color: #f1f5f9;
}

[data-theme="dark"] .mobile-search-form input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .mobile-menu-footer {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .mobile-menu-btn-outline {
    background: #334155;
    border-color: #475569;
    color: #93c5fd;
}

[data-theme="dark"] .mobile-menu-section {
    color: #94a3b8;
}

[data-theme="dark"] .mobile-menu-section-toggle {
    color: #94a3b8;
}