/* Responsive Styles for CraftFair Hub */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3, h4, h5 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero .container {
        text-align: center;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile */
    .card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Forms */
    .form-control {
        padding: 0.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Team section */
    #team img {
        width: 120px;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    /* Process section */
    .bg-primary.rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Disable hover animations */
    .card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Services cards - 2 columns */
    #services .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Team members - 2 columns */
    #team .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Pricing plans - stack vertically */
    #priceplan .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Reduce hover effects slightly */
    .card:hover {
        transform: translateY(-3px);
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* Full hover effects enabled */
    .card:hover {
        transform: translateY(-5px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Larger hero content */
    .display-4 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    /* Enhanced hover effects */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-width: 767.98px) {
    #hero {
        min-height: 90vh;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    #footer,
    .btn,
    .navbar,
    .breadcrumb {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: black !important;
        background: white !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5 {
        color: black !important;
        page-break-after: avoid;
    }
    
    /* Ensure content fits on page */
    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Hide decorative elements */
    .hero-shapes,
    .shape-1,
    .shape-2 {
        display: none !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Dark Mode Support (if system preference) */

/* Focus Management for Keyboard Navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover,
    .btn-primary:hover,
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Enhance focus states for touch */
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline-width: 3px;
        outline-offset: 3px;
    }
}

/* Container Queries (for modern browsers) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .card-body {
            padding: 0.75rem;
        }
        
        .card-title {
            font-size: 1rem;
        }
    }
} 