/* mobile.css - Mobile-specific styles */
@media (max-width: 768px) {
    /* Header adjustments for mobile */
    .chat-header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .header-info {
        flex: 1;
        min-width: 0;
    }

    .header-info h1 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .location {
        font-size: 0.75rem;
        display: block !important;
    }

    /* Hide desktop actions on mobile */
    .header-actions {
        display: none;
    }

    /* Mobile menu button */
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: white;
        width: 44px;
        height: 44px;
        border-radius: var(--radius);
        cursor: pointer;
        font-size: 1.2rem;
        transition: var(--transition);
    }

    .mobile-menu-button:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 2000;
        display: none;
        backdrop-filter: blur(4px);
    }

    .mobile-menu-overlay.open {
        display: block;
    }

    /* Mobile menu panel */
    .mobile-menu-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 2001;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-panel.open {
        right: 0;
    }

    .mobile-menu-header {
        padding: 1.5rem;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .mobile-menu-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }

    .mobile-menu-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-content {
        flex: 1;
        padding: 1rem 0;
        overflow-y: auto;
    }

    .mobile-menu-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.5rem;
        color: var(--text-color);
        text-decoration: none;
        border-bottom: 1px solid var(--border-color);
        transition: var(--transition);
        cursor: pointer;
    }

    .mobile-menu-item:hover {
        background: var(--secondary-color);
    }

    .mobile-menu-item i {
        width: 20px;
        text-align: center;
        color: var(--primary-color);
    }

    .mobile-menu-item.logout {
        color: #ef4444;
        border-bottom: none;
    }

    .mobile-menu-item.logout i {
        color: #ef4444;
    }

    /* Chat adjustments for mobile */
    .chat-messages {
        padding: 0.75rem 1rem;
    }

    .message {
        max-width: 90%;
    }

    .message-content {
        padding: 0.75rem;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-action {
        justify-content: flex-start;
    }

    /* Input adjustments for mobile */
    .chat-footer {
        padding: 0.75rem 1rem;
    }

    .input-container input {
        min-height: 50px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Conversation sidebar full screen on mobile */
    .conversation-sidebar {
        width: 100%;
        right: -100%;
    }

    .sidebar-overlay {
        z-index: 1001;
    }

    .conversation-sidebar {
        z-index: 1002;
    }
}

/* Desktop: Hide mobile menu button */
@media (min-width: 769px) {
    .mobile-menu-button {
        display: none;
    }

    .mobile-menu-overlay,
    .mobile-menu-panel {
        display: none !important;
    }
}

/* New Additions from AI */

/* Quick color fixes - Add this to mobile.css */
.suggestion-tag {
    background: #f1f5f9 !important;
    border: 2px solid #cbd5e1 !important;
    color: #1e293b !important;
}

.suggestion-tag:hover,
.suggestion-tag.active {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
}

.conversation-sidebar,
.conversation-item,
.conversation-content {
    background: white !important;
    color: #1e293b !important;
}

.conversation-title {
    color: #1e293b !important;
    font-weight: 600;
}

.conversation-meta {
    color: #64748b !important;
}

.quick-action {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.quick-action:hover {
    background: #10b981 !important;
    color: white !important;
}

/* Mobile menu colors */
.mobile-menu-panel {
    background: white !important;
}

.mobile-menu-item {
    color: #1e293b !important;
}

.mobile-menu-item:hover {
    background: #f1f5f9 !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .suggestion-tag {
        background: #334155 !important;
        color: #f1f5f9 !important;
        border-color: #475569 !important;
    }

    .conversation-sidebar,
    .conversation-item,
    .conversation-content {
        background: #1e293b !important;
        color: #f1f5f9 !important;
    }

    .conversation-title {
        color: #f1f5f9 !important;
    }

    .conversation-meta {
        color: #94a3b8 !important;
    }

    .mobile-menu-panel {
        background: #1e293b !important;
    }

    .mobile-menu-item {
        color: #f1f5f9 !important;
    }

    .mobile-menu-item:hover {
        background: #334155 !important;
    }
}

/* New Additions from AI */

/* URGENT CONTRAST FIXES - Add this to mobile.css or separate file */

/* ===== FIX 1: Location Page Header Contrast ===== */
.onboarding-header h1 {
    color: #1e293b !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.onboarding-header p {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
}

.onboarding-header i.fa-map-marker-alt {
    color: #10b981 !important;
    font-size: 2.5rem !important;
}

/* ===== FIX 2: Main Page Footer Contrast ===== */
.modern-footer {
    background: linear-gradient(135deg, #0f766e 0%, #065f46 100%) !important;
    color: white !important;
    padding: 2rem 1rem !important;
}

.modern-footer p {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

/* ===== FIX 3: Main Page CTA Section Contrast ===== */
.cta-section .auth-note {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    margin-top: 1rem !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    font-size: 1rem !important;
}

/* ===== FIX 4: Hero Section Text Contrast ===== */
.hero-section .subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

/* ===== FIX 5: Feature Cards Text Contrast ===== */
.feature-card h3 {
    color: white !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1) !important;
}

/* ===== FIX 6: Onboarding Benefits Section ===== */
.onboarding-benefits {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    border: 2px solid #10b981 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-top: 2rem !important;
}

.onboarding-benefits h3 {
    color: #065f46 !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.onboarding-benefits li {
    color: #1e293b !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
}

.onboarding-benefits i.fa-info-circle {
    color: #10b981 !important;
}

/* ===== FIX 7: Ensure these work in dark mode too ===== */
@media (prefers-color-scheme: dark) {
    .onboarding-header h1 {
        color: #f1f5f9 !important;
    }

    .onboarding-header p {
        color: #cbd5e1 !important;
    }

    .onboarding-benefits {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        border-color: #10b981 !important;
    }

    .onboarding-benefits h3 {
        color: #34d399 !important;
    }

    .onboarding-benefits li {
        color: #e2e8f0 !important;
    }
}

/* ===== FIX 8: High contrast for maximum readability ===== */
@media (prefers-contrast: more) {
    .onboarding-header h1 {
        color: #000 !important;
        font-weight: 900 !important;
    }

    .modern-footer {
        background: #000 !important;
        color: #fff !important;
    }

    .onboarding-benefits {
        border-width: 3px !important;
    }
}

/* SPECIFIC FIX: Location Page Header */
.onboarding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.onboarding-header h1 {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    margin-bottom: 0.5rem !important;
    text-shadow: none !important;
}

.onboarding-header p {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.onboarding-header i.fa-map-marker-alt {
    color: #10b981 !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

/* Force these styles with higher specificity */
.onboarding-modern .onboarding-container .onboarding-header h1 {
    color: #1e293b !important;
}

.onboarding-modern .onboarding-container .onboarding-header p {
    color: #475569 !important;
}

