/**
 * Voice Alerts - Frontend Styles
 *
 * @package Voice_Alerts
 */

/* Alert Banner */
.voice-alerts-banner {
    background-color: #dc2626;
    color: #ffffff;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.voice-alerts-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.voice-alerts-banner a:hover {
    text-decoration: none;
}

/* Full width alignment */
.voice-alerts-banner.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .voice-alerts-banner {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .voice-alerts-banner {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Breaking News Ticker */
.voice-alerts-ticker {
    background-color: #dc2626;
    color: #ffffff;
    overflow: hidden;
    width: 100%;
    height: 48px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.voice-alerts-ticker__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #b91c1c;
    padding: 0 18px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.voice-alerts-ticker__wrap {
    display: flex;
    height: 100%;
    max-width: 1376px;
    margin: 0 auto;
}

.voice-alerts-ticker__label span {
    display: block;
}

.voice-alerts-ticker__container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.voice-alerts-ticker__track {
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
    animation: voiceAlertsTickerScroll 60s linear infinite;
}

.voice-alerts-ticker__inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.voice-alerts-ticker__link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 0 20px;
    white-space: nowrap;
}

.voice-alerts-ticker__link:hover {
    text-decoration: underline;
}

.voice-alerts-ticker__separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes voiceAlertsTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media screen and (max-width: 768px) {
    .voice-alerts-ticker { height: 42px; }
    .voice-alerts-ticker__label { font-size: 12px; padding: 0 12px; }
    .voice-alerts-ticker__link { font-size: 12px; padding: 0 14px; }
}

@media screen and (max-width: 480px) {
    .voice-alerts-ticker { height: 38px; }
    .voice-alerts-ticker__label { font-size: 11px; }
    .voice-alerts-ticker__link { font-size: 11px; }
}
