﻿/* =========================================================
   STYLE_GAMEDATA.CSS
   Specific styles for the Game Details Page (Play Store Look)
========================================================= */

/* 1. BACKGROUND & PADDING OVERRIDE */
.game-details {
    padding: 120px 20px;
    /* Ensures the background matches your theme exactly */
    background: radial-gradient(circle at 20% 20%, rgba(130,90,255,0.25), transparent 45%), radial-gradient(circle at 80% 70%, rgba(255,140,40,0.20), transparent 45%), linear-gradient(135deg, #08051a, #120b2d, #1b1442);
    min-height: 100vh;
}

/* 2. MAIN LAYOUT GRID */
.game-layout {
    display: grid;
    gap: 40px;
    margin-top: 20px;
}

/* Desktop: Video on Left (65%), Info on Right (35%) */
@media(min-width: 900px) {
    .game-layout {
        grid-template-columns: 65% 35%;
        align-items: start;
    }
}

/* =========================================
   14. BACK TO HOME BUTTON (New Style)
========================================= */

/* The Button Itself */
.nav-links .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* Space between arrow and text */
    padding: 10px 25px;
    /* Glass Effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Shape & Text */
    border-radius: 30px;
    color: #ffffff !important; /* Force white text */
    font-family: 'Oxygen', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    /* Hover Animation */
    .nav-links .back-btn:hover {
        background: linear-gradient(135deg, #8f2fff, #ffb347); /* Purple to Orange */
        border-color: transparent;
        box-shadow: 0 0 20px rgba(143, 47, 255, 0.5); /* Glow */
        transform: translateY(-2px); /* Slight lift */
    }

    /* The Arrow Animation */
    .nav-links .back-btn .arrow {
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    /* Move arrow left when hovering */
    .nav-links .back-btn:hover .arrow {
        transform: translateX(-4px);
    }

/* 3. VIDEO PLAYER STYLE (SMART FIX) */
.game-media video {
    width: 100%;
    /* REMOVED: aspect-ratio: 16/9; (This was causing the stretch) */
    /* ADDED: Limits height so portrait videos don't get too tall */
    max-height: 500px;
    /* ADDED: Shows the full video (black bars if needed), never crops */
    object-fit: contain;
    /* ADDED: Centers the video if it's narrow (like a phone) */
    margin: 0 auto 20px auto;
    display: block;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}
/* Add this to the bottom of style_gamedata.css */
.mobile-portrait-video {
    max-width: 300px !important; /* Forces phone width */
    border: 4px solid #333; /* Dark bezel border */
}

/* 4. SCREENSHOTS CAROUSEL (Play Store Style) */
.game-screens {
    display: flex; /* Aligns images side-by-side */
    gap: 15px; /* Space between screenshots */
    overflow-x: auto; /* Enables horizontal scrolling */
    padding-bottom: 15px; /* Space for scrollbar */
    scroll-snap-type: x mandatory; /* Snaps images into place */
    margin-top: 10px;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

    .game-screens::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .game-screens img {
        height: 300px; /* Fixed height (Portrait Mode) */
        width: auto; /* Width adjusts automatically */
        border-radius: 14px;
        flex-shrink: 0; /* Prevents squishing */
        scroll-snap-align: start; /* Snap alignment */
        box-shadow: 0 10px 20px rgba(0,0,0,0.4);
        transition: transform 0.3s ease;
        aspect-ratio: 9/16; /* Standard Phone Aspect Ratio */
        object-fit: cover;
        border: 1px solid rgba(255,255,255,0.15);
    }

        .game-screens img:hover {
            transform: scale(1.03); /* Slight zoom effect */
            border-color: #ffb347; /* Orange border on hover */
        }

/* 5. INFO CARD (Right Side Glass Panel) */
.game-info.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    padding: 35px;
    height: fit-content;
}

/* 6. HEADER INSIDE INFO CARD (Icon + Text Side-by-Side) */
.game-title-wrap {
    display: flex;
    align-items: center; /* Vertically center */
    gap: 20px; /* Space between Icon and Title */
    margin-bottom: 25px;
}

    /* Force Icon Size */
    .game-title-wrap img {
        width: 85px !important;
        height: 85px !important;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        object-fit: cover;
        flex-shrink: 0; /* Prevents icon from shrinking */
        border: 1px solid rgba(255,255,255,0.2);
    }

    /* Title Styling */
    .game-title-wrap h2 {
        font-family: 'Cinzel', serif;
        font-size: 28px;
        margin: 0;
        line-height: 1.2;
        color: #ffffff;
        text-align: left;
        text-shadow: 0 0 15px rgba(140,100,255,0.5);
    }

/* 7. FEATURES LIST */
.features-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: #ffb347; /* Orange Accent */
    margin-top: 10px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

    .features-list li {
        position: relative;
        padding-left: 26px;
        margin-bottom: 12px;
        font-size: 16px;
        color: rgba(255,255,255,0.85);
        line-height: 1.5;
    }

        .features-list li::before {
            content: "✦";
            position: absolute;
            left: 0;
            top: 2px;
            color: #ffb347;
            font-size: 14px;
        }

/* 8. TECH STACK BADGES */
#tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

    #tech-badges span {
        background: rgba(255, 255, 255, 0.1);
        padding: 5px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 700;
        color: #ccc;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

/* 9. ACTION BUTTONS (Play Store / APK) */
.features-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #8f2fff, #5f72ff);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(143,47,255,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(143,47,255,0.6);
    }

.btn-secondary {
    flex: 1;
    text-align: center;
    padding: 14px 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

    .btn-secondary:hover {
        background: rgba(255,255,255,0.2);
    }
