/* ============================================
   ASSETS/CSS/RESPONSIVE.CSS
   ============================================ */

/* Extra Small Devices (Phones) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-stats .stat-item {
        text-align: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title::after {
        width: 40px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .category-item {
        padding: 1rem;
    }
    
    .category-item .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .product-card .product-body {
        padding: 0.75rem;
    }
    
    .product-card .product-title {
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    .product-card .product-price {
        font-size: 1rem;
    }
    
    .rfq-card {
        padding: 1rem;
    }
    
    .rfq-card .rfq-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .auth-card {
        padding: 1.25rem;
    }
    
    .auth-card .auth-title {
        font-size: 1.2rem;
    }
    
    .dashboard-content {
        padding: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-number {
        font-size: 1.25rem;
    }
    
    .plan-card {
        padding: 1rem;
    }
    
    .plan-card .plan-price {
        font-size: 1.5rem;
    }
    
    .toast-custom {
        min-width: auto;
        max-width: 90vw;
        padding: 0.75rem 1rem;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Small Devices (Tablets) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .product-card .product-title {
        font-size: 0.95rem;
    }
}

/* Medium Devices (Tablets/Laptops) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Extra Large Devices */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --off-white: #1A1A2E;
        --gray-100: #2D2D44;
        --gray-200: #3D3D56;
        --gray-300: #4D4D68;
        --gray-800: #E5E7EB;
        --white: #1A1A2E;
    }
    
    body {
        background: var(--off-white);
        color: var(--gray-200);
    }
    
    .product-card,
    .rfq-card,
    .stat-card,
    .plan-card,
    .auth-card {
        background: var(--white);
        border-color: var(--gray-200);
    }
    
    .navbar-custom {
        background: var(--white);
    }
    
    .search-wrapper .form-control {
        background: var(--off-white);
    }
    
    .dashboard-sidebar {
        background: var(--white);
        border-color: var(--gray-200);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar-custom,
    .category-bar,
    .dashboard-sidebar,
    .btn,
    .hero-section {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .dashboard-content {
        padding: 0 !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   FOCUS VISIBLE
   ============================================ */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   SKIP TO CONTENT
   ============================================ */
.skip-to-content {
    position: absolute;
    top: -999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}