/* taynichok.com — aggregator catalog styles (mobile-first) */
:root {
  --bg: #0d1017;
  --bg-2: #12161f;
  --card: #161b26;
  --border: #262e3d;
  --text: #e9edf3;
  --muted: #97a2b1;
  --accent: #4f8cff;
  --accent-2: #7aa5ff;
  --ok: #37b26c;
  --warn: #d9a53a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: #e9edf2;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 19, 28, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-wrap,
.header-wrap.nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.container.header-wrap { padding-top: 12px; padding-bottom: 12px; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }

.logo { font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; }
.logo-dot { color: var(--accent); }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #aeb8c6; text-decoration: none; font-size: .92rem;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: #fff; background: #1b2230; text-decoration: none; }
.nav a.active { color: #fff; background: #1d2942; }
.nav a.dim { opacity: .6; }

.online-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; color: #6ee7a0;
  background: #12251a; border: 1px solid #244433;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #37d67a; box-shadow: 0 0 0 0 rgba(55, 210, 120, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 210, 120, .55); }
  70% { box-shadow: 0 0 0 7px rgba(55, 210, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 210, 120, 0); }
}

.tagline { color: #8a94a3; font-size: .85rem; margin: 4px 0 0; }

/* ---------- live statbar ---------- */
.statbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 18px 0 4px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.stat strong { display: block; font-size: 1.35rem; color: #fff; }
.stat span { font-size: .78rem; color: #8a94a3; }

/* ---------- hero ---------- */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: 1.55rem; line-height: 1.3; margin: 0 0 12px; color: #fff; }
.hero p { color: #a7b1c0; margin: 8px 0; }
.cats-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  padding: 6px 12px; border-radius: 999px; font-size: .88rem;
  background: #171e2b; border: 1px solid var(--border); color: #aeb8c6;
  text-decoration: none;
}
.chip.active, .chip:hover { border-color: #33518f; color: #cfe0ff; text-decoration: none; }
.chip.dim { opacity: .6; }

.section-title { margin: 26px 0 4px; font-size: 1.2rem; color: #fff; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 16px 0;
}
.card--mega { border-color: #2c3b5e; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 1.3rem; letter-spacing: .5px; color: #fff; }
.card-desc { color: #a7b1c0; margin: 10px 0; }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #9aa6b6; font-size: .9rem; margin: 4px 0 10px; }

.links-title {
  margin: 16px 0 6px; font-size: .74rem; letter-spacing: 1.2px;
  text-transform: uppercase; color: #8a94a3;
}
.links { list-style: none; margin: 0; padding: 0; }
.links li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px dashed #222a38;
}
.links li:last-child { border-bottom: none; }
.link-name { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; word-break: break-all; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.tag {
  font-size: .78rem; color: #9db4e0;
  background: #16223a; border: 1px solid #26375a;
  padding: 3px 10px; border-radius: 999px;
}

.card-note { font-size: .88rem; color: #d9b45a; margin: 10px 0 0; }
.card-more { display: inline-block; margin-top: 10px; font-weight: 600; }

/* ---------- status badges ---------- */
.status {
  font-size: .74rem; padding: 3px 10px; border-radius: 999px;
  white-space: nowrap; border: 1px solid transparent; font-weight: 600;
}
.status--ok   { color: #4ade80; border-color: #2c5e3f; background: #122419; }
.status--warn { color: #fbd24e; border-color: #5e4d1f; background: #241d0e; }
.status--bad  { color: #f87171; border-color: #5e2c2c; background: #261313; }
.status--soon { color: #9aa4b2; border-color: #333c4b; background: #1a2029; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 9px;
  background: linear-gradient(180deg, #2a4bd8, #1e3ab0);
  color: #fff !important;
  font-size: .86rem; font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn--ghost, .btn--ghost:hover {
  background: #1a2230; color: #aeb8c6 !important; border: 1px solid var(--border);
}

/* ---------- grids ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid-3 .card { margin: 0; }
.card--soon { opacity: .72; }
.card--soon .card-desc { margin: 6px 0 0; }

/* ---------- features ---------- */
.features { padding: 26px 0 6px; }
.features .grid-3 { margin-top: 12px; }
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.feature p { margin: 6px 0 0; color: #9aa6b6; font-size: .92rem; }
.feature strong { color: #e9edf2; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mirror-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .92rem; min-width: 520px; }
.mirror-table th, .mirror-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mirror-table th { color: #8a94a3; font-weight: 600; white-space: nowrap; }

/* ---------- faq ---------- */
.faq { padding: 10px 0 30px; }
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; color: #dbe3ee; }
.faq p { color: #a7b1c0; margin: 8px 0 2px; }

.breadcrumbs { color: #7f8b9b; font-size: .88rem; margin-top: 18px; }
.breadcrumbs a { color: #7fa4e8; }
.lead { color: #a7b1c0; max-width: 680px; }

.back-link { display: inline-block; margin: 14px 0; color: #7fa4e8; }

/* ---------- cats page ---------- */
.cat-card { text-align: center; }
.cat-emoji { font-size: 3rem; line-height: 1; margin-bottom: 6px; }
.cat-card p { font-size: .9rem; color: #9aa6b6; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 26px;
  color: #828d9c;
  font-size: .88rem;
  margin-top: 20px;
}
.site-footer a { color: #7fa4e8; }

/* ---------- onion modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 8, 14, .78);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: #161c28; border: 1px solid #2a3345;
  border-radius: 14px; padding: 22px; max-width: 420px; width: 100%;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
}
.modal h3 { margin: 0 0 8px; }
.modal p { color: #a7b1c0; margin: 0 0 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.btn--ghost {
  background: #1a2230; color: #aeb8c6 !important; border: 1px solid var(--border);
}

/* ---------- desktop ---------- */
@media (min-width: 640px) {
  .statbar { grid-template-columns: repeat(4, 1fr); padding-top: 28px; }
  .hero h1 { font-size: 2rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .card { padding: 22px 24px; }
  .container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .online-badge { order: 3; }
  .nav { order: 2; }
  .links li { align-items: flex-start; flex-direction: column; }
  .links li .btn { width: 100%; text-align: center; }
}
