/* Responsive Design Enhancement */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .game-card-img {
        height: 180px;
    }
    
    .game-card-body {
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
        padding: 0.5rem 0.8rem !important;
    }
    
    .search-input {
        padding: 10px 45px 10px 15px;
        font-size: 0.9rem;
    }
    
    .category-btn {
        margin: 0 0.3rem 0.5rem;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .game-card-img {
        height: 190px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .game-card-img {
        height: 200px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .game-card-img {
        height: 220px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .game-card-img {
        height: 240px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .game-card:hover {
        transform: none;
        box-shadow: 0 10px 20px var(--shadow-color);
    }
    
    .play-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.4);
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .play-btn:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-card-img::before {
        font-size: 2.5rem;
    }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1rem;
    }
    
    .game-modal .modal-content {
        height: 95vh;
    }
    
    .game-modal .modal-body {
        height: calc(95vh - 80px);
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-section,
    .footer,
    .play-overlay,
    .play-btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .game-card {
        break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
} 