/* ==================== SHARED CARD STYLES ==================== */
/* CSS compartilhado entre múltiplos componentes de cards */
/* Criado para evitar duplicação e centralizar manutenção */

/* ==================== CARD HEADERS ==================== */

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    border-bottom: none;
}

.card-header i {
    font-size: 12px;
}

/* ==================== CHARACTER ANIMATIONS ==================== */

/* Personagem posicionado no canto inferior direito dos cards */
.card-character-bottom-right {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 50px;
    height: 50px;
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
    animation: characterPulse 3s ease-in-out infinite;
}

.card-character-bottom-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Animação de pulsação do personagem */
@keyframes characterPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Balão de fala do personagem (character bark) */
.character-bark {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    color: #333;
    width: 100px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 20;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.character-bark-text {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* Ponteiro do balão de fala */
.character-bark::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mostrar balão ao passar o mouse no personagem */
.card-character-bottom-right:hover .character-bark {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: barkBounce 0.5s ease;
}

/* Animação de bounce do balão de fala */
@keyframes barkBounce {
    0% {
        transform: translateY(10px) scale(0.8);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
