/* Responsive Design - Mobile First */

/* Base mobile styles (< 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2rem;
    }

    h2, .display-5 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 0 !important;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Wizard */
    .wizard-nav-bottom {
        display: flex !important;
        justify-content: space-between;
    }

    /* Hide desktop sticky sidebar on mobile */
    .sticky-top {
        position: relative;
        margin-bottom: 1.5rem;
    }

    /* Material Cards */
    .material-card {
        margin-bottom: 0.75rem;
    }

    /* Form elements */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Progress bar */
    .progress {
        height: 6px;
    }

    /* Spacing */
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .p-5 {
        padding: 2rem !important;
    }

    /* Feature icons */
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        line-height: 50px !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero {
        padding: 3rem 0 !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* Restore sticky sidebar */
    .sticky-top {
        position: sticky;
    }

    /* Two column material grid */
    .material-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Three column material grid */
    .material-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Enhanced card hover effects */
    .card.hover-lift:hover {
        transform: translateY(-8px);
    }

    /* Larger spacing */
    .container {
        max-width: 1140px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    /* Minimum 44x44 tap target */
    .btn,
    .form-check-input,
    .form-check-label,
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .form-check {
        padding: 0.5rem 0;
    }

    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0;
    }

    /* Larger form controls */
    .form-control,
    .form-select {
        padding: 0.75rem 1rem;
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .wizard-nav-bottom,
    .btn,
    .sticky-top {
        display: none !important;
    }

    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }

    a[href]:after {
        content: none !important;
    }
}

/* Reduced Motion */
@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 (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented if needed */
}
