/* Responsive Design CSS */

/* Mobile-first approach with progressive enhancement */

/* Base styles (mobile) */
@media (max-width: 767px) {

    /* Mobile buttons */
    .modern-button {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }

    /* Mobile cards */
    .modern-card {
        border-radius: var(--radius-lg);
        margin: var(--spacing-xs);
    }

    /* Touch-friendly sizing */
    .modern-chat-item,
    .modern-button,
    .modern-input {
        min-height: 44px; /* iOS recommended touch target */
    }

    /* Mobile typography */
    .text-2xl { font-size: 1.25rem; }
    .text-xl { font-size: 1.125rem; }
    .text-lg { font-size: 1rem; }

    /* Mobile spacing */
    .p-lg { padding: var(--spacing-md); }
    .p-xl { padding: var(--spacing-lg); }
    .gap-lg { gap: var(--spacing-md); }
    .gap-xl { gap: var(--spacing-lg); }
}



/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .modern-card,
    .modern-button {
        border-width: 0.5px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (future-ready) - DISABLED to ensure dark elements are always visible */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-50: #1f2937;
        --neutral-100: #374151;
        --neutral-200: #4b5563;
        --neutral-300: #6b7280;
        --neutral-400: #9ca3af;
        --neutral-500: #d1d5db;
        --neutral-600: #e5e7eb;
        --neutral-700: #f3f4f6;
        --neutral-800: #f9fafb;
        --neutral-900: #ffffff;
    }

    .modern-card,
    .modern-chat-item,
    .modern-sidebar {
        background: var(--neutral-100);
        border-color: var(--neutral-200);
    }

    .glass-effect {
        background: rgba(31, 41, 55, 0.9) !important;
        border-color: var(--neutral-200);
    }
}
*/

/* Print styles */
@media print {
    .modern-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Utility classes for responsive design */
.mobile-only {
    display: block;
}

.tablet-up {
    display: none;
}

.desktop-up {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .tablet-up {
        display: block;
    }
}

@media (min-width: 1024px) {
    .desktop-up {
        display: block;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .modern-button:hover {
        transform: none;
    }

    .modern-button:active {
        transform: scale(0.95);
    }
}

/* Focus improvements for keyboard navigation */
.modern-button:focus,
.modern-input:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}
