/* Styles pour la barre d'actions du jeu */
.game-actions-bar {
    margin: 15px 0;
    padding: 12px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.actions-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.video-game-details, .additional-details {
    margin: 20px 0 !important;
    padding: 15px!important;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
}
.video-game-details p, .additional-details p {
    margin: initial !important;
}
.additional-details .additional-details-title {
    font-weight: bold;
    font-size : 15px;
}
.associated-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.news-item {
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.news-item img {
    width: 100%;
    height: auto;
    display: block;
}

.news-item .news-title,.news-item .news-date {
    font-size: 12px;
    line-height: 13px;
    padding: 5px;
    text-align: center;
    font-weight: normal;
}
.news-item:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .associated-news-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.video-game-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
}

.details-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.details-left {
    flex: 5; /* Colonne gauche plus large */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-right {
    flex: 1; /* Colonne droite plus étroite */
    display: flex;
    justify-content: flex-end; /* Aligne le bouton à droite */
    align-items: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-row strong {
    width: 200px; /* Largeur fixe pour les labels */
    font-weight: bold;
    font-size: 14px;
}

.detail-row span {
    flex-grow: 1; /* Laisse les infos occuper l’espace restant */
}
.details-url-zone {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}
.test-button {
    display: inline-block;
    text-align: center;
    padding: 5px 20px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}
.test-score {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
}

.test-button:hover {
    background-color: #004099;
    color: #fff;
}

.news-item a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .details-container {
        flex-direction: column; /* Colonne unique en mobile */
        gap: 10px;
    }

    .details-right {
        justify-content: center; /* Aligne le bouton au milieu */
    }
    .detail-row {
        flex-direction: column; /* Passe en colonne */
        align-items: flex-start; /* Aligne les éléments au début */
    }

    .detail-row strong {
        width: auto; /* Supprime la largeur fixe pour les labels */
        margin-bottom: 5px; /* Ajoute un espacement entre le label et les infos */
    }

    .detail-row span {
        flex-grow: 0; /* Désactive l'expansion pour éviter l'étirement */
    }
}

.google-calendar-button {
    background: #FFFFFF;
    border-radius: 5px;
    max-width: 125px;
    height: 25px;
    opacity: 0.5;
    border: 1px solid #ddd !important;
    display: flex;
    font-size:14px;
}
.google-calendar-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    opacity : 1;
    max-width: 125px;
}
.google-calendar-button img {
    max-width: 32px;
    max-height: 32px;
    padding: 3px;
}
.video-game:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

/* Nintendo-Town */
.jeg_post_meta, .jnews_author_box_container {
    display:none !important;
}

/* Styles du bouton de collection */
.collection-add-button,
.collection-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff !important;
}

.collection-add-button {
    background-color: #0056b3;
}

.collection-add-button:hover {
    background-color: #004099;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.collection-remove-button {
    background-color: #d9534f;
}

.collection-remove-button:hover {
    background-color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.collection-status {
    display: none;
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-style: italic;
    color: #333;
    padding: 5px;
}


/* État de chargement du bouton */
.button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button-loading .button-text {
    visibility: hidden;
}

.button-loading::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

/* Responsive design pour la barre d'actions */
@media (max-width: 768px) {
    .actions-container {
        flex-direction: column;
        align-items: center;
    }

    .collection-add-button {
        width: 100%;
        max-width: 250px;
    }
}