/* Stili specifici per le pagine di dettaglio dei giochi */

.game-header {
    background-color: #4a6fa5;
    color: white;
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #ffd166;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.game-content {
    padding: 3rem 0;
}

.game-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 2rem;
}

.game-image-container {
    flex: 1;
    min-width: 300px;
}

.game-image {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.game-details {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.detail-item h4 {
    color: #4a6fa5;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.game-description h3 {
    color: #4a6fa5;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.game-description p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.game-gallery {
    margin-top: 3rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.gallery-placeholder {
    background-color: #e0e0e0;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
    padding: 1rem;
}

/* Modal per visualizzare le immagini ingrandite */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#modal-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .game-info {
        flex-direction: column;
    }
    
    .game-details {
        grid-template-columns: repeat(2, 1fr);
    }
}
