/* ===== ОБЩИЕ ПЕРЕМЕННЫЕ И СТИЛИ — UNLOCK TOOLS
       Современный чистый стиль (без терминального наследия) ===== */

:root {
  --bg: #0E1220;
  --bg-alt: #171D30;
  --bg-card: #1D2438;
  --bg-hover: #2A3452;
  --border: rgba(150, 175, 230, 0.16);
  --border-light: rgba(150, 175, 230, 0.1);
  --accent: #5AA6FF;
  --accent-soft: rgba(90, 166, 255, 0.13);
  --accent-green: #34C78A;
  --accent-green-soft: rgba(52, 199, 138, 0.13);
  --accent-orange: #FFB35C;
  --accent-orange-soft: rgba(255, 179, 92, 0.13);
  --accent-red: #FF6B6B;
  --accent-red-soft: rgba(255, 107, 107, 0.13);
  --accent-purple: #B58CFF;
  --accent-purple-soft: rgba(181, 140, 255, 0.13);
  --text: #F2F6FF;
  --text-muted: #A6B2CE;
  --text-dim: #6A769A;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 28px rgba(3, 6, 16, 0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-hover: 0 16px 40px rgba(3, 6, 16, 0.6);

  --transition: 0.2s ease;

  /* Единый современный шрифт вместо моноширинного */
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Для обратной совместимости: всё, что раньше использовало mono, теперь UI */
  --font-mono: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(90, 166, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(181, 140, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.page-shell {
  width: 100%;
  max-width: 1400px;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-ui);
  transition: color var(--transition);
}
a:hover {
  color: #8BC8FF;
  text-decoration: underline;
}

/* Скроллбар */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: #3A4A78; border-radius: 6px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: #4D5F96; }

/* Выделение */
::selection {
  background: rgba(90, 166, 255, 0.3);
  color: var(--text);
}

/* ===== СОВРЕМЕННЫЙ ЛОГОТИП (совместимость с term-logo) ===== */
.term-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.term-logo .prompt {
  /* терминальный $ больше не показываем */
  display: none;
}
.term-logo .path {
  /* неон-градиент вместо консольного пути */
  background: linear-gradient(120deg, #8BC8FF, var(--accent) 45%, var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.term-logo .cursor {
  /* мигающий консольный курсор убираем */
  display: none;
}

/* ===== БЕЙДЖ (совместимость с term-badge) ===== */
.term-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  border: 1px solid rgba(52, 199, 138, 0.25);
}
.term-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== ФЛАГ ===== */
.lang-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-ui);
}
.lang-flag-box {
  width: 17px;
  height: 12px;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.95;
  flex-shrink: 0;
}
.lang-flag-box-inner {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(to bottom, #0057b7 50%, #ffd700 50%);
}
.lang-flag .code {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 11px;
}

/* ===== СЛОГАН (совместимость с term-slogan) ===== */
.term-slogan {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.term-slogan .arrow {
  color: var(--accent-green);
  font-weight: 700;
}
.term-slogan strong {
  color: var(--accent);
  font-weight: 600;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.term-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.term-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.term-header .dot-red { background: var(--accent-red); }
.term-header .dot-yellow { background: var(--accent-orange); }
.term-header .dot-green { background: var(--accent-green); }

/* ===== АНИМАЦИЯ ===== */
.fade-in {
  animation: fadeIn 0.3s ease-out both;
}

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

/* ===== СТАТУС-БАР ===== */
.status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 12px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.status-bar .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
}
.status-bar .status-dot.warning {
  background: var(--accent-orange);
}
