/* /assets/css/common_game_page_layout.css (VERSION FINALE PROPRE) */

body.game-page-body {
    background: #f4f7f9;
}

.game-container {
    padding-bottom: 4rem;
}

.game-header {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 2rem;
}
.game-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.game-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.game-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 992px) {
    .game-layout-grid {
        grid-template-columns: 1fr 350px;
    }
}

.game-area, .instructions-panel, .game-feedback-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.game-canvas {
    width: 100%;
    min-height: 450px;
    background-color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-content {
    color: #777;
    text-align: center;
    background-color: #f4f7f9;
    padding: 2rem;
    border-radius: 8px;
}
.placeholder-content h4 { color: #667eea; }

.game-side-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.instructions-panel h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    display: inline-block;
}
.instructions-panel ul {
    padding-left: 1.2rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}
.instructions-panel li {
    margin-bottom: 0.5rem;
}

.game-feedback-section {
    margin-top: 2rem;
    text-align: center;
}
#gameRatingWidget h3 { color: #667eea; font-size: 1.3rem; }
.star-rating { font-size: 2rem; cursor: pointer; }
.star-rating .star { color: #ccc; transition: color 0.2s; padding: 0 0.1em; }
.star-rating .star.selected { color: #ffc107; }
.star-rating:hover .star { color: #ccc; }
.star-rating .star:hover, .star-rating .star:hover ~ .star { color: #ffc107 !important; }
#ratingMessage { min-height: 1.2em; font-size: 0.9rem; }
.current-rating-text { margin-top: 0.8rem; font-size: 1rem; color: #555; }

/* === SECTION JEUX SIMILAIRES === */
.similar-items-section {
    padding: 3rem 0;
    background-color: #eef2f7; /* Un fond légèrement différent */
}
.similar-items-section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}
.similar-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.similar-item-card {
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.similar-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.similar-item-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #f4f7f9;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.similar-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.similar-item-content { padding: 1rem; text-align: center; }
.similar-item-content h4 { font-size: 1rem; font-weight: 600; margin: 0; }

/* === STYLES POUR LES CATÉGORIES SUR LA PAGE DE JEU === */
.game-category-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.game-category-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.game-category-tag:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #667eea;
}