/* ============================================
AKL GAMING HUB - GAME DETAIL PAGE STYLES
============================================ */

:root {
    --bg-color: #f4f6f9;
    --text-color: #1f2937;
    --header-bg: rgba(255, 255, 255, 0.88);
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
    --meta-text: #6b7280;
    --desc-color: #4b5563;
    --box-bg: rgba(0, 0, 0, 0.03);
    --footer-bg: #ffffff;
    --footer-text: #666;
}

[data-theme="dark"] {
    --bg-color: #080b12;
    --text-color: #ffffff;
    --header-bg: rgba(8, 11, 18, 0.88);
    --card-bg: #151c2b;
    --card-border: rgba(255, 255, 255, 0.08);
    --meta-text: #858fa1;
    --desc-color: #cbd3df;
    --box-bg: rgba(255, 255, 255, 0.045);
    --footer-bg: #121212;
    --footer-text: #888;
}

#detailApp {
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
HEADER
============================================ */

.detail-header {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--card-border);
}

.detail-title {
    font-size: 17px;
    font-weight: 800;
}

.back-btn {
    border: none;
    background: var(--box-bg);
    color: var(--text-color);
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--card-border);
}

/* ============================================
CONTENT
============================================ */

.detail-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 10px 40px;
}

.game-detail-page {
    animation: detailPageIn .35s ease;
}

@keyframes detailPageIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
HERO & CARD (Centered App Store Style)
============================================ */

.detail-hero {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.detail-cover {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--box-bg);
    border: 1px solid var(--card-border);
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    margin-bottom: 14px;
}

.detail-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-cover-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--box-bg);
    font-size: 42px;
}

/* ============================================
TITLE & INFO
============================================ */

.detail-title-area {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-game-name {
    margin: 8px 0 12px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 850;
    color: var(--text-color);
}

.detail-platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(45,130,255,.13);
    border: 1px solid rgba(45,130,255,.3);
    color: #3b82f6;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 4px;
}

.detail-info-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0 20px;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: var(--box-bg);
    border: 1px solid var(--card-border);
}

.info-label {
    font-size: 11px;
    color: var(--meta-text);
}

.info-box strong {
    font-size: 13px;
    color: var(--text-color);
}

/* ============================================
SECTIONS & DESCRIPTION
============================================ */

.detail-section {
    margin-top: 22px;
}

.detail-section-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color);
}

.description-box {
    padding: 15px;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--desc-color);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================
SCREENSHOTS
============================================ */

.screenshots-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.screenshot-count {
    font-size: 11px;
    color: var(--meta-text);
    background: var(--box-bg);
    padding: 4px 8px;
    border-radius: 8px;
}

.screenshots-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.screenshot-card {
    position: relative;
    flex: 0 0 88%;
    max-width: 360px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    scroll-snap-align: start;
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-number {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 800;
}

/* ============================================
DOWNLOAD
============================================ */

.download-section {
    margin-top: 25px;
    padding: 16px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.download-section-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--text-color);
}

.download-section-header span {
    color: var(--meta-text);
    font-size: 12px;
}

.download-section-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.download-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px;
    background: linear-gradient(135deg, #2388ff, #694cff);
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    text-align: center;
}

.download-note {
    margin: 10px 0 0;
    text-align: center;
    color: var(--meta-text);
    font-size: 11px;
}

/* ============================================
FOOTER STYLES
============================================ */
.detail-footer-box {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--card-border);
}

.detail-footer-box a {
    color: var(--footer-text);
}

/* ပုံဝါးခြင်းကို သက်သာစေရန် */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
