/* Digital Art Commission Marketplace - Responsive CSS */

/* ===== MOBILE FIRST APPROACH ===== */

/* Base styles (mobile) */
.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ===== SMALL DEVICES (576px and up) ===== */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
        margin: 0 auto;
    }
}

/* ===== MEDIUM DEVICES (768px and up) ===== */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .h3 {
        font-size: 1.75rem;
    }
    
    /* Grid adjustments */
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* ===== LARGE DEVICES (992px and up) ===== */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    /* Custom grid columns */
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
    
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }
    
    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    
    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }
}

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* ===== XXL DEVICES (1400px and up) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ===== MOBILE SPECIFIC STYLES ===== */
@media (max-width: 767.98px) {
    /* Disable scroll animations on mobile as per requirements */
    [data-sal] {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Typography mobile adjustments */
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .h3 {
        font-size: 1.5rem;
    }
    
    .h4 {
        font-size: 1.25rem;
    }
    
    .h5 {
        font-size: 1.125rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar mobile */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    /* Spacing mobile */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Cards mobile */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Form mobile */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Gallery mobile */
    #gallery .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Team section mobile */
    .col-xl-2-4,
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* Process steps mobile */
    .col-lg-2-4 .text-center {
        margin-bottom: 2rem;
    }
    
    /* Footer mobile */
    footer .col-md-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* ===== TABLET SPECIFIC STYLES ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Team grid on tablet */
    .col-xl-2-4 {
        width: 50%;
        margin-bottom: 1.5rem;
    }
    
    /* Process steps on tablet */
    .col-lg-2-4 {
        width: 50%;
        margin-bottom: 1.5rem;
    }
    
    /* Services grid on tablet */
    .services .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* ===== LANDSCAPE PHONE STYLES ===== */
@media (max-width: 991.98px) and (orientation: landscape) {
    #hero {
        min-height: 70vh;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
    }
}

/* ===== FOCUS VISIBLE STYLES ===== */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===== CONTAINER BREAKPOINTS ===== */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ===== UTILITY RESPONSIVE CLASSES ===== */
@media (max-width: 767.98px) {
    .d-md-none {
        display: none !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}

/* ===== GRID SYSTEM ENHANCEMENTS ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .row {
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .row > * {
        padding-left: 1rem;
        padding-right: 1rem;
    }
} 