/*
Kaa Shaayi Tlingit Artist - Mobile-First Styles
Cultural authenticity with mobile optimization
*/

/* ==========================================================================
   Mobile-First Base Styles (320px+)
   ========================================================================== */

/* Touch-friendly navigation */
.wp-block-navigation {
    position: sticky;
    bottom: 0;
    background: var(--wp--preset--color--bentwood-cream);
    border-top: 2px solid var(--wp--preset--color--tlingit-blue);
    padding: 0.75rem 0;
    z-index: 999;
}

.wp-block-navigation__responsive-container {
    padding: 0 1rem;
}

.wp-block-navigation-item {
    margin: 0 0.5rem;
}

.wp-block-navigation-item a {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target minimum */
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-navigation-item a:hover {
    background: var(--wp--preset--color--ocean-green);
    color: var(--wp--preset--color--pure-white);
}

/* Cultural hero section */
.cultural-hero {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--wp--preset--color--bentwood-cream) 0%, var(--wp--preset--color--ocean-green) 100%);
}

.cultural-hero h1 {
    font-size: 2rem;
    color: var(--wp--preset--color--cedar-red);
    margin-bottom: 0.5rem;
}

.cultural-hero p {
    font-size: 1.1rem;
    color: var(--wp--preset--color--raven-black);
    max-width: 600px;
    margin: 0 auto;
}

/* Artwork gallery grid */
.artwork-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
}

.artwork-item {
    background: var(--wp--preset--color--pure-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.artwork-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.artwork-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.artwork-item-content {
    padding: 1rem;
}

.artwork-item h3 {
    color: var(--wp--preset--color--cedar-red);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.artwork-item p {
    color: var(--wp--preset--color--raven-black);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Cultural context boxes */
.cultural-context {
    background: var(--wp--preset--color--ocean-green);
    color: var(--wp--preset--color--pure-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.cultural-context h4 {
    color: var(--wp--preset--color--bentwood-cream);
    margin-bottom: 0.75rem;
}

/* Shop integration */
.woocommerce .products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.woocommerce .product {
    background: var(--wp--preset--color--pure-white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce .price {
    color: var(--wp--preset--color--cedar-red);
    font-weight: 600;
    font-size: 1.1rem;
}

.woocommerce .button {
    background: var(--wp--preset--color--tlingit-blue);
    color: var(--wp--preset--color--pure-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    width: 100%;
    margin-top: 0.5rem;
}

.woocommerce .button:hover {
    background: var(--wp--preset--color--cedar-red);
}

/* Contact forms */
.contact-form {
    background: var(--wp--preset--color--bentwood-cream);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--wp--preset--color--ocean-green);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--wp--preset--color--tlingit-blue);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--wp--preset--color--cedar-red);
    border-color: var(--wp--preset--color--cedar-red);
}

/* Cultural respect spacing */
.cultural-content {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cultural-content strong {
    color: var(--wp--preset--color--cedar-red);
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--wp--preset--color--cedar-red);
    color: var(--wp--preset--color--pure-white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Loading states for images */
img[loading="lazy"] {
    background: var(--wp--preset--color--bentwood-cream);
}

/* Mobile typography improvements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Ensure mobile scrolling is smooth */
html {
    scroll-behavior: smooth;
}

/* Mobile-friendly tables */
table {
    width: 100%;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

/* ==========================================================================
   Progressive Enhancement for Larger Screens
   ========================================================================== */

@media (min-width: 480px) {
    .artwork-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cultural-hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .wp-block-navigation {
        position: static;
        border-top: none;
        border-bottom: 2px solid var(--wp--preset--color--tlingit-blue);
    }
    
    .artwork-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 2rem;
    }
    
    .woocommerce .products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cultural-hero {
        padding: 3rem 2rem;
    }
}