/* Roblox-Style Game Detail Page CSS */
:root {
    --roblox-bg: #f2f4f5;
    --roblox-sidebar-bg: #ffffff;
    --roblox-card-bg: #ffffff;
    --roblox-text-main: #191919;
    --roblox-text-sub: #65676b;
    --roblox-blue: #3977ff;
    --roblox-blue-hover: #2663e6;
    --roblox-border: #e3e5e8;
    --roblox-pill-bg: #e8ecef;
    --roblox-pill-hover: #dce0e5;
}

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

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--roblox-bg);
    color: var(--roblox-text-main);
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar Navigation (Roblox App style) */
.roblox-sidebar {
    width: 64px;
    background-color: var(--roblox-sidebar-bg);
    border-right: 1px solid var(--roblox-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
}

.sidebar-icon-item {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 0.65rem;
    gap: 2px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.15s ease;
}

.sidebar-icon-item:hover {
    background: #f0f2f5;
}

.sidebar-svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.roblox-logo-bottom {
    margin-top: auto;
    margin-bottom: 16px;
    font-weight: 900;
    font-size: 1.2rem;
    color: #000;
}

/* Main Content Area */
.main-wrapper {
    margin-left: 64px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sticky Top Navigation Bar */
.sticky-top-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--roblox-border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.sticky-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-mini-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.sticky-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.play-btn-small {
    background: var(--roblox-blue);
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

/* Hero Header Banner Area (Matching Image 1 & Image 2) */
.hero-banner-container {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #000;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Game Info Header Block Overlaid */
.game-header-section {
    max-width: 920px;
    margin: -100px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.game-header-card {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 20px;
}

.game-thumbnail {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    border: 3px solid #fff;
}

.game-header-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-title-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.game-subtitle {
    font-size: 0.88rem;
    color: var(--roblox-text-sub);
}

.game-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-play-large {
    background: var(--roblox-blue);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 60px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(57, 119, 255, 0.3);
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-play-large:hover {
    background: var(--roblox-blue-hover);
    transform: translateY(-1px);
}

.btn-icon-square {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--roblox-pill-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.15s ease;
}

.btn-icon-square:hover {
    background: var(--roblox-pill-hover);
}

/* Rating & Social Stats Bar */
.social-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.stat-pill-btn {
    background: var(--roblox-pill-bg);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}

.stat-pill-btn:hover {
    background: var(--roblox-pill-hover);
}

/* Prominent Update Notice Banner (Link to Patch Notes) */
.update-notice-banner {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.update-notice-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fbbf24;
}

.update-notice-info p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.btn-read-update {
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn-read-update:hover {
    background: #f1f5f9;
    transform: translateX(2px);
}

.update-notice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-read-archive {
    background: transparent;
    color: #ffffff;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-read-archive:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Media Gallery Carousel */
.media-gallery-card {
    background: var(--roblox-card-bg);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.gallery-main-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.gallery-dots-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background: #fafafa;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}

.gallery-dot.active {
    background: var(--roblox-blue);
    width: 24px;
    border-radius: 6px;
}

/* Description & Details Section */
.details-container {
    max-width: 920px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-block {
    margin-bottom: 36px;
}

.block-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--roblox-text-main);
}

.block-paragraph {
    font-size: 0.95rem;
    color: var(--roblox-text-sub);
    line-height: 1.7;
}

/* Information Table (Matching Image 3) */
.info-data-table {
    width: 100%;
    border-collapse: collapse;
}

.info-data-table tr {
    border-bottom: 1px solid var(--roblox-border);
}

.info-data-table td {
    padding: 14px 0;
    font-size: 0.92rem;
}

.info-label {
    color: var(--roblox-text-sub);
    width: 40%;
}

.info-value {
    color: var(--roblox-text-main);
    font-weight: 500;
    text-align: right;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .roblox-sidebar {
        display: none;
    }
    .main-wrapper {
        margin-left: 0;
    }
    .game-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .btn-play-large {
        width: 100%;
    }
    .update-notice-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .update-notice-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .btn-read-update,
    .btn-read-archive {
        width: 100%;
        text-align: center;
    }
}
