/**
 * Live Event Label Styles
 * Red label similar to YouTube Live badge
 */

.event-live-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    animation: livePulse 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

/* Pulsing animation for live label */
@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 0, 0, 0.5);
        transform: scale(1.02);
    }
}

/* Live dot indicator */
.event-live-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: liveDot 1.5s ease-in-out infinite;
}

@keyframes liveDot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* For homepage upcoming events cards */
.upcoming-events-card .event-live-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

/* For events grid cards */
.events-grid-card .event-live-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

/* For calendar events */
.school-calendar-event {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    flex-wrap: wrap;
}

.school-calendar-event .event-live-label {
    position: relative;
    top: 0;
    right: 0;
    padding: 2px 5px;
    font-size: 8px;
    gap: 2px;
    margin-right: 4px;
}

.school-calendar-event .event-live-label::before {
    width: 4px;
    height: 4px;
}

/* Adjust card styles when live label is present */
.upcoming-events-card,
.events-grid-card {
    position: relative;
    overflow: visible;
}

/* Ensure proper positioning context */
.upcoming-events-card .upcoming-events-image,
.events-grid-card .events-grid-image-wrapper {
    position: relative;
}
