/* ============================================ */
/* MOBILE FIXES - Hide Desktop Header on Mobile */
/* ============================================ */

/* Hide desktop header on mobile screens */
@media (max-width: 768px) {
    /* CRITICAL: Hide the desktop header completely on mobile */
    .top-header {
        display: none !important;
    }
    
    /* Ensure mobile header shows */
    .mobile-header {
        display: flex !important;
    }
    
    /* Adjust main container since we're hiding top header */
    .main-container {
        margin-left: 0;
        padding-top: 76px; /* Height of mobile header */
    }
    
    /* Make hamburger button more app-like */
    .hamburger-btn {
        width: 48px;
        height: 48px;
        background: transparent;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        border-radius: 50%;
    }
    
    .hamburger-btn:active {
        background: rgba(99, 102, 241, 0.1);
        transform: scale(0.95);
    }
    
    .hamburger-btn svg {
        width: 28px;
        height: 28px;
        color: var(--text-primary);
    }
    
    /* Mobile header app-like styling */
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
        z-index: 90;
        align-items: center;
        gap: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .mobile-logo-area {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }
    
    .mobile-logo-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 800;
        font-size: 18px;
        font-family: 'Poppins', sans-serif;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    
    .mobile-logo-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .mobile-logo-text h1 {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1;
        margin: 0;
        font-family: 'Poppins', sans-serif;
    }
    
    .mobile-logo-text span {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        line-height: 1;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 95;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    /* Sidebar mobile behavior */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* Content area adjustments */
    .content-area {
        padding: 20px 16px;
    }
    
    /* Hero section mobile */
    .hero-search-section {
        padding: 24px 0;
    }
    
    .hero-title {
        font-size: 26px;
        line-height: 1.3;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
        text-align: center;
    }
    
    /* Product buttons full width on mobile */
    .product-selection-area {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .product-dropdown-wrapper {
        width: 100%;
    }
    
    .product-btn {
        width: 100%;
        justify-content: space-between;
        padding: 14px 18px;
        font-size: 15px;
    }
    
    /* Search box mobile */
    .search-box {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .learning-mode-btn {
        width: 100%;
        min-width: auto;
        padding: 12px 16px;
    }
    
    .search-input {
        width: 100%;
        padding: 14px 16px 14px 48px;
        font-size: 15px;
    }
    
    /* Usage indicator mobile */
    .usage-indicator {
        top: 76px;
        right: 12px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Quick actions mobile */
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Better touch targets */
    .service-card,
    .quick-card {
        padding: 20px;
    }
    
    /* Product dropdown mobile */
    .product-dropdown {
        width: 100%;
        left: 0;
        right: 0;
        min-width: auto;
    }
    
    /* Learning mode menu mobile */
    .learning-mode-menu {
        width: 100%;
        min-width: auto;
        left: 0;
        right: 0;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    .mobile-header {
        padding: 10px 12px;
    }
    
    .mobile-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .mobile-logo-text h1 {
        font-size: 18px;
    }
    
    .mobile-logo-text span {
        font-size: 10px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .content-area {
        padding: 16px 12px;
    }
}

/* Dark theme mobile adjustments */
body[data-theme="dark"] .mobile-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

body[data-theme="dark"] .mobile-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Warm theme mobile adjustments */
body[data-theme="warm"] .mobile-header {
    background: #fffbeb;
    border-bottom-color: #fde68a;
}