/* update/styles.css - Aviso de nova versão do site */

.update-banner {
    position: fixed;
    top: 86px;
    left: 50%;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    background: var(--bg-secondary, #171618);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md, 3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -20px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: auto;
}

.update-banner.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.update-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md, 3px);
    background: rgba(211, 33, 220, 0.12);
    color: var(--accent-primary);
    font-size: 1rem;
}

.update-banner-icon i {
    animation: updateSpin 1.6s linear infinite;
}

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

.update-banner-text strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.update-banner-countdown {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.2;
}

.update-banner-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md, 3px);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.update-banner-btn:hover {
    background: var(--accent-secondary);
}

.update-banner-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

@keyframes updateSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Respeita quem pediu menos animação no sistema */
@media (prefers-reduced-motion: reduce) {
    .update-banner {
        transition: none;
    }

    .update-banner-icon i {
        animation: none;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .update-banner {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
        transform: translateY(20px);
        gap: 12px;
        padding: 12px;
    }

    .update-banner.show {
        transform: translateY(0);
    }

    .update-banner-text strong {
        font-size: 0.85rem;
    }

    .update-banner-countdown {
        font-size: 0.75rem;
    }

    .update-banner-btn {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .update-banner-icon {
        display: none;
    }
}

/* =======================================
   TEMA CLARO - AVISO DE ATUALIZAÇÃO
   ======================================= */

[data-theme="light"] .update-banner {
    background: var(--card-bg);
    box-shadow: 0 8px 32px rgba(211, 33, 220, 0.15);
}
