/**
 * Event Actions Styles
 * Favorites and Attendance buttons
 */

/* Кнопка "Подобається" */
.btn-favorite {
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-favorite:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-favorite.active,
.btn-favorite.active:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.btn-favorite.active:hover {
    background-color: #c82333 !important;
    transform: scale(1.15);
}

.btn-favorite i {
    transition: transform 0.3s ease;
}

.btn-favorite:hover i {
    transform: scale(1.2);
}

.btn-favorite.active i {
    animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
}

/* Кнопки участі */
.btn-attendance {
    transition: all 0.3s ease;
    position: relative;
}

.btn-attendance.active {
    opacity: 1;
    font-weight: bold;
}

.btn-attendance.active::after {
    content: '✓';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

/* Лічильники учасників */
.block_event_attendees {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 15px;
}

.block_event_attendees strong {
    color: #28a745;
}

/* Event card image favorite button (Tailwind cards) */
.btn-favorite-img {
    color: #9ca3af;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-favorite-img:hover {
    color: #dc3545;
    transform: scale(1.15);
}

.btn-favorite-img.active {
    background-color: #dc3545 !important;
    color: white !important;
}

.btn-favorite-img.active:hover {
    background-color: #c82333 !important;
    transform: scale(1.15);
}

.btn-favorite-img.active i {
    color: white;
    animation: heartbeat 0.6s ease-in-out;
}

/* Event card favorite button */
.block_event .o {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: 2px solid transparent;
}

.block_event .o:hover {
    background-color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.2);
}

.block_event .o i {
    font-size: 18px;
    transition: all 0.3s ease;
}

.block_event .o:hover i {
    transform: scale(1.1);
    color: #dc3545;
}

.block_event .o.active {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    animation: pulse 0.5s ease-in-out;
}

.block_event .o.active:hover {
    background-color: #c82333;
    border-color: #c82333;
    transform: scale(1.15) rotate(-5deg);
}

.block_event .o.active i {
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
