/* ===========================
   GAME DETAIL PAGE STYLES
   ========================= */

/* Game Hero Section */
.game-hero {
    border-radius: 32px;
    padding: 60px;
    margin-bottom: 40px;
}

.game-hero-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
}

.game-cover {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-cover:hover .cover-overlay {
    opacity: 1;
}

.game-cover:hover img {
    transform: scale(1.05);
}

.play-trailer-btn {
    padding: 14px 32px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-trailer-btn:hover {
    background: white;
    transform: scale(1.05);
}

.game-main-info h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-meta-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-tag,
a.meta-tag {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
    color: #475569;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

a.meta-tag:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    transform: translateY(-1px);
}

.meta-tag.hot {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
}

/* Rating Overview */
.rating-overview {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 30px;
}

.rating-score {
    text-align: center;
}

.score-number {
    font-size: 56px;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
    margin-bottom: 8px;
}

.stars {
    font-size: 24px;
    margin-bottom: 8px;
}

.star {
    color: #cbd5e1;
}

.star.filled {
    color: #f59e0b;
}

.star.half {
    background: linear-gradient(90deg, #f59e0b 50%, #cbd5e1 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-count {
    font-size: 12px;
    color: #64748b;
}

.quick-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 28px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-description {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover {
    background: white;
    border-color: #6366f1;
}

.btn-outline {
    background: transparent;
    color: #475569;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: #6366f1;
    color: #6366f1;
}

/* Screenshots Gallery */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.screenshot-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-bottom: 40px;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Section Card */
.section-card {
    border-radius: 24px;
    padding: 40px;
}

/* About Section */
.about-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 20px;
    color: #1e293b;
}

.about-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.features-list li {
    display: flex;
    align-items: start;
    gap: 16px;
}

.feature-icon {
    font-size: 28px;
    min-width: 40px;
}

.features-list strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
}

.features-list p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Rate Section */
.rate-container {
    text-align: center;
    padding: 20px 0;
}

.rate-stars {
    font-size: 48px;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.rate-star {
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.rate-star:hover,
.rate-star.active {
    color: #f59e0b;
    transform: scale(1.1);
}

.rate-message {
    font-size: 14px;
    color: #64748b;
}

/* Comments Section */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-dropdown select {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    outline: none;
}

.write-comment {
    margin-bottom: 40px;
}

.write-comment textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #1e293b;
    resize: vertical;
    margin-bottom: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.write-comment textarea:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.write-comment textarea::placeholder {
    color: #94a3b8;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
}

.comment-item {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.comment-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.user-rating {
    display: flex;
    gap: 2px;
}

.user-rating .star {
    font-size: 14px;
}

.comment-date {
    color: #94a3b8;
}

.comment-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: white;
    color: #6366f1;
}

.load-more {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
}

/* Sidebar Info Card */
.info-card {
    border-radius: 20px;
    padding: 30px;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1e293b;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    font-size: 14px;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}

/* Rating Breakdown */
.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.bar-label {
    min-width: 30px;
    font-weight: 600;
    color: #475569;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: rgba(203, 213, 225, 0.5);
    border-radius: 50px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
    border-radius: 50px;
    transition: width 0.5s ease;
}

.bar-count {
    min-width: 50px;
    text-align: right;
    color: #64748b;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .game-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .game-cover {
        max-width: 400px;
        margin: 0 auto;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .rating-overview {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .game-hero {
        padding: 30px 20px;
    }

    .game-main-info h1 {
        font-size: 32px;
    }

    .section-card {
        padding: 24px 20px;
    }

    .quick-stats {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .screenshots-gallery {
        grid-template-columns: 1fr;
    }

    .sidebar-column {
        grid-template-columns: 1fr;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ===========================
   SCREENSHOTS SLIDER
   ========================= */

.screenshots-section {
    margin-bottom: 40px;
}

.screenshots-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.screenshots-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
    flex: 1;
}

/* Hide scrollbar but keep functionality */
.screenshots-slider::-webkit-scrollbar {
    display: none;
}

.screenshots-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.screenshot-slide {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.2);
}

.screenshot-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-slide:hover img {
    transform: scale(1.05);
}

.screenshot-caption {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* Slider Arrows */
.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.slider-arrow:active {
    transform: scale(0.95);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(99, 102, 241, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    width: 30px;
    border-radius: 10px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .screenshot-slide {
        width: 280px;
    }

    .screenshot-slide img {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .slider-arrow {
        display: none;
    }

    .screenshots-slider-container {
        gap: 0;
    }

    .screenshot-slide {
        width: 85vw;
    }
}