/* Aurora AI-Vision — компоненты, без glow */

/* Логотип — тренд 2026: геометрический шрифт, градиент, марка */
.brand-wordmark,
.landing-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 35%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}
.brand-wordmark::before,
.landing-nav .brand::before {
  content: '';
  width: 4px;
  height: 1.25em;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  flex-shrink: 0;
}
.brand-wordmark:hover,
.landing-nav .brand:hover {
  filter: brightness(1.15);
  text-decoration: none;
}

.glow-card {
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.glow-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.14);
}

.neon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-weight: 500;
  font-family: var(--font-sans);
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.neon-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.neon-btn:active { transform: translateY(0); opacity: 0.95; }
.neon-btn:disabled, .neon-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.neon-btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.neon-btn.ghost:hover {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: var(--accent);
}

.cosmic-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cosmic-input::placeholder { color: var(--text-muted); }
.cosmic-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-group { margin-bottom: var(--space-5); }
.form-error {
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius);
}
.form-error[hidden] { display: none; }

.cosmic-file-wrap input[type="file"] {
  position: absolute;
  width: 0.1px; height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.cosmic-file-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-solid);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cosmic-file-label:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--text);
}

.aurora-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  padding: var(--space-4) 0;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-1);
  z-index: 50;
}
.aurora-sidebar a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin: 0 var(--space-2);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.aurora-sidebar a .sidebar-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: inline-block;
  text-align: center;
}
.aurora-sidebar a:hover {
  color: var(--accent);
  background: var(--accent-muted);
}
.aurora-sidebar a.active {
  color: var(--accent);
  background: var(--accent-muted);
}

.cosmic-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.cosmic-topbar .topbar-brand {
  text-decoration: none;
  font-size: 1.125rem;
}
.cosmic-topbar .topbar-brand:hover { text-decoration: none; }
.cosmic-topbar .gpu-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.cosmic-topbar .profile {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.cosmic-topbar .profile a { color: var(--text-secondary); }
.cosmic-topbar .profile a:hover { color: var(--text); }

.status-orb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.status-orb.warning { background: var(--warning); }
.status-orb.error { background: var(--error); }

.detection-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.detection-box, .detection-overlay .box {
  position: absolute;
  border: 2px solid var(--detection-border);
  box-shadow: 0 0 14px var(--detection-glow);
  border-radius: 4px;
  color: var(--detection-border);
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--detection-bg);
  padding: 2px 6px;
}

.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}
.toast {
  padding: var(--space-4) var(--space-5);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: fade-in-up 0.3s var(--ease-out);
  pointer-events: auto;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--accent); }

.copyable-block {
  padding: var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  word-break: break-all;
  color: var(--text);
}
.copyable-block .copy-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: var(--space-2); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
