/* Push News - Container Principal */
#push-news-container {
    position: fixed;
    z-index: 999999;
    max-width: 350px;
    width: 100%;
    padding: 10px;
}

/* Posições */
#push-news-container.push-news-top-left {
    top: 20px;
    left: 20px;
}

#push-news-container.push-news-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#push-news-container.push-news-top-right {
    top: 20px;
    right: 20px;
}

#push-news-container.push-news-middle-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

#push-news-container.push-news-middle-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

#push-news-container.push-news-bottom-left {
    bottom: 20px;
    left: 20px;
}

#push-news-container.push-news-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#push-news-container.push-news-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Rótulo colorido no topo da notificação */
.push-news-label {
    background: #2271b1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 8px 8px 0 0;
}

/* Notificação Individual */
.push-news-notification {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: relative;
}

.push-news-notification.push-news-show {
    opacity: 1;
    transform: translateY(0);
}

/* Link da Notificação */
.push-news-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    transition: background-color 0.2s ease;
}

.push-news-link:hover {
    background-color: #f5f5f5;
}

/* Imagem */
.push-news-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 12px;
    overflow: hidden;
    border-radius: 6px;
}

.push-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Conteúdo */
.push-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 28px; /* Espaço para o botão fechar não sobrepor o texto */
}

.push-news-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.push-news-date {
    font-size: 12px;
    color: #888;
}

/* Botão Fechar */
.push-news-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.push-news-close:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
    #push-news-container {
        max-width: 300px;
        padding: 5px;
    }

    #push-news-container.push-news-top-left,
    #push-news-container.push-news-middle-left,
    #push-news-container.push-news-bottom-left {
        left: 10px;
    }

    #push-news-container.push-news-top-right,
    #push-news-container.push-news-middle-right,
    #push-news-container.push-news-bottom-right {
        right: 10px;
    }

    #push-news-container.push-news-top-left,
    #push-news-container.push-news-top-center,
    #push-news-container.push-news-top-right {
        top: 10px;
    }

    #push-news-container.push-news-bottom-left,
    #push-news-container.push-news-bottom-center,
    #push-news-container.push-news-bottom-right {
        bottom: 10px;
    }

    .push-news-image {
        width: 60px;
        height: 60px;
    }

    .push-news-title {
        font-size: 13px;
    }
}

/* Banner Popup - Captura de Lead */
#push-news-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#push-news-banner-overlay.push-news-banner-show {
    opacity: 1;
    visibility: visible;
}

#push-news-banner-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: bannerSlideIn 0.4s ease-out;
}

@keyframes bannerSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#push-news-banner-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease;
}

#push-news-banner-image:hover {
    transform: scale(1.02);
}

#push-news-banner-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #333;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

#push-news-banner-close.push-news-banner-close-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0);
}

#push-news-banner-close.push-news-banner-close-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

#push-news-banner-close:hover {
    background: #f44336;
    color: #ffffff;
    transform: scale(1.1) rotate(90deg);
}

/* Contador Regressivo do Banner */
#push-news-banner-countdown {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.push-news-banner-countdown-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.push-news-banner-countdown-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    pointer-events: none;
}

#push-news-countdown-number {
    animation: countdownPulse 1s ease-in-out infinite;
}

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

/* Banner - Texto (título, subtítulo, botão) */
#push-news-banner-text {
    background: #fff;
    border-radius: 0 0 12px 12px;
    padding: 20px 24px;
    text-align: center;
}

.push-news-banner-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.push-news-banner-subtitle {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.push-news-banner-cta {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    width: 100%;
}

.push-news-banner-cta:hover {
    background: #135e96;
    transform: translateY(-1px);
}

/* Responsivo para Banner */
@media (max-width: 768px) {
    #push-news-banner-container {
        max-width: 95%;
    }

    #push-news-banner-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    #push-news-banner-countdown {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}
