/*
 * Sophie Wells Art - Responsive Stylesheet
 * Mobile-friendly adjustments for all screen sizes
 */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Screens (992px to 1199px) */
@media (max-width: 1199px) {
    html {
        font-size: 60%;
    }
    
    .container {
        max-width: 960px;
    }
    
    .artwork-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
    html {
        font-size: 58%;
    }
    
    .container {
        max-width: 720px;
    }
    
    .artwork-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-image::before {
        display: none;
    }
    
    /* Header Navigation Adjustments */
    .header-container {
        padding: 0 2rem;
    }
    
    .nav-menu li {
        margin-left: 2rem;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    html {
        font-size: 56%;
    }
    
    .container {
        max-width: 540px;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .artwork-image,
    .product-image {
        height: 25rem;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        width: 3rem;
        cursor: pointer;
        z-index: 1001;
    }
    
    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: var(--text-color);
        margin: 3px 0;
        transition: all 0.3s;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 10rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-menu a {
        font-size: 2rem;
    }
    
    /* Timeline Adjustments */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        margin-left: 0;
        margin-right: 0;
        padding-left: 6rem;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 20px;
        right: auto;
    }
}

/* Mobile Portrait (Less than 576px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    h1 {
        font-size: 4.2rem;
    }
    
    h2 {
        font-size: 3.6rem;
    }
    
    .artist-name {
        font-size: 5rem;
    }
    
    .artwork-grid,
    .product-grid,
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius-small);
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius-small);
        width: 100%;
    }
    
    /* Gallery Filters */
    .gallery-categories {
        flex-wrap: wrap;
    }
    
    .gallery-filter {
        margin: 0.5rem;
    }
}

/* Landscape orientation for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 15rem 0;
    }
    
    .main-nav {
        padding-top: 8rem;
    }
}

/* High resolution displays */
@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
    /* Provide higher resolution images if needed */
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .cta-button,
    .view-artwork,
    .shop-button,
    .view-all-button {
        display: none;
    }
    
    .artwork-item,
    .product-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
    }
}