/* AvgJoeStickers Responsive Styles */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }
}

/* Medium Desktop (992px to 1199px) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991.98px) {
    /* Navigation */
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--light-color);
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        margin: 0.3rem 0;
        font-weight: 700;
        color: #2c3e50 !important;
        background: #f8f9fa;
        border: 2px solid #dee2e6;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link:hover {
        color: #ffffff !important;
        background: #e67e22 !important;
        border-color: #e67e22 !important;
    }
    
    .navbar-nav .nav-link:focus {
        color: #ffffff !important;
        background: #3498db !important;
        border-color: #3498db !important;
        box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Sections */
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Category Cards */
    .category-card {
        margin-bottom: 2rem;
    }
    
    /* About Section */
    .about-content {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .about-image {
        text-align: center;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-item {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }
    
    .contact-email {
        font-size: 1.1rem;
    }
    
    /* Social Media */
    .social-links-contact {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Products Filter */
    .products-filter .row {
        text-align: center;
    }
    
    .products-filter .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767.98px) {
    /* Typography */
    .hero-title {
        font-size: 2.3rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        border-width: 2px;
        padding: 8px 12px;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Category Cards */
    .category-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .category-icon i {
        font-size: 1.5rem;
    }
    
    /* Product Cards */
    .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* About Image */
    .image-placeholder {
        height: 250px;
    }
    
    .image-placeholder i {
        font-size: 2.5rem;
    }
    
    /* Footer */
    footer .row {
        text-align: center;
    }
    
    footer .col-md-6:first-child {
        margin-bottom: 1rem;
    }
    
    .social-links {
        margin-top: 1rem;
    }
    
    /* Products Filter */
    .products-filter {
        padding: 1rem;
    }
    
    .products-filter .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575.98px) {
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 40px;
    }
    
    /* Navigation */
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        padding: 0.3rem 0.5rem;
    }
    
    /* Mobile Menu - High Contrast */
    .navbar-nav .nav-link {
        font-weight: 700 !important;
        color: #2c3e50 !important;
        background: #f8f9fa !important;
        border: 2px solid #dee2e6 !important;
        font-size: 1rem !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #ffffff !important;
        background: #e67e22 !important;
        border-color: #e67e22 !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0 !important;
    }
    
    /* Category Cards */
    .category-card {
        padding: 1rem;
    }
    
    .category-card h4 {
        font-size: 1.1rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
    
    /* Product Cards */
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-placeholder {
        font-size: 2rem;
    }
    
    .product-content {
        padding: 0.8rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    /* About Features */
    .about-features .feature-item {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-item {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header, .modal-body {
        padding: 1rem;
    }
    
    /* Form Elements */
    .form-control, .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra Small Mobile (up to 400px) */
@media (max-width: 399.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 1.2rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .hero-buttons .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--dark-color) !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-title {
        color: var(--dark-color) !important;
        page-break-after: avoid;
    }
    
    .category-card,
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .category-icon,
    .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation for Mobile */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        margin: 0;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be expanded if you want to add dark mode support in the future */
    .navbar {
        background: rgba(44, 62, 80, 0.95);
    }
    
    .navbar-nav .nav-link {
        color: var(--light-color) !important;
    }
}

/* Mobile Navigation High Contrast Override */
@media (max-width: 991.98px) {
    .navbar-collapse.show .navbar-nav .nav-link,
    .navbar-collapse.collapsing .navbar-nav .nav-link {
        color: #2c3e50 !important;
        background: #f8f9fa !important;
        border: 2px solid #dee2e6 !important;
        font-weight: 700 !important;
        margin: 0.2rem 0 !important;
        padding: 0.8rem 1rem !important;
    }
    
    .navbar-collapse.show .navbar-nav .nav-link:hover,
    .navbar-collapse.show .navbar-nav .nav-link:focus,
    .navbar-collapse.collapsing .navbar-nav .nav-link:hover,
    .navbar-collapse.collapsing .navbar-nav .nav-link:focus {
        color: #ffffff !important;
        background: #e67e22 !important;
        border-color: #e67e22 !important;
    }
}