/**
 * Smartprep Solutions - Responsive CSS
 * Mobile-first responsive styles
 */

/* =====================================================
   TABLET (max-width: 992px)
   ===================================================== */
   @media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .card .card-img-top {
        height: 180px;
    }
    
    .feature-icon {
        width: 56px !important;
        height: 56px !important;
    }
    
    .feature-icon i {
        font-size: 1.5rem !important;
    }
}

/* =====================================================
   MOBILE LANDSCAPE / SMALL TABLET (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {
    /* Typography */
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand .brand-text {
        display: none;
    }
    
    .navbar .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar .nav-link.btn {
        margin-top: 0.5rem;
        border-bottom: none;
    }
    
    /* Cards */
    .card .card-img-top {
        height: 160px;
    }
    
    /* Sections */
    section {
        padding: 2rem 0 !important;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    .d-flex.flex-wrap.gap-3 {
        gap: 0.5rem !important;
    }
    
    /* Hero */
    .hero-section {
        padding: 2rem 0;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* Footer */
    footer .row > div {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    footer .social-links {
        justify-content: center;
    }
}

/* =====================================================
   MOBILE PORTRAIT (max-width: 576px)
   ===================================================== */
@media (max-width: 576px) {
    /* Typography */
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Cards */
    .card .card-img-top {
        height: 140px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Feature icons */
    .feature-icon {
        width: 48px !important;
        height: 48px !important;
    }
    
    .feature-icon i {
        font-size: 1.25rem !important;
    }
    
    /* Program icons */
    .program-icon i {
        font-size: 2rem !important;
    }
    
    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Stats */
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }
    
    .form-control-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Hero buttons stack */
    .hero-section .d-flex {
        flex-direction: column;
    }
    
    .hero-section .btn {
        width: 100%;
    }
}

/* =====================================================
   VERY SMALL (max-width: 400px)
   ===================================================== */
@media (max-width: 400px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =====================================================
   DARK MODE SUPPORT (Optional)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    body {
        background: #1a202c;
        color: #e2e8f0;
    }
    */
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   HIGH CONTRAST
   ===================================================== */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}