/* Styles pour le module Bonus - Poké HUB */

/* Shortcode [pokehub-bonus] */
.pokehub-bonuses-shortcode {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pokehub-bonus-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pokehub-bonus-item-image {
    flex-shrink: 0;
}

.pokehub-bonus-item-content h3 {
    margin: 0 0 0.5rem 0;
}

.pokehub-bonus-item-content p {
    margin: 0;
}

/* Affichage des bonus d'événement */
.pokehub-event-bonuses {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pokehub-event-bonus {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pokehub-event-bonus-image {
    flex-shrink: 0;
}

.pokehub-event-bonus-content {
    flex: 1;
}

.pokehub-event-bonus-title {
    margin: 0 0 0.5rem 0;
}

.pokehub-event-bonus-desc {
    margin: 0 0 0.5rem 0;
}

.pokehub-event-bonus-desc-global {
    margin: 0;
}

/* ===== Affichage visuel des bonus (cartes uniformisées avec Pokémon) ===== */

.pokehub-bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .pokehub-bonuses-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
}

.pokehub-bonus-card {
    position: relative;
    border-radius: 12px;
    overflow: visible; /* Permet aux badges de dépasser */
    background: var(--admin-lab-color-white, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0; /* Pas de padding pour les tuiles carrées */
    aspect-ratio: 1; /* Tuile carrée */
}

.pokehub-bonus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pokehub-bonus-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(
        to bottom,
        rgba(240, 240, 240, 0.3) 0%,
        var(--admin-lab-color-white, #ffffff) 50%
    );
    height: 100%;
    border-radius: 12px;
    padding: 0.5rem;
    overflow: visible; /* Permet aux badges de dépasser */
}

.pokehub-bonus-image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pokehub-bonus-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.pokehub-bonus-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--admin-lab-color-text-accent, var(--admin-lab-color-header-text, #011322));
    line-height: 1.2;
    word-break: break-word;
}

.pokehub-bonus-description {
    font-size: 0.75rem;
    color: var(--admin-lab-color-text, var(--admin-lab-color-pagination-text, #5D697D));
    text-align: center;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.pokehub-bonus-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #d32f2f;
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.5);
    border: 2px solid var(--admin-lab-color-white, #ffffff);
    z-index: 2;
}

/* Responsive */
@media (max-width: 480px) {
    .pokehub-bonuses-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.5rem;
    }
    
    .pokehub-bonus-card-inner {
        min-height: 120px;
        padding: 0.5rem;
    }
    
    .pokehub-bonus-image-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .pokehub-bonus-name {
        font-size: 0.75rem;
    }
    
    .pokehub-bonus-badge {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
}


