/* ============================================
   GAMEZONE - Detail Page Styles
   Vibrant Sunburst Orange Theme
   ============================================ */

/* ---- Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: rgba(255, 107, 53, 0.2);
    color: #2D2D2D;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FFF8F0;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.5);
}

body {
    overflow-x: hidden;
}

/* ---- Detail Hero Background ---- */
.detail-hero-bg {
    background:
        radial-gradient(ellipse 60% 40% at 30% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 70% 10%, rgba(255, 140, 66, 0.06) 0%, transparent 50%);
}

/* ---- Game Embed ---- */
.game-embed-wrapper {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #FEE2C5;
    box-shadow:
        0 4px 20px rgba(255, 107, 53, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.game-embed-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.game-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* ---- Game Info Panel ---- */
.game-info-panel {
    background: #ffffff;
    border: 1px solid #FEE2C5;
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.06);
}

/* ---- Detail Section ---- */
.detail-section {
    background: #ffffff;
    border: 1px solid #FEE2C5;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.06);
}

/* ---- Game Card (reused from homepage) ---- */
.game-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #FEE2C5;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow:
        0 12px 32px rgba(255, 107, 53, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

/* Card Thumbnail */
.card-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #FEF3E2;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.35s ease;
}

.game-card:hover .card-thumb img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

/* Card Overlay with Play Button */
.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0);
    transition: background 0.35s ease;
}

.game-card:hover .card-overlay {
    background: rgba(255, 255, 255, 0.4);
}

.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0);
    color: rgba(255, 255, 255, 0);
    transform: scale(0.6);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .play-icon {
    background: #FF6B35;
    color: #ffffff;
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.card-badge.action {
    background: rgba(255, 107, 53, 0.15);
    color: #E04000;
    border: 1px solid rgba(255, 107, 53, 0.25);
}

.card-badge.racing {
    background: rgba(255, 140, 66, 0.15);
    color: #D97706;
    border: 1px solid rgba(255, 140, 66, 0.25);
}

.card-badge.puzzle {
    background: rgba(78, 205, 196, 0.15);
    color: #0D9488;
    border: 1px solid rgba(78, 205, 196, 0.25);
}

.card-badge.casual {
    background: rgba(255, 210, 63, 0.15);
    color: #CA8A04;
    border: 1px solid rgba(255, 210, 63, 0.25);
}

/* Card Info */
.card-info {
    padding: 14px 16px 16px;
}

.card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-desc {
    font-size: 12px;
    color: #9CA3AF;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .game-embed-container {
        padding-top: 75%;
    }

    .game-info-panel {
        padding: 16px;
    }

    .card-thumb {
        aspect-ratio: 4 / 3;
    }

    .card-info {
        padding: 10px 12px 12px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-desc {
        display: none;
    }

    .play-icon {
        width: 44px;
        height: 44px;
    }

    .detail-section {
        padding: 16px;
    }
}

@media (max-width: 1024px) {
    .game-embed-container {
        padding-top: 62.5%;
    }
}