/* Mobile-specific optimizations for Low's Adventure Games */

/* Game thumbnail optimizations */
.game-thumbnail {
    transition: all 0.3s ease;
}

.game-thumbnail:hover {
    transform: scale(1.02);
}

/* Sidebar game images */
.sidebar-game img {
    transition: transform 0.3s ease;
}

.sidebar-game:hover img {
    transform: scale(1.1);
}

/* Related games images */
.related-game-card img {
    border-radius: 8px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile game iframe adjustments */
    .game-iframe {
        min-height: 400px;
        border-radius: 8px;
    }

    /* Mobile game thumbnail adjustments */
    .game-thumbnail {
        height: 80px;
        border-radius: 6px;
    }

    .game-card {
        padding: 0.5rem;
    }

    .game-card h3 {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    /* Mobile sidebar adjustments */
    .sidebar-game {
        padding: 0.75rem;
    }

    .sidebar-game .game-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    /* Mobile text adjustments */
    h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    h3 {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    /* Mobile touch improvements */
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }

    /* Mobile spacing optimizations */
    .mobile-spacing {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .game-iframe {
        min-height: 300px;
    }

    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .related-game-card {
        padding: 0.75rem;
    }

    .related-game-icon {
        width: 3rem;
        height: 3rem;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .game-iframe {
        -webkit-overflow-scrolling: touch;
    }
}

/* Android Chrome specific fixes */
@media screen and (max-width: 768px) {
    .game-iframe {
        transform: translateZ(0);
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .game-iframe {
        height: 70vh;
    }

    .mobile-landscape-hide {
        display: none;
    }
}

/* High DPI mobile displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .game-buttons button {
        border-width: 0.5px;
    }

    .game-iframe {
        border-width: 0.5px;
    }
}