/**
 * VGLoot - Game Detail Page Styles
 * Version: 1.0.0
 *
 * Estilos específicos para la página de detalle de juegos
 * Extraídos de estilos inline para mejor rendimiento y mantenibilidad
 */

/* ========================================
   LAYOUT
   ======================================== */

.game-detail-row {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* ========================================
   COVER IMAGE CONTAINER
   ======================================== */

.game-cover-container {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
}

.game-cover-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.game-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.game-cover-placeholder-icon {
    font-size: 3rem;
}

.game-cover-footer {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
}

.game-cover-thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.game-cover-thumbnail {
    font-size: 0.75rem;
    transition: all 0.3s ease;
    border-color: #dee2e6;
}

.game-cover-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   CARD STYLES
   ======================================== */

.game-detail-card {
    border: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
    border-radius: 20px;
}

.game-collection-card-header {
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: 0;
    border-radius: 20px 20px 0 0;
}

.game-collection-card-title {
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1.15rem;
}

/* ========================================
   EDITIONS GRID
   ======================================== */

.edition-card {
    height: 100%;
    border: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.edition-card-cover {
    height: 150px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.edition-card-placeholder {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.edition-card-placeholder-icon {
    font-size: 2rem;
}

.edition-card-title {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.game-form-alert {
    background: rgba(13, 110, 253, 0.1);
    border: 0;
    margin-bottom: 1rem;
}

.game-form-select,
.game-form-input {
    border-radius: 10px;
}

.game-form-select:focus,
.game-form-input:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 0.2rem rgba(32, 201, 151, 0.25);
}

/* ========================================
   PLATFORM ICONS
   ======================================== */

.platform-icon-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.platform-icon:hover {
    transform: scale(1.1);
}

/* ========================================
   STATS & BADGES
   ======================================== */

.game-stats-badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 500;
}

.game-price-badge {
    font-size: 1.1rem;
    font-weight: bold;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .game-cover-image,
    .game-cover-placeholder {
        height: 300px;
    }

    .game-detail-card {
        border-radius: 15px;
    }

    .game-collection-card-header {
        border-radius: 15px 15px 0 0;
    }

    .game-cover-container {
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .game-cover-image,
    .game-cover-placeholder {
        height: 250px;
    }

    .edition-card-cover,
    .edition-card-placeholder {
        height: 120px;
    }

    .game-cover-thumbnail {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

body.dark-mode .game-cover-container {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .game-cover-footer {
    background: #2d3748;
}

body.dark-mode .game-form-alert {
    background: rgba(13, 110, 253, 0.2);
}

body.dark-mode .edition-card {
    background: #2d3748;
}

body.dark-mode .edition-card-cover,
body.dark-mode .edition-card-placeholder {
    background-color: #1a202c;
}

body.dark-mode .game-form-select,
body.dark-mode .game-form-input {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .game-form-select:focus,
body.dark-mode .game-form-input:focus {
    background-color: #374151;
    border-color: #20c997;
}
