/* Board Game Rental Template - Responsive CSS */

/* ===============================================
   MOBILE FIRST RESPONSIVE DESIGN
   =============================================== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Hero Section Mobile */
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    .hero-content {
        padding: 1rem;
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-image img {
        height: 40vh;
        border-radius: 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    /* Services Mobile */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Team Mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 3rem;
    }
    
    .timeline-item::before {
        left: 14px !important;
        right: auto !important;
    }
    
    /* Process Steps Mobile */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        padding: 1rem;
    }
    
    /* Price Cards Mobile */
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* Navigation Mobile */
    .navbar-nav .nav-link {
        text-align: center;
        margin: 0.25rem 0;
    }
    
    /* Gallery Mobile */
    .gallery-image {
        margin-bottom: 1rem;
    }
    
    /* Blog Mobile */
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .swiper {
        --swiper-navigation-size: 30px;
    }
    
    /* Reduce animations on mobile */
    .feature-item:hover,
    .service-card:hover,
    .game-item:hover {
        transform: none;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content {
        min-height: 70vh;
    }
    
    .hero-image img {
        height: 50vh;
    }
    
    /* Reduce hover effects on smaller devices */
    .feature-item:hover,
    .service-card:hover {
        transform: translateY(-2px);
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content {
        min-height: 80vh;
    }
    
    .hero-image img {
        height: 80vh;
    }
    
    /* Team responsive layout */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Services responsive */
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Process steps responsive */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        margin: 1.5rem 0;
    }
    
    /* Disable Swiper autoplay on tablets */
    .swiper[data-mobile-disable] {
        --swiper-autoplay-delay: 0;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content {
        min-height: 90vh;
    }
    
    .hero-image img {
        height: 90vh;
    }
    
    /* Ensure proper spacing */
    .service-card,
    .game-item,
    .blog-card {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content {
        min-height: 100vh;
    }
    
    .hero-image img {
        height: 100vh;
    }
    
    /* Maximum widths for readability */
    .container {
        max-width: 1200px;
    }
}

/* ===============================================
   RESPONSIVE UTILITIES
   =============================================== */

/* Hide elements on mobile */
@media (max-width: 767.98px) {
    .d-mobile-none {
        display: none !important;
    }
    
    /* Reduce padding on mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Smaller margins on mobile */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
}

/* Show elements only on mobile */
@media (min-width: 768px) {
    .d-mobile-block {
        display: none !important;
    }
}

/* ===============================================
   SWIPER RESPONSIVE SETTINGS
   =============================================== */

/* Disable autoplay and effects on mobile devices */
@media (max-width: 767.98px) {
    .swiper {
        --swiper-autoplay-delay: 0;
    }
    
    .swiper-slide {
        transition: none;
    }
    
    /* Ensure reviews are readable on mobile */
    .review-card {
        height: auto;
        min-height: 150px;
        margin: 0.5rem;
    }
    
    .review-card p {
        font-size: 1rem;
    }
}

/* ===============================================
   ACCESSIBILITY RESPONSIVE
   =============================================== */

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    .service-card,
    .game-item,
    .blog-card,
    .price-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--white);
    }
}

/* Reduced motion for all breakpoints */
@media (prefers-reduced-motion: reduce) {
    .hero-image img,
    .gallery-image,
    .team-photo {
        transition: none;
    }
    
    .hero-image img:hover,
    .gallery-image:hover,
    .team-photo:hover {
        transform: none;
    }
    
    /* Disable swiper transitions */
    .swiper,
    .swiper-slide {
        transition: none !important;
    }
}

/* ===============================================
   PRINT STYLES
   =============================================== */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .swiper-pagination,
    .btn,
    footer {
        display: none !important;
    }
    
    /* Ensure good contrast for printing */
    body {
  overflow-x: hidden;
        color: black !important;
        background: white !important;
    }
    
    /* Reset margins for printing */
    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ===============================================
   LANDSCAPE ORIENTATION ADJUSTMENTS
   =============================================== */
@media (orientation: landscape) and (max-height: 500px) {
    /* Adjust hero for landscape mobile */
    .hero-content {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* ===============================================
   RESPONSIVE IMAGES
   =============================================== */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure images don't overflow containers */
.service-image,
.blog-image,
.gallery-image {
    width: 100%;
    object-fit: cover;
}

/* ===============================================
   RESPONSIVE TYPOGRAPHY
   =============================================== */

/* Adjust font sizes for better mobile readability */
@media (max-width: 767.98px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.25rem;
        --font-size-h5: 1.1rem;
        --navbar-brand-size: 1.25rem;
    }
    
    /* Ensure text remains readable */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Adjust button text */
    .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* ===============================================
   RESPONSIVE SPACING
   =============================================== */

/* Adjust container padding for mobile */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Responsive column spacing */
@media (max-width: 767.98px) {
    .row > * {
        margin-bottom: 1.5rem;
    }
    
    .row > *:last-child {
        margin-bottom: 0;
    }
} 