/* Card styling */
.card {
    border-radius: 10px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.card-content.wrap {
    display: flex;
    flex-wrap: wrap;
}

/* Add hover effect for cards */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Dark theme styling */
.card.dark-theme {
    background-color: #2d3748;
    color: #f7fafc;
}

.dark-theme .text-muted {
    color: #cbd5e0 !important;
}

.dark-theme .bg-dark {
    background-color: #1a202c !important;
}

/* Image container styling */
.card-img-container {
    height: 170px;
    width: 170px;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
}

.card-img-container.collapsed{
    margin-bottom: 0.5rem !important;
    height: 15vh !important;
    display: flex !important;
    flex-grow: 1 !important;
    width: 100% !important;
}

.card-img-container:not(.collapsed) {
    margin-right: 1rem;
}

/* NSFW image blur effect */
.nsfw-blur {
    filter: blur(10px);
    transition: filter 0.3s ease;
}

/* NSFW overlay styling */
.nsfw-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

/* Favorite icon styling */
.favorite {
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
}

.favorite:hover {
    transform: scale(1.2);
}

.favorite.active {
    color: rgba(255, 0, 0, 0.72);
}

/* Character info section */
.character-info {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allows text-truncate to work properly */
}

/* Statistics styling */
.stats-icon {
    display: none;
}

.stats-label {
    display: inline-block;
}

/* Estilo para garantir que o botão mantenha altura consistente */
.character-actions .btn {
    height: auto;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Garante que os ícones dos botões sejam sempre visíveis */
.character-actions .btn i {
    margin-left: 0.25rem;
}

/* Quando o texto é escondido, o ícone fica centralizado */
.character-actions .btn .d-none + i {
    margin-left: 0;
}


/* -------------------------------------------------------------------------- */
/*                           NO CHARACTERS HANDLING                           */
/* -------------------------------------------------------------------------- */

/* ------------------------------ NO FAVORITES ------------------------------ */
.animated-pulse {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.animated-beat {
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.25);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.25);
    }
    60% {
        transform: scale(1);
    }
}

/* ------------------------------ NO CHARACTERS ------------------------------ */

.animated-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}
