/* ==========================================================================
   App update dialog + web banner (Slate Developer Theme)
   ========================================================================== */

.update-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.92);
    z-index: 10060;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    padding: 20px;
    box-sizing: border-box;
}

.update-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(147, 26, 35, 0.45);
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 0 50px rgba(147, 26, 35, 0.25);
    animation: slideUp 0.3s ease-out;
}

.update-hero {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.update-rocket {
    font-size: 3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(147, 26, 35, 0.3), var(--bg-surface-hover));
    border: 1px solid var(--border-color);
}

.update-force-badge {
    position: absolute;
    bottom: -8px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 999px;
    border: 2px solid var(--bg-card);
    white-space: nowrap;
}

.update-title {
    margin: 14px 0 12px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.update-versions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    direction: ltr;
}

.update-ver {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.update-ver-old {
    color: var(--text-secondary);
    background: var(--bg-main);
}

.update-ver-new {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.update-ver-arrow {
    color: var(--primary);
    font-size: 0.85rem;
}

.update-notes {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 18px;
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-line;
}

.update-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-btn {
    padding: 13px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.update-btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.update-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.update-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.update-btn-ghost:hover {
    background: var(--bg-surface-hover);
}

.update-btn-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px;
    font-family: 'Cairo', sans-serif;
}

.update-btn-link:hover {
    color: var(--primary);
}

/* ---------- Web update banner (non-forced web updates) ---------- */
.update-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 20px 0;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(147, 26, 35, 0.25), rgba(147, 26, 35, 0.08));
    border: 1px solid rgba(147, 26, 35, 0.45);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.update-banner .update-banner-icon {
    font-size: 1.3rem;
    flex: 0 0 auto;
}

.update-banner .update-banner-text {
    flex: 1;
    min-width: 0;
}

.update-banner .update-banner-btn {
    flex: 0 0 auto;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}

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

.update-banner .update-banner-dismiss {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

.update-banner .update-banner-dismiss:hover {
    color: var(--text-primary);
}

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