/* Vladosland Reborn — страница с модами и эмоциями */

:root {
  --bg: #0b0f10;
  --bg-2: #0e1415;
  --panel: #131a1c;
  --panel-2: #182123;
  --line: #243134;
  --line-soft: #1c2729;
  --text: #e8efec;
  --muted: #8ea3a0;
  --accent: #43d17c;
  --accent-2: #2aa85e;
  --accent-soft: rgb(67 209 124 / 14%);
  --warn: #f2c14e;
  --radius: 16px;
  --shadow: 0 20px 45px -28px rgb(0 0 0 / 95%);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 clamp(16px, 4vw, 48px) 48px;
  background:
    radial-gradient(1100px 520px at 12% -10%, #12241c 0%, transparent 62%),
    radial-gradient(900px 460px at 96% 0%, #101f27 0%, transparent 58%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* мягкие цветные пятна на фоне */
.glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
  pointer-events: none;
}
.glow-a { width: 420px; height: 420px; top: -140px; left: -80px; background: #1f6b3f; }
.glow-b { width: 380px; height: 380px; top: 12%; right: -120px; background: #1d5a72; }

/* ---------- шапка ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 88px) 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  font: 700 11px/1 var(--mono);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 34px rgb(67 209 124 / 35%);
}

.lead {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--muted);
}

/* ---------- две колонки ---------- */

.columns {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
  align-items: start;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.chip {
  font: 500 12px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease;
}
.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  justify-content: center;
  color: #07130c;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -14px rgb(67 209 124 / 90%);
}
.btn-primary:hover { transform: translateY(-1px); background: linear-gradient(180deg, #4fdd88, #2fbc68); }
.btn-primary:active { transform: translateY(0); }
.btn-note { font: 500 12px/1 var(--mono); opacity: .7; }

.btn-ghost {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-dl {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  white-space: nowrap;
}
.btn-dl:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- списки ---------- */

.list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(58vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
}
.list::-webkit-scrollbar { width: 9px; }
.list::-webkit-scrollbar-track { background: transparent; }
.list::-webkit-scrollbar-thumb { background: #2b3a3d; border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
.list::-webkit-scrollbar-thumb:hover { background: #3b5054; background-clip: content-box; }

.placeholder,
.empty,
.note {
  margin: 0;
  padding: 16px 4px;
  color: var(--muted);
  font-size: 14px;
}
.note { color: var(--warn); font-size: 13px; }
.empty code,
.howto code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #0a0e0f;
  border: 1px solid var(--line-soft);
  font: 500 .88em var(--mono);
}

/* строка мода */
.mod {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.mod:hover { background: var(--panel-2); border-color: var(--line-soft); }
.mod-name {
  font: 500 13.5px/1.4 var(--mono);
  word-break: break-all;
}
.mod-meta {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* эмоция */
.emote {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
}
.emote:hover { background: var(--panel-2); border-color: var(--line-soft); }
.emote img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #0a0e0f;
}
.emote-name { font-size: 14px; font-weight: 600; }
.emote-text {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* метка new */
.badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--accent);
  color: #07130c;
  font: 700 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pop .4s ease-out;
}

@keyframes pop {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* подсветка только что появившихся файлов */
.is-fresh { animation: fresh 2.6s ease-out; }
@keyframes fresh {
  0% { background: var(--accent-soft); border-color: var(--accent); }
  100% { background: transparent; border-color: transparent; }
}

/* ---------- подвал ---------- */

.foot {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status {
  margin: 0;
  font: 500 12px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.howto { margin: 0; font-size: 13px; color: var(--muted); }

.spin { display: inline-block; font-size: 15px; }
.is-loading .spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- всплывающее сообщение ---------- */

.toast {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: min(90vw, 520px);
  padding: 12px 18px;
  border: 1px solid #6b3b3b;
  border-radius: 12px;
  background: #241618;
  color: #ffd9d9;
  font-size: 14px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; }
  .list { max-height: none; }
}
