/* ===== VINTAGE POSTER MARKETPLACE - RESPONSIVE STYLES ===== */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        padding: 2rem 0;
    }
    
    .min-vh-100 {
        min-height: auto;
        padding: 3rem 0;
    }
    
    /* Remove decorative shapes on mobile for better performance */
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 180px;
    }
    
    /* Button sizing */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Team member images */
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps - stack vertically */
    .process-steps {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for better performance */
    .card:hover {
        transform: none;
        animation: none;
    }
    
    .card-img-top {
        transition: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #team img:hover {
        transform: none;
    }
    
    /* Mobile-specific spacing */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Mobile contact form */
    .contact-info {
        text-align: center;
        margin-top: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Adjust hero section */
    .hero-section {
        padding: 3rem 0;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 200px;
    }
    
    /* Team images */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Typography fine-tuning */
    h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Cards in grid */
    .card-img-top {
        height: 220px;
    }
    
    /* Team section - 2 columns on tablets */
    .col-lg-2-4 {
        width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Process steps - 2 per row on tablets */
    .process-item {
        margin-bottom: 2rem;
    }
    
    /* Footer - 2 columns */
    footer .col-lg-4:last-child {
        margin-top: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop experience starts here */
    .hero-section {
        padding: 5rem 0;
    }
    
    /* Team section - proper 5-column layout */
    .col-lg-2-4 {
        width: 20%;
    }
    
    /* Cards maintain good proportions */
    .card-img-top {
        height: 240px;
    }
    
    /* Enable hover effects */
    .card:hover {
        transform: translateY(-5px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Optimal desktop experience */
    .hero-section {
        padding: 6rem 0;
    }
    
    /* Larger cards for better visual impact */
    .card-img-top {
        height: 260px;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Team images at full size */
    #team img {
        width: 120px;
        height: 120px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    /* Reduce hero section height in landscape mode */
    .min-vh-100 {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    /* Compact navigation */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Print styles */
@media print {
    /* Hide non-essential elements when printing */
    .navbar,
    footer,
    .btn,
    #gallery,
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    /* Optimize text for printing */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    /* Ensure good contrast */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    /* Remove shadows and effects */
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations for users who prefer reduced motion */
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Remove hover transforms */
    .card:hover,
    #gallery img:hover,
    #team img:hover {
        transform: none;
    }
    
    /* Remove decorative elements that might cause motion */
    .hero-section::before,
    .hero-section::after {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    /* Enhance contrast for accessibility */
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        border-color: #000;
        color: #000;
    }
    
    /* Ensure text is readable */
    .text-muted {
        color: #666;
    }
}

/* Dark mode support (if system preference) */

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects that don't work */
    .card:hover,
    #gallery img:hover,
    #team img:hover,
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Container max-widths for different breakpoints */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Specific mobile navigation improvements */
@media (max-width: 991.98px) {
    /* Ensure mobile menu is accessible */
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        border-bottom: 1px solid #eee;
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Ensure proper spacing on all screen sizes */
.section-spacing {
    padding: 3rem 0;
}

@media (max-width: 767.98px) {
    .section-spacing {
        padding: 2rem 0;
    }
}

@media (min-width: 1200px) {
    .section-spacing {
        padding: 4rem 0;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}