/* =====================================================
   GAME PAGE STYLES
   Tacty Studio - Black & White Aesthetic
   ===================================================== */

/* Disable scroll snap on game pages */
.game-page html,
.game-page {
    scroll-snap-type: none;
}

/* Solid Navbar for Game Pages */
.navbar-solid {
    background: var(--color-black) !important;
    border-bottom: 1px solid var(--color-gray-800);
}

.navbar-solid::after {
    opacity: 1;
}

/* Game Hero */
.game-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--nav-height);
}

.game-hero-media {
    position: absolute;
    inset: 0;
}

.game-hero-video,
.game-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.game-hero-video {
    position: absolute;
    inset: 0;
}

.game-hero-img {
    position: relative;
}

.game-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

.game-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 2rem;
}

.game-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.game-hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.game-hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gray-300);
    margin-bottom: 2rem;
}

.hero-cta {
    margin-top: 1rem;
}

/* Game Info Section */
.game-info {
    padding: 5rem 0;
    background: var(--color-black);
}

.game-info-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

.game-description-full h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.game-description-full .lead {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.game-description-full p {
    color: var(--color-gray-400);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.game-details {
    background: var(--color-gray-900);
    padding: 2rem;
    border: 1px solid var(--color-gray-800);
    border-radius: 4px;
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.game-details h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-800);
}

.game-details dl {
    display: grid;
    gap: 1rem;
}

.game-details dt {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}

.game-details dd {
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.btn-full {
    width: 100%;
    margin-top: 1.5rem;
}

/* Steam Embed - Integrated in About */
.steam-embed {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-800);
}

.steam-embed iframe {
    max-width: 100%;
    border-radius: 4px;
    filter: grayscale(100%) contrast(1.1);
    transition: filter var(--transition-base);
}

.steam-embed:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* Features Section */
.game-features {
    padding: 5rem 0;
    background: var(--color-gray-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-black);
    border: 1px solid var(--color-gray-800);
    padding: 2rem;
    border-radius: 4px;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gray-600);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-white);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-gray-400);
    line-height: 1.6;
}

/* Trailer Section */
.game-trailer {
    padding: 5rem 0;
    background: var(--color-gray-900);
}

.trailer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-gray-700);
    position: relative;
}

.trailer-video-bg {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter var(--transition-slow);
}

.trailer-wrapper:hover .trailer-video-bg {
    filter: grayscale(50%);
}

/* Trailer Link Overlay */
.trailer-link {
    display: block;
    cursor: pointer;
}

.trailer-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.trailer-link:hover .trailer-play-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), background var(--transition-base);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: var(--color-black);
    margin-left: 4px;
}

.trailer-link:hover .play-button {
    transform: scale(1.1);
}

.trailer-play-overlay span {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
}


/* Gallery Section */
.game-gallery {
    padding: 5rem 0;
    background: var(--color-black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-base), transform var(--transition-slow);
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 900px;
    max-width: 90vw;
    aspect-ratio: 16/9;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background: var(--color-black);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: transform var(--transition-base);
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

/* Game Footer */
.game-footer {
    padding: 3rem 0;
    background: var(--color-black);
    border-top: 1px solid var(--color-gray-800);
}

.game-footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.game-footer .footer-logo {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.game-footer .footer-logo:hover {
    opacity: 1;
}

.game-footer .footer-text {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Responsive */
@media (max-width: 900px) {
    .game-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-details {
        position: static;
    }
}

@media (max-width: 768px) {
    .game-hero {
        height: 70vh;
        margin-top: var(--nav-height);
    }

    .game-hero-title {
        font-size: 2rem;
    }

    .game-info,
    .game-features,
    .game-trailer,
    .game-cta {
        padding: 3rem 0;
    }

    .steam-section {
        padding: 2rem 0;
    }

    .steam-widget-wrapper iframe {
        width: 100%;
        height: auto;
        min-height: 190px;
    }
}
