/* Base Styles specific to game details */
body {
    background-color: var(--bg-color, #0f172a);
    color: var(--text-color, #f8fafc);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Header */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.game-header.scrolled {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-btn {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.2s;
}

.header-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Heart Animation */
.heart-btn.active i {
    font-weight: 900;
    color: #ef4444;
    animation: heartPulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 350px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%);
}

/* Content Wrapper */
.game-content {
    padding: 0 20px 40px;
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Overlap hero */
}

/* Game Info */
.game-info {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: #1e293b;
    object-fit: cover;
}

.game-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.game-title {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.game-studio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.verified-badge {
    color: #3b82f6;
    font-size: 0.85rem;
}

.game-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.rating i {
    color: #fbbf24;
}

/* Tags */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e2e8f0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Action Area */
.action-area {
    margin-bottom: 32px;
}

.download-btn {
    width: 100%;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: glowPulse 2s infinite;
}

.download-btn:active {
    transform: scale(0.97);
}

@keyframes glowPulse {
    0% { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(59, 130, 246, 0.7); }
    100% { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
}

/* Section Title */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

/* Screenshots Section */
.screenshots-section {
    margin-bottom: 32px;
}

.screenshots-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-img {
    height: 180px;
    width: 320px;
    border-radius: 12px;
    object-fit: cover;
    scroll-snap-align: start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

/* About Section */
.about-section {
    margin-bottom: 24px;
}

.about-content {
    position: relative;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.about-content.expanded {
    max-height: 1000px;
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 16px 0;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-content.expanded .fade-overlay {
    opacity: 0;
}

.read-more-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    margin-top: 8px;
}

.read-more-btn:active {
    color: #2563eb;
}
