﻿/* main.css - base layout and global theme */

:root {
  --bg-deep: #05070d;
  --bg-mid: #080d17;
  --bg-surface: rgba(19, 25, 38, 0.72);
  --bg-surface-strong: rgba(22, 30, 46, 0.84);
  --line: rgba(156, 182, 228, 0.28);
  --line-soft: rgba(134, 161, 203, 0.16);

  --text: #ecf1fb;
  --muted: #9aa9c4;
  --accent: #8eb5ff;
  --accent-soft: rgba(142, 181, 255, 0.2);
  --gold: #ffd44f;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 42px rgba(2, 6, 14, 0.7);

  --pad: 14px;
  --tabbar-h: 84px;
  --tile-size: 86px;
  --bgSheenOpacity: 0.16;
  --bgBreathOpacity: 0.24;
  --bgBreathBlur: 22px;
  --bgSheenBlur: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(880px 420px at 50% -10%, rgba(124, 156, 214, 0.16), transparent 74%),
    radial-gradient(920px 520px at 50% 118%, rgba(54, 79, 127, 0.14), transparent 72%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-mid));
}

body::before {
  content: none;
  position: fixed;
  inset: 0;
  background: none;
  opacity: 0;
  filter: none;
  pointer-events: none;
  animation: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-radial-gradient(circle at 0 0, rgba(205, 223, 255, 0.08) 0 1.2px, transparent 1.2px 62px),
    radial-gradient(920px 480px at 50% -12%, rgba(132, 169, 231, 0.08), transparent 70%);
  background-size: var(--tile-size) var(--tile-size), 100% 100%;
  opacity: 0.22;
  pointer-events: none;
  animation: patternDrift 28s linear infinite;
}

.app {
  min-height: 100vh;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(11px + env(safe-area-inset-top)) 12px 10px;
  background:
    linear-gradient(180deg, rgba(13, 20, 33, 0.98), rgba(8, 13, 23, 0.98)),
    linear-gradient(90deg, rgba(130, 165, 224, 0.12), rgba(130, 165, 224, 0));
  border-bottom: 1px solid rgba(121, 153, 210, 0.28);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 11px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #bed6ff 0%, #7da9ef 100%);
  box-shadow:
    0 0 0 1px rgba(183, 208, 252, 0.32),
    0 0 16px rgba(116, 161, 242, 0.34);
}

.brand__text {
  min-width: 0;
}

.brand__title {
  font-family: "SF Pro Display", "SF Pro Text", Manrope, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(19px, 4.7vw, 25px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__title--luxe {
  color: #e5ecfa;
}

.brand__subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__actions {
  display: flex;
  gap: 8px;
}

.content {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 12px var(--pad) 24px;
}

.page {
  display: none;
  animation: fadeIn 0.26s ease;
}

.page.is-active {
  display: block;
}

.section-head {
  margin: 8px 2px 12px;
}

.section-head__title {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  color: #e9effb;
}

.section-head__hint {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-list--showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-list--triple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(136, 165, 214, 0.28);
  background: rgba(20, 28, 43, 0.82);
  display: flex;
  gap: 10px;
  align-items: center;
}

.note__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 212, 79, 0.18);
}

.note__text {
  color: #b3c0d8;
  font-size: 13px;
  line-height: 1.35;
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-links {
  margin-top: 2px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.is-hidden {
  display: none !important;
}

.page.is-active > * {
  animation: fadeInUp 0.34s ease both;
}

.page.is-active > *:nth-child(2) {
  animation-delay: 0.04s;
}

.page.is-active > *:nth-child(3) {
  animation-delay: 0.08s;
}
