/* =========================================================
   LUMUS BANNER APOIA.SE - ESTILOS E ANIMAÇÕES
   ========================================================= */

#lumus-apoia-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    background: linear-gradient(135deg, rgba(15, 12, 35, 0.96), rgba(30, 20, 60, 0.96));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 10px 16px;
    box-sizing: border-box;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

#lumus-apoia-banner.lumus-banner-visible {
    transform: translateY(0);
    opacity: 1;
}

.lumus-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.lumus-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.lumus-banner-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.25) 0%, rgba(212, 175, 55, 0.05) 70%);
    border: 1px solid rgba(243, 156, 18, 0.4);
    font-size: 18px;
    flex-shrink: 0;
    animation: lumusPulse 2.5s infinite ease-in-out;
}

.lumus-banner-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lumus-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1c40f;
    letter-spacing: 0.2px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lumus-banner-desc {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lumus-banner-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lumus-banner-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.lumus-banner-cta:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
    background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.lumus-banner-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #9ca3af;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.lumus-banner-close:hover {
    background: rgba(231, 76, 60, 0.8);
    color: #ffffff;
    border-color: rgba(231, 76, 60, 0.9);
    transform: rotate(90deg);
}

/* Barra do temporizador de 15 segundos */
.lumus-banner-timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f1c40f, #f39c12, #e67e22);
    width: 100%;
    transform-origin: left center;
    z-index: 1;
}

.lumus-banner-timer-active {
    animation: lumusTimerShrink 15s linear forwards;
}

.lumus-banner-paused .lumus-banner-timer-bar {
    animation-play-state: paused !important;
}

/* Miniatura de Prévia no WP Admin */
.lumus-admin-preview-box {
    background: linear-gradient(135deg, #0f0c23, #1e143c);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 25px;
}

.lumus-admin-preview-box .lumus-banner-content {
    transform: none !important;
    opacity: 1 !important;
}

/* Animações Keyframes */
@keyframes lumusPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(243, 156, 18, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

@keyframes lumusTimerShrink {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Responsividade para Telas Menores */
@media (max-width: 768px) {
    #lumus-apoia-banner {
        padding: 8px 12px;
    }

    .lumus-banner-desc {
        display: none;
    }

    .lumus-banner-title {
        font-size: 13px;
    }

    .lumus-banner-cta {
        padding: 6px 12px;
        font-size: 12px;
    }
}
