/**
 * Responsive Styles
 * Media queries for tablets, mobile devices, and touch optimizations
 */

/* ============================================
   TABLET - 768px to 1024px
   ============================================ */

@media (max-width: 1024px) {
    /* Header adjustments */
    #header {
        padding: 0 20px;
        height: 50px;
    }

    #header .logo {
        font-size: 1.3rem;
    }

    .header-right {
        gap: 15px;
    }

    #header .contact {
        font-size: 1rem;
    }

    .sign-in-btn {
        padding: 6px 16px;
        font-size: 0.9rem;
    }

    /* Footer adjustments */
    #footer {
        padding: 0 20px;
        height: 50px;
        flex-wrap: wrap;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-right {
        gap: 15px;
    }

    .footer-link {
        font-size: 0.8rem;
    }

    /* Game showcase */
    #game-showcase {
        left: 40px;
        right: 40px;
        max-width: calc(100% - 80px);
    }

    .showcase-content {
        padding-top: 200px;
    }

    .game-logo {
        max-width: 350px;
    }

    .game-subtitle {
        max-width: 500px;
        font-size: 14px;
    }

    /* Screenshot Carousel - Tablet */
    .screenshot-carousel {
        max-width: 600px;
    }

    .screenshot-track {
        gap: 15px;
    }

    .screenshot-side-left,
    .screenshot-side-right {
        width: 140px;
        height: 79px;
    }

    .screenshot-center {
        width: 280px;
        height: 158px;
    }

    /* Full Screen Modal - Tablet */
    .fullscreen-arrow {
        width: 56px;
        height: 56px;
    }

    .fullscreen-arrow-left {
        left: 30px;
    }

    .fullscreen-arrow-right {
        right: 30px;
    }

    .fullscreen-close {
        width: 52px;
        height: 52px;
        top: 25px;
        right: 25px;
    }

    /* Steam widget */
    #steam-widget {
        right: 15px;
        bottom: 65px;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
}

/* ============================================
   MOBILE - Up to 768px
   ============================================ */

@media (max-width: 768px) {
    /* Header - Stack or compact */
    #header {
        padding: 0 15px;
        height: auto;
        min-height: 50px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
    }

    #header .logo {
        font-size: 1.2rem;
    }

    .header-right {
        gap: 12px;
    }

    #header .contact {
        font-size: 0.9rem;
    }

    .sign-in-btn {
        padding: 5px 14px;
        font-size: 0.85rem;
    }

    /* Footer - Stack */
    #footer {
        padding: 10px 15px;
        height: auto;
        min-height: 50px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }

    .footer-right {
        gap: 10px;
    }

    .footer-link {
        font-size: 0.7rem;
    }

    /* Game showcase - Full width, bottom aligned */
    #game-showcase {
        left: 15px;
        right: 15px;
        top: auto;
        bottom: 120px;
        transform: none;
        max-width: calc(100% - 30px);
        perspective: 800px;
    }

    .showcase-content {
        padding-top: 150px;
        gap: 12px;
    }

    .game-logo {
        max-width: 250px;
    }

    .game-subtitle {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.5;
    }

    /* Screenshot Carousel - Mobile */
    .screenshot-carousel {
        max-width: 100%;
    }

    .screenshot-track {
        gap: 10px;
    }

    .screenshot-side-left,
    .screenshot-side-right {
        width: 80px;
        height: 45px;
    }

    .screenshot-center {
        width: 200px;
        height: 112px;
    }

    /* Full Screen Modal - Mobile */
    .fullscreen-arrow {
        width: 48px;
        height: 48px;
    }

    .fullscreen-arrow-left {
        left: 15px;
    }

    .fullscreen-arrow-right {
        right: 15px;
    }

    .fullscreen-close {
        width: 48px;
        height: 48px;
        top: 15px;
        right: 15px;
    }

    .fullscreen-image {
        max-width: 95vw;
        max-height: 85vh;
    }

    .fullscreen-counter {
        bottom: 15px;
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    /* Steam widget - Hide on mobile */
    #steam-widget {
        display: none !important;
    }

    /* Loading screen adjustments */
    .logo-image {
        max-width: 180px;
        max-height: 180px;
    }

    .tagline-text {
        font-size: 16px;
    }

    .subtitle-text {
        font-size: 14px;
        max-width: 90%;
    }

    .enter-button {
        font-size: 18px;
        padding: 10px 20px;
    }

    .bottom-link {
        font-size: 10px;
    }

    /* Reduce particle size on mobile */
    .particle {
        width: 2px !important;
        height: 2px !important;
    }

    /* Unity gradient overlay - reduce width on mobile */
    #unity-container::before {
        width: 50%;
    }
}

/* ============================================
   SMALL MOBILE - Up to 480px
   ============================================ */

@media (max-width: 480px) {
    /* Header - Even more compact */
    #header .logo {
        font-size: 1rem;
    }

    .header-right {
        flex-direction: row;
        gap: 8px;
    }

    #header .contact {
        font-size: 0.8rem;
    }

    .sign-in-btn {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-copyright {
        font-size: 0.65rem;
        text-align: center;
    }

    .footer-right {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-link {
        font-size: 0.65rem;
    }

    /* Game showcase */
    #game-showcase {
        left: 10px;
        right: 10px;
        bottom: 100px;
        max-width: calc(100% - 20px);
    }

    .showcase-content {
        padding-top: 120px;
        gap: 10px;
    }

    .game-logo {
        max-width: 200px;
    }

    .game-subtitle {
        font-size: 12px;
        line-height: 1.4;
    }

    /* Screenshot Carousel - Very compact (Small Mobile) */
    .screenshot-track {
        gap: 8px;
    }

    .screenshot-side-left,
    .screenshot-side-right {
        width: 60px;
        height: 34px;
    }

    .screenshot-center {
        width: 160px;
        height: 90px;
    }

    /* Full Screen Modal - Small Mobile */
    .fullscreen-arrow {
        width: 44px;
        height: 44px;
    }

    .fullscreen-arrow svg {
        width: 24px;
        height: 24px;
    }

    .fullscreen-close {
        width: 44px;
        height: 44px;
        top: 10px;
        right: 10px;
    }

    .fullscreen-close svg {
        width: 24px;
        height: 24px;
    }

    .fullscreen-counter {
        bottom: 10px;
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    /* Loading screen */
    .logo-image {
        max-width: 150px;
        max-height: 150px;
    }

    .tagline-text {
        font-size: 14px;
    }

    .subtitle-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .enter-button {
        font-size: 16px;
        padding: 8px 18px;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION - Mobile devices
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    #game-showcase {
        bottom: 80px;
    }

    .showcase-content {
        padding-top: 100px;
    }

    .game-logo {
        max-width: 180px;
    }

    .game-subtitle {
        font-size: 11px;
    }

    /* Screenshot Carousel - Landscape mobile */
    .screenshot-track {
        gap: 8px;
    }

    .screenshot-side-left,
    .screenshot-side-right {
        width: 90px;
        height: 51px;
    }

    .screenshot-center {
        width: 200px;
        height: 112px;
    }

    #header,
    #footer {
        opacity: 0.1;
    }

    #header:hover,
    #footer:hover {
        opacity: 0.9;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch - Apple recommends 44x44px minimum */
    .enter-button,
    .fullscreen-arrow,
    .fullscreen-close,
    .sign-in-btn,
    #header .contact,
    .footer-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Disable hover effects on touch devices */
    .enter-button:hover,
    .fullscreen-arrow:hover,
    .fullscreen-close:hover,
    .sign-in-btn:hover,
    .game-logo:hover,
    .screenshot-thumb:hover {
        transform: none;
    }

    /* Active states for touch feedback */
    .enter-button:active,
    .fullscreen-arrow:active,
    .fullscreen-close:active,
    .sign-in-btn:active,
    .screenshot-thumb:active {
        opacity: 0.8;
    }

    /* Show header/footer always on touch */
    #header,
    #footer {
        opacity: 0.3;
    }
}
