/* =================================
   RESPONSIVE DESIGN
   ================================= */

/* Tablet Styles */
@media screen and (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .section__title {
        font-size: 2.5rem;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .hero__stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        max-width: 800px;
    }
    
    .hero__phone-mockup {
        max-width: 320px;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }
    
    .about__right {
        margin-top: 3rem;
        padding: 3rem 1.5rem;
    }
    
    .about__right-title {
        font-size: 1.8rem;
    }
    
    .careers__content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .careers__image {
        order: -1;
    }
    
    .team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games__grid,
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 6rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 100;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .nav__close,
    .nav__toggle {
        display: block;
    }
    
    .nav__logo-text {
        font-size: 1rem;
    }
    
    .nav__close {
        position: absolute;
        top: 2rem;
        right: 2rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__description {
        font-size: 1.1rem;
    }
    
    .hero__game-showcase-container {
        flex-direction: column;
        gap: 2rem;
        justify-content: center;
    }
    
    .hero__game-info {
        margin-left: 0;
        padding-right: 0;
        align-items: center;
        text-align: center;
    }
    
    .hero__game-title {
        text-align: center;
    }
    
    .hero__title-img {
        max-width: 300px;
    }
    
    .hero__store-links {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }
    
    .hero__game-img {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }
    
    .hero__content {
        padding-top: 120px;
    }
    
    .hero__phone-mockup {
        max-width: 280px;
        margin: 1.5rem auto;
    }
    
    .hero__ingame-img {
        border-radius: 25px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    
    .hero__stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }
    
    .stat {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .stat__number {
        font-size: 2rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .section__subtitle {
        font-size: 1rem;
    }
    
    .team__grid {
        grid-template-columns: 1fr;
    }
    
    .games__grid,
    .news__grid {
        grid-template-columns: 1fr;
    }
    
    .games__store-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .modal__content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .about__img,
    .careers__img {
        height: 300px;
    }
    
    .team__member {
        padding: 1.5rem;
    }
    
    .team__image {
        width: 120px;
        height: 120px;
    }
    
    .game__content,
    .news__content {
        padding: 1.5rem;
    }
    
    .modal__content {
        margin: 15% auto;
        padding: 1rem;
    }
    
    .nav__logo-text {
        font-size: 0.9rem;
    }
    
    /* Keep phone mockup same size on small screens */
    .hero__phone-mockup {
        width: 350px !important;
        max-width: 350px !important;
    }
    
    .hero__ingame-img {
        width: 350px !important;
        height: auto !important;
    }
    
    .hero__title-img {
        max-width: 220px;
    }
    
    .hero__store-links {
        max-width: 280px;
    }
    
    .hero__store-links .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        max-width: 500px;
    }
    
    .store-btn__img {
        width: 140px;
    }
    
    .store-btn__img--small {
        width: 80px;
    }
    
    .store-btn__img--medium {
        width: 110px;
    }
    
    .about__title {
        font-size: 2rem;
    }
    
    /* Fix background attachment on mobile */
    .about {
        background-attachment: scroll;
    }
    
    .about__right {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
    
    .about__right-title {
        font-size: 1.5rem;
    }
    
    .hero__game-showcase-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        text-align: center;
    }
    
    /* Keep phone mockup same size and position on mobile */
    .hero__phone-mockup {
        display: block !important;
        position: relative !important;
        max-width: 350px !important;
        width: 350px !important;
        flex-shrink: 0 !important;
        margin: 0 auto !important;
    }
    
    .hero__ingame-img {
        width: 350px !important;
        height: auto !important;
        max-width: none !important;
    }
    
    /* Maintain background size on mobile - no resizing */
    .hero__game-showcase {
        position: fixed !important;
        top: -200px !important;
        left: -200px !important;
        right: -200px !important;
        bottom: -200px !important;
        width: calc(100vw + 400px) !important;
        height: calc(100vh + 400px) !important;
        z-index: -1 !important;
        overflow: hidden !important;
    }
    
    .hero__game-img {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw + 400px) !important;
        height: calc(100vh + 400px) !important;
        object-fit: cover !important;
        object-position: center !important;
        filter: blur(8px) brightness(0.7) !important;
        min-width: calc(100vw + 400px) !important;
        min-height: calc(100vh + 400px) !important;
        transition: none !important;
    }
    
    .hero__game-info {
        align-items: center;
        text-align: center;
        max-width: 100%;
        width: 100%;
    }
    
    .hero__game-title {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero__title-img {
        max-width: 280px;
        width: 100%;
        height: auto;
    }
    
    .hero__store-links {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    
    .hero__store-links .btn {
        width: 100%;
        max-width: 240px;
        min-width: 180px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .store-btn__img {
        width: 180px;
        max-width: 100%;
    }
    
    .store-btn__img--small {
        width: 90px;
    }
    
    .store-btn__img--medium {
        width: 120px;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .nav {
        height: 60px;
    }
    
    .hero__content {
        margin-bottom: 2rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat__number {
        font-size: 1.5rem;
    }
    
    .stat__label {
        font-size: 0.8rem;
    }
}

/* High DPI Displays */
@media screen and (min-resolution: 2dppx) {
    .hero__bg-img,
    .about__img,
    .careers__img,
    .team__img,
    .game__img,
    .news__img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Already implemented dark theme as default */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero__bg-img,
    .about__img,
    .careers__img,
    .team__img,
    .game__img,
    .news__img {
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .footer,
    .nav__toggle,
    .nav__close,
    .btn,
    .modal {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .section__title {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}
