/* =============================
   Update Banner Styles
   ============================= */

.update-banner {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: top 0.4s var(--ease);
}

.update-banner.active {
    top: 0;
}

.update-banner-content {
    max-width: 600px;
    margin: 0 auto;
}

.update-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.update-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-icon svg {
    width: 100%;
    height: 100%;
}

.update-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.update-title strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.update-version {
    font-size: 13px;
    color: var(--text-secondary);
}

.update-changes {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 13px;
}

.update-changes strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.update-changes ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.update-changes li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.update-changes li:last-child {
    margin-bottom: 0;
}

.update-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
}

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

/* Mobile responsiveness */
@media (max-width: 480px) {
    .update-banner {
        padding: 12px;
    }

    .update-banner-header {
        margin-bottom: 10px;
    }

    .update-icon {
        font-size: 28px;
    }

    .update-title strong {
        font-size: 15px;
    }

    .update-actions {
        width: 100%;
        gap: 6px;
        flex-direction: column;
    }

    .update-actions button {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        font-size: 13px;
        padding: 10px 12px;
        text-align: center;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .update-banner {
        padding: 10px;
    }

    .btn-sm {
        font-size: 11px;
        padding: 7px 10px;
    }

    .update-actions {
        gap: 5px;
    }
}

/* Safe area for iOS notch */
@supports (padding: max(0px)) {
    .update-banner {
        padding-top: max(16px, env(safe-area-inset-top));
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}
