/* PuzzleCraft Boutique - Responsive Styles */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* NO animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.93rem;
    }
    
    h2 {
        font-size: 1.53rem;
    }
    
    h3 {
        font-size: 1.44rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* Hero section */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero h1 {
        font-size: 1.68rem;
        margin-bottom: 1.02rem;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    /* Section spacing */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.68rem;
    }
    
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.93rem;
    }
    
    /* Team members */
    .rounded-circle {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 1rem;
    }
    
    /* Contact info */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Footer */
    footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Navbar */
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #d4def0;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
        border-bottom: 1px solid #f8f9fa;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Reduce animations on small devices */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: translateY(-2px);
        }
        
        #gallery img:hover {
            transform: scale(1.02);
        }
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.65rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    .btn {
        width: auto;
        min-width: 120px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2.23rem;
    }
    
    h2 {
        font-size: 1.83rem;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    .rounded-circle {
        width: 110px !important;
        height: 110px !important;
    }
    
    /* Cards in grid */
    .card-img-top {
        height: 180px;
    }
    
    /* Team layout */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .rounded-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 2.52rem;
    }
    
    h2 {
        font-size: 2.03rem;
    }
    
    .lead {
        font-size: 1.32rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding: 4rem 0 !important;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    #gallery {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #eddddf;
        box-shadow: none;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #515151;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0018ed;
        --secondary-color: #009903;
        --accent-color: #ff3d18;
        --text-dark: #000000;
        --bg-white: #FFFFFF;
        --bg-light: #F0F0F0;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
        border-color: #000;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 50vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .py-5 {
        padding: 1.5rem 0 !important;
    }
}

/* Focus Styles for Accessibility */
@media (any-hover: hover) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Container Adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
} 