/**
 * Urgent Styles
 * 
 * Estilos para o sistema de Urgência
 * 
 * @package N10_News_Portal
 */

/* ================================
   ARTICLE WITH URGENT
   ================================ */

article.is-urgent {
    position: relative;
    border-left: 4px solid #ff6b6b;
    padding-left: 16px;
}

article.is-urgent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff5252 100%);
}

/* ================================
   URGENT BADGE
   ================================ */

.urgent-badge-wrap {
    display: inline-block;
    margin-bottom: 12px;
}

.urgent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff6b6b;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-urgent 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.urgent-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@keyframes pulse-urgent {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* ================================
   URGENT BANNER
   ================================ */

.urgent-banner {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff5252 100%);
    color: #ffffff;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.3);
}

.urgent-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.urgent-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.urgent-banner-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.urgent-banner-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    animation: pulse-banner 1.5s ease-in-out infinite;
}

.urgent-banner-scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.urgent-banner-content-inner {
    display: flex;
    gap: 24px;
    animation: scroll-banner 20s linear infinite;
    white-space: nowrap;
}

.urgent-banner-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.urgent-banner-link:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.urgent-banner-separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    flex-shrink: 0;
}

.urgent-banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.urgent-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.urgent-banner-close:active {
    transform: scale(0.95);
}

.urgent-banner-close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@keyframes pulse-banner {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes scroll-banner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.urgent-banner.hidden {
    display: none;
}

/* ================================
   TICKER URGENT MODE
   ================================ */

.header-news-ticker.urgent-mode {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff5252 100%);
}

.header-news-ticker.urgent-mode .ticker-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.header-news-ticker.urgent-mode .ticker-content {
    color: #ffffff;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    article.is-urgent {
        padding-left: 12px;
        border-left-width: 3px;
    }

    .urgent-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .urgent-banner-inner {
        padding: 0 12px;
        gap: 12px;
    }

    .urgent-banner-label {
        font-size: 11px;
    }

    .urgent-banner-link {
        font-size: 13px;
    }

    .urgent-banner-close {
        width: 28px;
        height: 28px;
    }

    .urgent-banner-close svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    article.is-urgent {
        padding-left: 10px;
        border-left-width: 3px;
    }

    .urgent-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .urgent-banner-inner {
        padding: 0 8px;
        gap: 8px;
    }

    .urgent-banner-label {
        font-size: 10px;
    }

    .urgent-banner-link {
        font-size: 12px;
    }

    .urgent-banner-close {
        width: 24px;
        height: 24px;
    }

    .urgent-banner-close svg {
        width: 14px;
        height: 14px;
    }

    .urgent-banner-content-inner {
        gap: 16px;
        animation: scroll-banner 15s linear infinite;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */

.urgent-badge:focus-visible,
.urgent-banner-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
    .urgent-banner {
        display: none;
    }

    article.is-urgent {
        border-left: 2px solid #ff6b6b;
        padding-left: 12px;
    }

    .urgent-badge {
        background: #ff6b6b;
        color: #ffffff;
        animation: none;
    }
}
