/**
 * Single Game Page - Modern 2026 Design
 * Glassmorphism, smooth animations, bold gradients
 */

/* Variables - Modern 2026 */
:root {
    --glass-bg: rgba(255,255,255,0.9);
    --glass-border: rgba(255,255,255,0.4);
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 80%, #475569 100%);
    --shadow-soft: 0 8px 32px rgba(0,0,0,0.06);
    --shadow-glow: 0 8px 40px rgba(16,185,129,0.2);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.04);
}

/* Game Single */
.game-single {
    padding-bottom: 80px;
}

/* ==================== HERO HEADER ==================== */
.game-header {
    background: var(--gradient-hero);
    padding: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    contain: layout paint;
    min-height: 200px;
}

.game-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.game-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs .sep {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.breadcrumbs .current {
    color: rgba(255,255,255,0.5);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Inner */
.game-header__inner {
    display: grid;
    grid-template-columns: 180px 1fr 320px;
    gap: 32px;
    align-items: start;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* Game Image - Glass Card */
.game-header__image {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.game-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-mod-label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: var(--gradient-accent);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245,158,11,0.5);
}

/* Game Info */
.game-header__info {
    color: white;
    padding-top: 10px;
}

.game-header__title {
    margin: 0 0 16px 0;
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Rating - Glass Style */
.game-header__rating {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.header-stars .star-rating {
    display: flex;
    gap: 4px;
}

.header-stars .star-rating i {
    font-size: 18px;
    color: #ffd700;
    filter: drop-shadow(0 2px 4px rgba(255,215,0,0.4));
}

.header-rating-value {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.header-votes {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* Info Pills */
.game-info-table {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    transition: all 0.25s ease;
}

.info-row:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.info-row i {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.info-row .label {
    color: rgba(255,255,255,0.7);
    display: none;
}

.info-row .value {
    font-weight: 600;
    color: white;
}

.info-row .value a {
    color: white;
    text-decoration: none;
}

/* Actions Column */
.game-header__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
}

/* Vote Buttons - Glass */
.vote-compact {
    display: flex;
    gap: 10px;
}

.vote-compact .vote-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-compact .vote-btn.like:hover,
.vote-compact .vote-btn.like.active {
    background: rgba(16,185,129,0.4);
    border-color: rgba(16,185,129,0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16,185,129,0.3);
}

.vote-compact .vote-btn.dislike:hover,
.vote-compact .vote-btn.dislike.active {
    background: rgba(239,68,68,0.4);
    border-color: rgba(239,68,68,0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239,68,68,0.3);
}

/* Download Button - Gradient */
.btn-download-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 32px;
    background: var(--gradient-primary);
    border-radius: 18px;
    font-size: 18px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 40px rgba(16,185,129,0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-download-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-download-main:hover::before {
    left: 100%;
}

.btn-download-main:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 50px rgba(16,185,129,0.45);
    color: white;
}

.btn-download-main i {
    font-size: 20px;
}

.btn-download-main .btn-size {
    padding: 4px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Google Play Button */
.btn-gplay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-gplay:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: white;
}

/* ==================== CONTENT AREA ==================== */
.game-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-top: -20px;
    padding-top: 40px;
    position: relative;
}

.game-content {
    min-width: 0;
}

/* Content Block - Glass Card */
.content-block {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: var(--shadow-soft);
}

/* Intro Block - Accent with Icon */
.intro-block {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    border: none;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(16,185,129,0.1);
}

.intro-block__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 14px;
    flex-shrink: 0;
}

.intro-block__icon i {
    font-size: 24px;
    color: white;
}

.intro-block__content {
    flex: 1;
}

.intro-block__content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #065f46;
}

.intro-block__content p:not(:last-child) {
    margin-bottom: 12px;
}

/* Game Description */
.game-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.game-description p {
    margin-bottom: 20px;
}

.game-description h2 {
    margin: 36px 0 18px;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.game-description h3 {
    margin: 28px 0 14px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.game-description ul, .game-description ol {
    margin-bottom: 20px;
    padding-left: 28px;
}

.game-description li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.game-description img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: var(--shadow-soft);
}

/* ==================== SIDEBAR ==================== */
.game-sidebar {
    position: sticky;
    top: 90px;
}

.game-sidebar .widget {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,0.8);
}

.game-sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.game-sidebar .widget-title i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 10px;
    color: #10b981;
    font-size: 14px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .game-header__inner {
        grid-template-columns: 160px 1fr 280px;
        gap: 24px;
    }
    
    .game-header__image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 1024px) {
    .game-header__inner {
        grid-template-columns: 140px 1fr;
        gap: 24px;
    }
    
    .game-header__image {
        width: 140px;
        height: 140px;
        border-radius: 24px;
    }
    
    .game-header__title {
        font-size: 26px;
    }
    
    .game-header__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .vote-compact {
        flex: 0 0 auto;
    }
    
    .btn-download-main {
        flex: 1;
    }
    
    .game-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .game-header__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding-bottom: 32px;
    }
    
    .game-header__image {
        margin: 0 auto;
        width: 130px;
        height: 130px;
        border-radius: 28px;
    }
    
    .game-header__title {
        font-size: 22px;
    }
    
    .game-header__rating {
        justify-content: center;
    }
    
    .game-info-table {
        justify-content: center;
    }
    
    .game-header__actions {
        flex-direction: column;
    }
    
    .vote-compact {
        width: 100%;
    }
    
    .content-block {
        padding: 24px;
        border-radius: 20px;
        margin-bottom: 16px;
    }
    
    .game-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        justify-content: center;
        font-size: 12px;
    }
    
    .game-header__image {
        width: 110px;
        height: 110px;
        border-radius: 24px;
    }
    
    .game-header__title {
        font-size: 20px;
    }
    
    .header-stars .star-rating i {
        font-size: 16px;
    }
    
    .header-rating-value {
        font-size: 18px;
    }
    
    .btn-download-main {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 16px;
    }
    
    .content-block {
        padding: 20px;
        border-radius: 18px;
    }
    
    .game-description {
        font-size: 15px;
    }
    
    .game-description h2 {
        font-size: 20px;
    }
    
    /* MOD label - move to bottom on mobile */
    .game-mod-label {
        top: auto;
        bottom: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 10px;
    }
    
    /* Intro icon - smaller on mobile */
    .intro-block {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-block__icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 12px;
    }
    
    .intro-block__icon i {
        font-size: 18px;
    }
}
