/* TechLinkss — site styles */
:root {
  /* Brand blue matches official TechLinkss logo */
  --brand: #1e73e8;
  --brand-2: #4a9eff;
  --bg: #0b1020;
  --bg-2: #11172e;
  --panel: #0f1530;
  --panel-2: #131a3a;
  --border: #232a4d;
  --text: #e8ecff;
  --muted: #9aa3c7;
  --accent: #1cd4a4;
  --warn: #ffb86b;
  --danger: #ff7a8a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 600px at 0% -10%, rgba(30,115,232,0.22), transparent 60%),
    radial-gradient(900px 500px at 100% -20%, rgba(28,212,164,0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(11, 16, 32, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; padding: 12px 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand.small .brand-logo { width: 24px; height: 24px; }
.brand-name { font-size: 16px; letter-spacing: 0.2px; }
.links { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px;
}
.nav-link:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav-link.active { color: var(--text); background: var(--panel-2); }

/* Hero */
.hero { padding: 56px 0 28px; }
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin: 0 0 12px;
  background: linear-gradient(180deg, #fff, #c8d4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.hero p { color: var(--muted); margin: 0 0 20px; font-size: 17px; max-width: 780px; }
.hero .meta-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 999px;
  color: var(--muted); font-size: 13px;
}
.pill strong { color: var(--text); }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.card h2, .card h3 { margin-top: 0; }

/* Forms */
.input, input[type="text"], input[type="url"], input[type="search"], input[type="email"], input[type="number"], textarea, select {
  flex: 1; min-width: 200px;
  padding: 12px 14px; font-size: 15px; line-height: 1.4;
  background: #0a0f24; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30, 115, 232, 0.25);
}
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: 15px;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform 0.05s, filter 0.15s;
}
.btn:hover, button:hover { filter: brightness(1.06); }
.btn:active, button:active { transform: translateY(1px); }
.btn.ghost {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
}
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.options-row { gap: 10px; margin-top: 10px; }
.options-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.options-row input[type="number"] { max-width: 110px; min-width: 80px; }

/* Layout helpers */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.section { margin: 36px 0 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section h2 { margin: 0; font-size: 22px; }
.section .more { font-size: 14px; color: var(--muted); }

/* Result / preview */
.result-head { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.result-head img.preview {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--panel-2);
}
.result-head .placeholder {
  width: 100%; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: linear-gradient(135deg, #1a2150, #20296b);
  color: var(--muted); font-size: 28px;
}
.result-title { font-size: 22px; margin: 0 0 6px; line-height: 1.25; }
.result-desc { color: var(--muted); margin: 0 0 12px; }
.url-display {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: #0a0f24; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; word-break: break-all; color: #cbd2ff;
}
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin-top: 10px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

@media (max-width: 720px) {
  .result-head { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { font-size: 12px; }
  .recent { grid-template-columns: 120px 1fr; min-height: 124px; }
  .recent img, .recent .ph { width: 120px; height: 92px; }
}

/* Redirect chain */
.chain { list-style: none; padding: 0; margin: 12px 0 0; }
.chain li {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 8px;
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
}
.chain .hop-num {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bg); color: var(--muted); border: 1px solid var(--border);
  font-size: 12px;
}
.chain .hop-host { font-weight: 600; color: var(--text); }
.chain .hop-url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); font-size: 12.5px; word-break: break-all; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--border); }
.status.s2 { background: rgba(28,212,164,0.12); color: var(--accent); border-color: rgba(28,212,164,0.3); }
.status.s3 { background: rgba(255,184,107,0.12); color: var(--warn); border-color: rgba(255,184,107,0.3); }
.status.s4, .status.s5 { background: rgba(255,122,138,0.12); color: var(--danger); border-color: rgba(255,122,138,0.3); }

/* Provider tile */
.tile {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; gap: 12px; align-items: center;
  transition: transform 0.05s, border-color 0.15s, background 0.15s;
}
.tile:hover { border-color: var(--brand); background: var(--panel-2); text-decoration: none; }
.tile .ico {
  width: 40px; height: 40px; border-radius: 8px; background: var(--bg-2);
  display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
  border: 1px solid var(--border);
}
.tile .ico img { width: 24px; height: 24px; }
.tile .body { flex: 1; min-width: 0; }
.tile .title { color: var(--text); font-weight: 600; }
.tile .sub { color: var(--muted); font-size: 13px; }
.tile .cnt {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; color: var(--muted);
}

/* Recent card */
.recent {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 132px;
  transition: border-color 0.15s, background 0.15s;
}
.recent:hover { border-color: var(--brand); background: var(--panel-2); text-decoration: none; }
.recent img {
  width: 140px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.recent .ph {
  width: 140px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a2150, #20296b);
  color: var(--muted);
  font-size: 20px;
  border: 1px solid var(--border);
}
.recent > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.recent .meta-title {
  color: var(--text);
  font-weight: 650;
  line-height: 1.28;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.recent .meta-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(13px * 1.45 * 2);
}
.recent .meta-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* FAQ */
.faq details {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); margin: 8px 0 0; }

/* Notices */
.notice {
  border-left: 3px solid var(--brand);
  background: rgba(30,115,232,0.12); padding: 12px 14px; border-radius: 8px;
  margin: 12px 0;
}
.notice.warn { border-left-color: var(--warn); background: rgba(255,184,107,0.08); }
.notice.error { border-left-color: var(--danger); background: rgba(255,122,138,0.08); }
.notice strong { color: var(--text); }

/* Footer */
.site-footer { margin-top: 60px; padding: 32px 0; border-top: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { margin: 4px 0; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--text); }
.foot-bar { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; color: var(--muted);
}
.tag img { width: 14px; height: 14px; }

/* Article (legal pages) */
.article { max-width: 820px; }
.article h1 { font-size: 32px; margin: 24px 0 8px; }
.article h2 { font-size: 22px; margin: 24px 0 8px; }
.article h3 { font-size: 17px; margin: 18px 0 6px; }
.article p, .article li { color: #d3d8f5; }
.article ul, .article ol { padding-left: 22px; }

/* Empty state */
.empty {
  text-align: center; padding: 48px 16px; color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
