/* === Business Theme Overrides ===
   Replaces playful premium animations with corporate business styling.
   Clean lines, navy palette, restrained interactions.
   Load AFTER admin.css. */

/* ── Reset playful animations ─────────────────────────────────── */

.glass-card {
    background: var(--bg-card) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin: 8px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: border-color 0.15s;
    animation: none;
}
.card-premium:hover {
    transform: none;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Kill shimmer on buttons */
.btn-shimmer { position: static; overflow: visible; }
.btn-shimmer::after { display: none; }
.btn-shimmer:active { opacity: 0.85; }

/* Kill floating orbs — not for business */
.bg-orbs { display: none; }
.bg-orb { display: none; }

/* Kill aurora hero — replace with clean header */
.aurora-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 18px;
    animation: none;
}
.aurora-hero::after { display: none; }

/* Kill glow pulse on credit badge */
.credit-badge-premium {
    background: rgba(67,97,238,0.08);
    border: 1px solid rgba(67,97,238,0.2);
    border-radius: 6px;
    padding: 5px 12px;
    font-weight: 600;
    color: var(--accent);
    font-size: 13px;
    animation: none;
}

/* ── Score display — professional ─────────────────────────────── */

.score-ring-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}
.score-ring {
    position: static;
    width: auto; height: auto;
}
.score-ring svg { display: none; }
.score-ring .track { display: none; }
.score-ring .fill { display: none; }
.score-ring .glow { display: none; }
.score-ring-value {
    position: static;
    transform: none;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    animation: none;
}
.score-ring-label { font-size: 12px; font-weight: 500; }

/* Kill score pop animation */
@keyframes score-pop {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ── Stagger animation — instant in business mode ─────────────── */

.stagger-item {
    animation: none;
    opacity: 1;
}
.stagger-item:nth-child(n) { animation-delay: 0s; }

/* ── Result sections — clean entrance ─────────────────────────── */

.result-section {
    animation: none;
}
.result-section:nth-child(n) { animation-delay: 0s; }

/* Kill confetti */
.confetti-canvas { display: none !important; }

/* ── Pulse dot — static ───────────────────────────────────────── */

.pulse-dot {
    animation: none;
    box-shadow: none;
}

/* ── Ripple effect — disable on desktop ───────────────────────── */

.ripple-effect { display: none; }

/* ── Stat chips — clean ───────────────────────────────────────── */

.stat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    animation: none;
}
.stat-chip i { font-size: 14px; color: var(--accent); }
.stat-chip .stat-value { color: var(--text); font-weight: 600; }

/* ── Mode chips — professional tabs ───────────────────────────── */

.mode-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
}

.mode-chip-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 11px;
}
.mode-chip-premium:hover {
    border-color: var(--accent);
    background: rgba(67,97,238,0.04);
}
.mode-chip-premium.selected {
    background: rgba(67,97,238,0.08);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: none;
    font-weight: 600;
}
.mode-chip-premium .mode-emoji { font-size: 20px; }
.mode-chip-premium .mode-label { font-weight: 500; font-size: 10px; }

/* ── Filter chips — clean pills ───────────────────────────────── */

.filter-chip-premium {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.filter-chip-premium.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: none;
}
[data-telegram-theme="light"] .filter-chip-premium.active { color: #fff; }

/* ── Input focus — clean blue ring ────────────────────────────── */

.input-glow:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(67,97,238,0.25) !important;
    outline: none;
}

/* ── Buttons — professional ───────────────────────────────────── */

.btn-gold {
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.15s;
}
.btn-gold:hover { background: #3651d4; color: #fff; }
.btn-gold:active { background: #2c44b8; }

/* ── Client nav — business bottom bar ─────────────────────────── */

.client-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    z-index: 100;
}
.client-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 6px 20px;
    transition: color 0.15s;
}
.client-nav .nav-item.active, .client-nav .nav-item:hover {
    color: var(--accent);
}
.client-nav .nav-item:active { transform: none; }
.client-nav .nav-item i { font-size: 18px; }

/* ── Skeleton — clean shimmer ─────────────────────────────────── */

.skeleton-premium {
    background: linear-gradient(
        90deg,
        var(--bg-input) 25%,
        rgba(255,255,255,0.03) 50%,
        var(--bg-input) 75%
    );
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}
.skeleton-premium.skel-card { height: 72px; margin-bottom: 8px; }

@keyframes skeleton-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* ── Empty state — clean ──────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 40px 20px;
}
.empty-state .empty-icon { font-size: 40px; opacity: 0.4; }
.empty-state .empty-title { font-size: 16px; font-weight: 600; color: var(--text); }
.empty-state .empty-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.empty-state-premium .empty-icon { animation: none; font-size: 40px; }

/* ── Page transitions — instant ───────────────────────────────── */

.page-transition { animation: none; }
.client-main.page-enter { opacity: 1; }
.client-main.page-enter-active { opacity: 1; transition: none; }

/* ── Toast — clean ────────────────────────────────────────────── */

.toast-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.toast-item.toast-error { border-left: 3px solid var(--danger); }
.toast-item.toast-success { border-left: 3px solid var(--success); }
.toast-item.toast-info { border-left: 3px solid var(--accent); }

/* ── Client header — business ─────────────────────────────────── */

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.client-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}
.client-brand i { font-size: 20px; color: var(--accent); }

/* ── History critique cards — business ────────────────────────── */

.critique-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 8px;
    transition: border-color 0.15s;
}
.critique-item-link { text-decoration: none; color: inherit; }
.critique-item-link:hover .critique-card { border-color: var(--accent); }
.critique-preview {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.critique-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.status-completed { color: var(--success); background: rgba(46,196,182,0.08); }
.status-processing, .status-queued { color: var(--warning); background: rgba(255,159,28,0.08); }
.status-failed { color: var(--danger); background: rgba(231,29,54,0.08); }

/* ── Bottom sheet (critique page) — clean ─────────────────────── */

.sheet-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    z-index: 201;
    padding: 12px 0 24px;
    transition: transform 0.2s ease;
    max-height: 70vh;
    overflow-y: auto;
}
.sheet-panel.active { transform: translateX(-50%) translateY(0); }
.sheet-handle {
    width: 36px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 12px;
}
.sheet-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    transition: background 0.1s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.sheet-option:active { background: var(--bg-input); }
.sheet-option .sheet-emoji { font-size: 22px; }
.sheet-option .sheet-check { margin-left: auto; color: var(--accent); opacity: 0; }
.sheet-option.selected .sheet-check { opacity: 1; }
.sheet-cancel {
    display: block;
    width: calc(100% - 32px);
    margin: 8px 16px 0;
    padding: 12px;
    background: var(--bg-input);
    border: none;
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Character bar ────────────────────────────────────────────── */

.char-bar {
    height: 2px;
    border-radius: 1px;
    background: var(--border);
    margin-top: 4px;
    overflow: hidden;
}
.char-bar-fill {
    height: 100%;
    border-radius: 1px;
    transition: width 0.15s;
    background: var(--accent);
}
.char-bar-fill.warning { background: var(--warning); }
.char-bar-fill.danger { background: var(--danger); }

/* ── Mode trigger (critique page) ─────────────────────────────── */

.mode-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.mode-trigger:active { border-color: var(--accent); }

/* ── Pull-to-refresh ──────────────────────────────────────────── */

.pull-indicator {
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s, padding 0.15s;
    color: var(--text-muted);
    font-size: 12px;
}
.pull-indicator.refreshing { max-height: 36px; padding: 6px 0; }
