/* ============================================================
   TAU.GE - Shared stylesheet (index / recent / api pages)
   ============================================================ */

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

html, body {
  width: 100%;
  min-height: 100vh;
  background: #02060a;
  font-family: 'Courier New', 'Consolas', monospace;
  color: #c8ffd8;
  overflow-x: hidden;
}

/* ====== Ambient page background ====== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(40, 180, 110, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 200, 140, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 200, 140, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #06141a 0%, #02080c 100%);
  z-index: -2;
}

.net-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* ====== Browser frame ====== */
.browser {
  max-width: 1100px;
  width: calc(100% - 32px);
  margin: 32px auto;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1418 0%, #050b0e 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(80, 255, 160, 0.08),
    inset 0 0 60px rgba(0, 200, 130, 0.05);
  position: relative;
}

.titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
  background: linear-gradient(180deg, #1a2630 0%, #0e1820 100%);
  border-bottom: 1px solid rgba(80, 255, 160, 0.08);
}

.traffic { display: flex; gap: 8px; }
.traffic span { width: 13px; height: 13px; border-radius: 50%; display: block; }
.traffic .r { background: #ff5f57; box-shadow: 0 0 6px #ff5f5788; }
.traffic .y { background: #ffbd2e; box-shadow: 0 0 6px #ffbd2e88; }
.traffic .g { background: #28c840; box-shadow: 0 0 6px #28c84088; }

.nav-arrows { display: flex; gap: 4px; color: #6a8a78; font-size: 14px; }
.nav-arrows button {
  background: transparent;
  border: none;
  color: #6a8a78;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
}
.nav-arrows button:hover { color: #aef0c4; background: rgba(80,255,160,0.05); }

.urlbar {
  flex: 1;
  height: 22px;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
  border: 1px solid rgba(80,255,160,0.05);
  color: #6a8a78;
  font-size: 11px;
  line-height: 22px;
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.reload { color: #6a8a78; font-size: 16px; cursor: pointer; }

/* ====== Wallet pill in titlebar ====== */
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #aef0c4;
  background: rgba(0, 30, 18, 0.6);
  border: 1px solid rgba(80,255,160,0.2);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wallet-pill:hover { border-color: #2ddc7a; box-shadow: 0 0 10px rgba(80,255,160,.3); }
.wallet-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6a8a78;
  flex: 0 0 auto;
}
.wallet-pill.online .dot { background: #2ddc7a; box-shadow: 0 0 7px #2ddc7a; }
.wallet-pill.wrong-net .dot { background: #ffbd2e; box-shadow: 0 0 7px #ffbd2e; }

/* ====== Main content ====== */
.stage {
  position: relative;
  padding: 40px 20px 30px;
  min-height: 560px;
  overflow: hidden;
}

.brand {
  text-align: center;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #6fffa3;
  text-shadow:
    0 0 6px rgba(110, 255, 170, 0.9),
    0 0 24px rgba(80, 255, 160, 0.6),
    0 0 60px rgba(40, 200, 120, 0.4);
  margin-bottom: 6px;
  font-family: 'Trebuchet MS', sans-serif;
}
.brand a { color: inherit; text-decoration: none; }

.page-title {
  text-align: center;
  font-size: 30px;
  color: #6fffa3;
  font-family: 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(80,255,160,.5);
  margin-bottom: 6px;
}
.page-sub {
  text-align: center;
  color: #6a8a78;
  font-size: 12px;
  letter-spacing: 0.8px;
  margin-bottom: 26px;
}

/* ====== Nav links (Latest / API) ====== */
.page-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13px;
}
.page-nav a, .page-nav span {
  color: #b8e8c8;
  text-decoration: none;
  border: 1px solid rgba(80,255,160,0.18);
  border-radius: 999px;
  padding: 6px 16px;
  transition: all .15s ease;
}
.page-nav a:hover {
  color: #04240f;
  background: linear-gradient(180deg, #2ddc7a 0%, #1a9a52 100%);
  border-color: #2ddc7a;
  box-shadow: 0 0 12px rgba(80,255,160,.5);
}
.page-nav .current {
  color: #6fffa3;
  border-color: #2ddc7a;
  background: rgba(45, 220, 122, 0.08);
}
.page-nav .count { color: #6a8a78; border-style: dashed; }

/* ====== Plant / logo ====== */
.plant-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  width: 360px;
  max-width: 80%;
}

.plant-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  border: 1.5px dashed rgba(110, 255, 170, 0.45);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(40, 180, 110, 0.08) 0%, transparent 65%),
    rgba(0, 20, 12, 0.35);
  box-shadow:
    0 0 24px rgba(80, 255, 160, 0.12),
    inset 0 0 24px rgba(80, 255, 160, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: floatY 4.5s ease-in-out infinite;
  backdrop-filter: blur(2px);
}
.plant-placeholder::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(110,255,170,0.15), transparent 40%, rgba(110,255,170,0.1));
  pointer-events: none;
  z-index: -1;
}
.ph-inner { text-align: center; padding: 16px; }
.ph-icon {
  margin-bottom: 10px;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(110, 255, 170, 0.4));
}
.ph-icon img { width: 100%; max-width: 256px; height: auto; }
.ph-text { color: #aef0c4; font-size: 15px; letter-spacing: 0.5px; margin-bottom: 4px; }
.ph-sub { color: #6a8a78; font-size: 11px; letter-spacing: 0.8px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.floating-symbols { position: absolute; inset: 0; pointer-events: none; }
.floating-symbols span {
  position: absolute;
  color: #6fffa3;
  font-size: 16px;
  opacity: 0.7;
  text-shadow: 0 0 6px rgba(110,255,170,0.5);
  animation: float 4s ease-in-out infinite;
}
.floating-symbols span:nth-child(1) { left: 8%;  top: 55%; animation-delay: 0s; }
.floating-symbols span:nth-child(2) { left: 18%; top: 40%; animation-delay: .3s; }
.floating-symbols span:nth-child(3) { left: 28%; top: 60%; animation-delay: .6s; }
.floating-symbols span:nth-child(4) { left: 38%; top: 35%; animation-delay: .9s; font-weight: 700; }
.floating-symbols span:nth-child(5) { left: 60%; top: 38%; animation-delay: 1.1s; }
.floating-symbols span:nth-child(6) { left: 70%; top: 60%; animation-delay: .5s; }
.floating-symbols span:nth-child(7) { left: 78%; top: 45%; animation-delay: 1.4s; }
.floating-symbols span:nth-child(8) { left: 88%; top: 55%; animation-delay: .2s; }
.floating-symbols span:nth-child(9) { left: 14%; top: 70%; animation-delay: 1.6s; }
.floating-symbols span:nth-child(10){ left: 82%; top: 70%; animation-delay: .8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50%      { transform: translateY(-8px); opacity: .9; }
}

/* ====== Search / submit bar ====== */
.search-wrap {
  margin: 28px auto 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  background: rgba(0, 20, 12, 0.6);
  border: 1.5px solid #2ddc7a;
  border-radius: 999px;
  padding: 6px 6px 6px 28px;
  box-shadow:
    0 0 18px rgba(80, 255, 160, 0.45),
    0 0 40px rgba(40, 200, 120, 0.25),
    inset 0 0 18px rgba(80, 255, 160, 0.1);
  position: relative;
  z-index: 2;
}
.search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #d8ffe8;
  font-size: 18px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  min-width: 0;
}
.search-wrap input::placeholder { color: #aef0c4; opacity: 0.85; }

.custom-code-wrap {
  max-width: 720px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6a8a78;
  position: relative;
  z-index: 2;
}
.custom-code-wrap input {
  background: rgba(0, 20, 12, 0.6);
  border: 1px solid rgba(80,255,160,0.22);
  border-radius: 999px;
  padding: 7px 16px;
  color: #d8ffe8;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  outline: none;
  width: 220px;
}
.custom-code-wrap input:focus { border-color: #2ddc7a; box-shadow: 0 0 10px rgba(80,255,160,.3); }
.code-status { min-height: 16px; letter-spacing: .5px; }
.code-status.ok   { color: #2ddc7a; }
.code-status.busy { color: #ffbd2e; }
.code-status.bad  { color: #ff7a6e; }

.add-btn {
  background: linear-gradient(180deg, #2ddc7a 0%, #1a9a52 100%);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  color: #04240f;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 0 14px rgba(80, 255, 160, 0.6),
    inset 0 0 6px rgba(255,255,255,0.2);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  font-family: 'Trebuchet MS', sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
}
.add-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(110,255,180,0.8),
    inset 0 0 8px rgba(255,255,255,0.3);
}
.add-btn:disabled { opacity: .55; cursor: not-allowed; }
.add-btn .plus { font-size: 16px; }
.add-btn .sprout {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23042'><path d='M12 2c-3 4-6 7-6 11 0 3 2 6 6 6s6-3 6-6c0-4-3-7-6-11z'/></svg>") center/contain no-repeat;
}

.tagline {
  text-align: center;
  color: #b8e8c8;
  margin-top: 22px;
  font-size: 16px;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

/* ====== Console log ====== */
.console {
  max-width: 720px;
  margin: 18px auto 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(80,255,160,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 11.5px;
  line-height: 1.7;
  color: rgba(174, 240, 196, 0.85);
  max-height: 150px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
  z-index: 2;
}
.console:empty { display: none; }
.console .err { color: #ff8f83; }
.console .good { color: #6fffa3; }
.console a { color: #2ddc7a; }

/* ====== Link cards ====== */
.link-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.link-card {
  background: rgba(0, 20, 12, 0.45);
  border: 1px solid rgba(80,255,160,0.14);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.link-card:hover {
  border-color: rgba(80,255,160,0.4);
  box-shadow: 0 0 18px rgba(80,255,160,0.12);
}
.link-card .row1 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.link-card .code {
  color: #6fffa3;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  text-shadow: 0 0 10px rgba(80,255,160,.4);
  text-decoration: none;
}
.link-card .code:hover { text-decoration: underline; }
.link-card .badge {
  font-size: 10px;
  letter-spacing: .8px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(80,255,160,.25);
  color: #aef0c4;
}
.link-card .badge.off { color: #ffbd2e; border-color: rgba(255,189,46,.35); }
.link-card .dest {
  color: #b8e8c8;
  font-size: 12.5px;
  word-break: break-all;
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}
.link-card .dest:hover { color: #6fffa3; }
.link-card .meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #6a8a78;
}
.link-card .meta a { color: #6a8a78; }
.link-card .meta a:hover { color: #2ddc7a; }

.copy-btn {
  background: transparent;
  border: 1px solid rgba(80,255,160,0.2);
  border-radius: 6px;
  color: #6a8a78;
  font-size: 10px;
  font-family: inherit;
  padding: 3px 9px;
  cursor: pointer;
  letter-spacing: .5px;
}
.copy-btn:hover { color: #6fffa3; border-color: #2ddc7a; }

.empty-state, .loading-state {
  text-align: center;
  color: #6a8a78;
  font-size: 13px;
  padding: 44px 20px;
  letter-spacing: .5px;
}
.empty-state strong { color: #aef0c4; display: block; margin-bottom: 8px; font-size: 15px; }

.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  position: relative;
  z-index: 2;
}
.pager button {
  background: rgba(0, 20, 12, 0.6);
  border: 1px solid rgba(80,255,160,0.2);
  border-radius: 999px;
  color: #b8e8c8;
  font-family: inherit;
  font-size: 12px;
  padding: 7px 18px;
  cursor: pointer;
}
.pager button:hover:not(:disabled) { border-color: #2ddc7a; color: #6fffa3; }
.pager button:disabled { opacity: .35; cursor: not-allowed; }
.pager .info { color: #6a8a78; font-size: 11px; align-self: center; }

/* ====== API docs ====== */
.docs { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.docs h2 {
  color: #6fffa3;
  font-size: 19px;
  font-family: 'Trebuchet MS', sans-serif;
  letter-spacing: .5px;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(80,255,160,0.12);
}
.docs h3 { color: #aef0c4; font-size: 14px; margin: 20px 0 8px; letter-spacing: .5px; }
.docs p { color: #b8e8c8; font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.docs ul { color: #b8e8c8; font-size: 13px; line-height: 1.9; margin: 0 0 12px 20px; }
.docs code {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(80,255,160,0.12);
  border-radius: 4px;
  padding: 1px 6px;
  color: #6fffa3;
  font-size: 12px;
}
.docs pre {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(80,255,160,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 11.5px;
  line-height: 1.7;
  color: #aef0c4;
  margin-bottom: 14px;
}
.docs pre code { background: none; border: none; padding: 0; color: inherit; }

.endpoint {
  background: rgba(0, 20, 12, 0.45);
  border: 1px solid rgba(80,255,160,0.14);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.endpoint .head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.method {
  background: linear-gradient(180deg, #2ddc7a 0%, #1a9a52 100%);
  color: #04240f;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
}
.path { color: #6fffa3; font-size: 13.5px; word-break: break-all; }

.params { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 12px; }
.params th, .params td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(80,255,160,0.08);
  vertical-align: top;
}
.params th { color: #6a8a78; font-weight: 400; letter-spacing: .8px; font-size: 10.5px; text-transform: uppercase; }
.params td { color: #b8e8c8; }
.params td:first-child { color: #6fffa3; white-space: nowrap; }

.try-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.try-row input {
  flex: 1;
  min-width: 200px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(80,255,160,0.18);
  border-radius: 8px;
  color: #d8ffe8;
  font-family: inherit;
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
}
.try-row input:focus { border-color: #2ddc7a; }
.try-row button {
  background: rgba(45, 220, 122, 0.12);
  border: 1px solid #2ddc7a;
  border-radius: 8px;
  color: #6fffa3;
  font-family: inherit;
  font-size: 12px;
  padding: 8px 18px;
  cursor: pointer;
  letter-spacing: .5px;
}
.try-row button:hover { background: rgba(45, 220, 122, 0.24); }
.try-out {
  margin-top: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(80,255,160,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.65;
  color: #aef0c4;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.try-out:empty { display: none; }

/* ====== Bottom code lines ====== */
.code-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  overflow: hidden;
}
.code-bottom .left, .code-bottom .right {
  position: absolute;
  bottom: 6px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: rgba(110, 255, 170, 0.25);
  line-height: 1.5;
  white-space: pre;
}
.code-bottom .left  { left: 14px; }
.code-bottom .right { right: 14px; text-align: right; }
.code-bottom .cursor { color: #3df58a; }

/* ====== Responsive ====== */
@media (max-width: 600px) {
  .brand { font-size: 44px; }
  .page-title { font-size: 22px; }
  .plant-wrap { width: 280px; }
  .search-wrap { padding-left: 18px; flex-wrap: wrap; border-radius: 18px; }
  .search-wrap input { font-size: 14px; width: 100%; padding: 8px 0; }
  .add-btn { padding: 10px 14px; font-size: 12px; width: 100%; justify-content: center; }
  .tagline { font-size: 13px; padding: 0 10px; }
  .custom-code-wrap input { width: 100%; }
  .code-bottom { display: none; }
  .wallet-pill { font-size: 10px; padding: 3px 9px; }
  .stage { padding: 28px 14px 24px; }
}
