/* Mobile-First CSS for N-Audio Shop */

/* Enhanced Mobile Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }
    
    /* Touch-Friendly Buttons */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0.3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Improved Cards */
    .card {
        border-radius: 16px;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Better Product Display */
    .product-card {
        transform: none;
        transition: box-shadow 0.3s ease;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    
    .product-card .card-img-top {
        height: 200px;
        object-fit: cover;
        border-radius: 0;
    }
    
    /* Spacing Improvements */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .py-5 {
        padding: 2.5rem 0 !important;
    }
    
    /* Hero Section Enhancements */
    .hero-section {
        min-height: 75vh;
        display: flex;
        align-items: center;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section .display-3 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
        font-weight: 700;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Grid Improvements */
    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    
    .col, .col-6, .col-md-4, .col-md-6, .col-lg-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Form Enhancements */
    .form-control, .form-select {
        min-height: 48px;
        border-radius: 12px;
        border: 2px solid #e9ecef;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .form-control:focus, .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    }
    
    /* Stats Cards Mobile */
    .stats-highlight-card {
        text-align: center;
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 20px;
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(102, 126, 234, 0.1);
    }
    
    .stats-highlight-card .display-4 {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }
    
    /* Feature Cards Mobile */
    .feature-card {
        margin-bottom: 2rem;
        border-radius: 20px;
        overflow: hidden;
    }
    
    .feature-card .card-body {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    /* Alert Banner Mobile */
    .alert {
        border-radius: 0;
        margin-bottom: 0;
        padding: 1rem;
    }
    
    .alert .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Cart Badge */
    .badge-cart {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        min-width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section .display-3 {
        font-size: 1.9rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .product-card .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .product-card .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .stats-highlight-card {
        padding: 1.5rem 1rem;
    }
    
    .stats-highlight-card .display-4 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .dropdown-item {
        min-height: 48px;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover {
        transform: none;
    }
    
    .btn-animated:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-card .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation on Small Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
        padding: 1rem 0;
    }
    
    .hero-section .display-3 {
        font-size: 1.8rem !important;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .stats-highlight-card {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        color: #e2e8f0;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
