/* Label Alerts CSS - Guardian/BBC News Style matching React Native app */

/* Pulsing animation for the dot - matches React Native timing */
@keyframes label-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

/* Support for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    @keyframes label-pulse {
        0%, 100% {
            opacity: 1;
        }
    }
}

/* Legacy support for existing CSS classes if used elsewhere */
.label-alert {
    display: inline-flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #ffffff;
    border-radius: 0;
    margin-right: 8px;
    margin-bottom: 4px;
    vertical-align: top;
}

/* Breaking News Label */
.label-breaking {
    background-color: #C70000;
}

/* Live Label */
.label-live {
    background-color: #BB1919;
}

/* Small variant */
.label-small {
    padding: 3px 6px;
    font-size: 11px;
}

.label-small .label-dot {
    width: 5px;
    height: 5px;
    border-radius: 2.5px;
    margin-right: 5px;
}

/* Large variant */
.label-large {
    padding: 5px 10px;
    font-size: 13px;
}

.label-large .label-dot {
    width: 7px;
    height: 7px;
    border-radius: 3.5px;
    margin-right: 7px;
}

/* Pulsing dot */
.label-dot {
    background-color: #ffffff;
    animation: label-pulse 1.6s infinite;
    flex-shrink: 0;
}

/* Text styling */
.label-text {
    line-height: 1;
    white-space: nowrap;
}

/* Hover effects */
.label-alert:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .label-large {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .label-large .label-dot {
        width: 6px;
        height: 6px;
        border-radius: 3px;
        margin-right: 6px;
    }
}

/* Alternative styles for different placements */
.label-alert.label-inline {
    margin-right: 4px;
    margin-bottom: 0;
}

.label-alert.label-stacked {
    display: block;
    margin-bottom: 8px;
    width: fit-content;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .label-breaking {
        background-color: #000000;
        border: 2px solid #FF0000;
    }
    
    .label-live {
        background-color: #000000;
        border: 2px solid #FF4444;
    }
}