/**
 * Responsive Styles - Minecraft Theme
 * Media queries and responsive design adjustments
 */

/* Mobile Improvements for Header */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(13, 17, 23, 0.98);
        border-radius: 16px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid var(--border-color);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem !important;
        margin: 0.25rem 0;
        justify-content: flex-start;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    .site-title a {
        font-size: 1.4rem;
    }
    
    .brand-text {
        overflow: hidden;
    }
}

/* Tablet Improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.9rem;
    }
}

/* Desktop Improvements */
@media (min-width: 992px) {
    .navbar-nav {
        gap: 0.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1.25rem !important;
    }
    
    .site-header {
        padding: 0.75rem 0;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1320px;
        margin: 0 auto;
    }
}

/* Bootstrap-based WooCommerce Responsive Design */
/* These work in conjunction with the flex-based grid in woocommerce-grid.css */

/* Large devices (desktops, 1200px and up) - Adjust card heights */
@media (min-width: 1200px) {
    .woocommerce .product:not(.product-category) {
        min-height: 340px !important;
    }
    
    .woocommerce .product-category {
        min-height: 380px !important;
        max-height: 420px !important;
        padding: 2rem !important;
    }
    
    .woocommerce .product-category img {
        height: 220px !important;
    }
}

/* Medium devices (tablets, 768px to 1199px) - Adjust for reduced columns */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .woocommerce .product:not(.product-category) {
        min-height: 360px !important;
        padding: 1.5rem !important;
    }
    
    .woocommerce:not(.single-product) .product:not(.product-category) img, .woocommerce.single-product .related .product img, .woocommerce.single-product .upsells .product img {
        height: 190px !important;
    }
    
    .woocommerce .product-category {
        min-height: 380px !important;
        max-height: 420px !important;
        padding: 2rem !important;
    }
    
    .woocommerce .product-category img {
        height: 200px !important;
    }
}

/* Small devices (landscape phones, 576px to 767px) - 2 columns */
@media (min-width: 576px) and (max-width: 767.98px) {
    .woocommerce .product:not(.product-category) {
        min-height: 300px !important;
        padding: 1.25rem !important;
    }
    
    .woocommerce:not(.single-product) .product:not(.product-category) img, .woocommerce.single-product .related .product img, .woocommerce.single-product .upsells .product img {
        height: 150px !important;
    }
    
    .woocommerce .product-category {
        min-height: 320px !important;
        max-height: 360px !important;
        padding: 1.5rem !important;
    }
    
    .woocommerce .product-category img {
        height: 160px !important;
    }
    
    .woocommerce .product-category .woocommerce-loop-category__title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
}

/* Extra small devices (portrait phones, less than 576px) - 1 column */
@media (max-width: 575.98px) {
    .woocommerce .product:not(.product-category) {
        min-height: 300px !important;
        padding: 1.5rem !important;
    }
    
    .woocommerce:not(.single-product) .product:not(.product-category) img, .woocommerce.single-product .related .product img, .woocommerce.single-product .upsells .product img {
        height: 170px !important;
    }
    
    .woocommerce .product-category {
        min-height: 320px !important;
        max-height: 360px !important;
        padding: 1.5rem !important;
    }
    
    .woocommerce .product-category img {
        height: 170px !important;
    }
    
    .woocommerce .product-category .woocommerce-loop-category__title {
        font-size: 1.2rem !important;
    }
}

/* Front Page Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-paper,
    .feature-paper {
        padding: 1.5rem;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-link {
        font-size: 0.75rem;
    }
    
    .shop-banner h1 {
        font-size: 2rem;
    }
    
    .site-title a {
        font-size: 1.4rem;
    }
    
    /* Additional mobile spacing for WooCommerce pages */
    .woocommerce-page .container,
    .woocommerce .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .woocommerce .shop-banner {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .hero-brand {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .feature-paper {
        min-height: 150px;
        padding: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Bootstrap-based WooCommerce Responsive Design */
/* These work in conjunction with the flex-based grid in woocommerce-grid.css */

/* Large devices (desktops, 1200px and up) - Adjust card heights */
@media (min-width: 1200px) {
    .woocommerce .product:not(.product-category) {
        min-height: 340px !important;
    }
    
    .woocommerce .product-category {
        min-height: 380px !important;
        max-height: 420px !important;
        padding: 2rem !important;
    }
    
    .woocommerce .product-category img {
        height: 220px !important;
    }
}

/* Medium devices (tablets, 768px to 1199px) - Adjust for reduced columns */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .woocommerce .product:not(.product-category) {
        min-height: 360px !important;
        padding: 1.5rem !important;
    }
    
    .woocommerce:not(.single-product) .product:not(.product-category) img, .woocommerce.single-product .related .product img, .woocommerce.single-product .upsells .product img {
        height: 190px !important;
    }
    
    .woocommerce .product-category {
        min-height: 380px !important;
        max-height: 420px !important;
        padding: 2rem !important;
    }
    
    .woocommerce .product-category img {
        height: 200px !important;
    }
}

/* Small devices (landscape phones, 576px to 767px) - 2 columns */
@media (min-width: 576px) and (max-width: 767.98px) {
    .woocommerce .product:not(.product-category) {
        min-height: 300px !important;
        padding: 1.25rem !important;
    }
    
    .woocommerce:not(.single-product) .product:not(.product-category) img, .woocommerce.single-product .related .product img, .woocommerce.single-product .upsells .product img {
        height: 150px !important;
    }
    
    .woocommerce .product-category {
        min-height: 320px !important;
        max-height: 360px !important;
        padding: 1.5rem !important;
    }
    
    .woocommerce .product-category img {
        height: 160px !important;
    }
    
    .woocommerce .product-category .woocommerce-loop-category__title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
}

/* Extra small devices (portrait phones, less than 576px) - 1 column */
@media (max-width: 575.98px) {
    .woocommerce .product:not(.product-category) {
        min-height: 300px !important;
        padding: 1.5rem !important;
    }
    
    .woocommerce:not(.single-product) .product:not(.product-category) img, .woocommerce.single-product .related .product img, .woocommerce.single-product .upsells .product img {
        height: 170px !important;
    }
    
    .woocommerce .product-category {
        min-height: 320px !important;
        max-height: 360px !important;
        padding: 1.5rem !important;
    }
    
    .woocommerce .product-category img {
        height: 170px !important;
    }
    
    .woocommerce .product-category .woocommerce-loop-category__title {
        font-size: 1.2rem !important;
    }
}
