/* core/steam/steam.css */

/* --- Style du Conteneur Principal --- */
.steam-game-container {
    background-color: #1b2838;
    color: #c7d5e0;
    font-family: 'Arial', sans-serif;
    border-radius: 5px;
    margin: 2em 0;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.steam-game-header img {
    width: 100%;
    height: auto;
    display: block;
}

.steam-game-body {
    padding: 20px;
}

.steam-game-body h2 {
    color: #ffffff;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #2a475e;
    padding-bottom: 10px;
}

.steam-game-body p {
    font-size: 0.9em;
    line-height: 1.6;
}

.steam-game-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2a475e;
}

.steam-game-info strong {
    color: #66c0f4;
}

.steam-buy-button {
    display: inline-block;
    background-color: #70a02b;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.steam-buy-button:hover {
    background-color: #8ed03f;
    color: #ffffff;
}

/* --- Style de la Galerie Média --- */
.steam-media-viewer {
    margin: 20px 0;
}

.steam-main-media {
    position: relative;
    background-color: #000;
    margin-bottom: 10px;
    min-height: 344px;
}

.steam-main-media img,
.steam-main-media video {
    width: 100%;
    height: auto;
    display: none;
}

.steam-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.steam-thumbnail {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    width: 116px;
    height: 65px;
}

.steam-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.steam-thumbnail:hover {
    border-color: #66c0f4;
}

.steam-thumbnail.active {
    border-color: #ffffff;
}

.steam-thumbnail[data-type="video"]::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    text-shadow: 0 0 5px black;
    pointer-events: none;
}