/* assets/css/responsive.css */
/* Additional responsive fixes for Student Res Network */

/* ============================================
   EXTRA SMALL DEVICES (Phones < 576px)
   ============================================ */
@media (max-width: 575.98px) {
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .input-group-text {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
    
    /* Hero */
    .hero {
        padding: 2rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-illustration img {
        max-width: 50%;
    }
    
    /* Stats */
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Features */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand i {
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer .social-links {
        justify-content: center;
    }
}

/* ============================================
   SMALL DEVICES (Tablets 576px - 768px)
   ============================================ */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* ============================================
   MEDIUM DEVICES (Tablets 768px - 992px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-illustration img {
        max-width: 70%;
    }
}

/* ============================================
   LARGE DEVICES (Desktops 992px - 1200px)
   ============================================ */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero h1 {
        font-size: 3rem;
    }
}

/* ============================================
   EXTRA LARGE DEVICES (Large Desktops 1200px+)
   ============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .footer,
    .hero-wave,
    .btn,
    .social-links {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        background: white !important;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
}

/* ============================================
   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 for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode */
@media (forced-colors: active) {
    .btn-primary,
    .btn-outline-primary {
        border: 2px solid currentColor;
    }
}