/* TorZon Market — torzonmarket.sbs */
/* Quirky, human-flavored, deliberately imperfect */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Courier+Prime:wght@400;700&family=Work+Sans:wght@300;400;600;800&display=swap');

:root {
  --bg-primary: #3d4451;
  --bg-secondary: #e8e9ed;
  --bg-card: #ffffff;
  --bg-emphasis: #d4f4dd;
  --text-primary: #3d4451;
  --text-secondary: #6b7280;
  --text-inverse: #ffffff;
  --text-muted: #9ca3af;
  --brand-primary: #00bcd4;
  --brand-secondary: #5c4d7d;
  --status-success: #4caf50;
  --status-warning: #ffa726;
  --status-error: #ef5350;
  --status-success-light: #d4f4dd;
  --accent-danger: #e71d1d;
  --accent-danger-light: #ffe5e5;
  --border-default: #d1d5db;
  --border-dashed: #9ca3af;
  --border-alert: #ffcdd2;
  --btn-primary: #5c4d7d;
  --btn-hover: #4a3d65;
  --btn-text: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---- HEADER ---- */
.site-header {
  background: var(--bg-primary);
  padding: 1.1rem 2rem 0.8rem;
  border-bottom: 3px solid var(--brand-primary);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.site-logo img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}
.site-logo span {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-inverse);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.main-nav { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-inverse);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0.85rem;
  border-radius: 5px;
  transition: background 0.2s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--brand-secondary);
}

/* ---- ONION URL HERO ---- */
.onion-hero {
  background: linear-gradient(135deg, var(--bg-primary) 60%, #2d323b 100%);
  padding: 2.2rem 1.5rem 1.7rem;
  text-align: center;
}
.onion-hero h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--brand-primary);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.url-box {
  background: rgba(255,255,255,0.07);
  border: 2px dashed var(--brand-primary);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  max-width: 720px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.url-box .blink-dot {
  width: 14px; height: 14px;
  background: var(--status-success);
  border-radius: 50%;
  display: inline-block;
  animation: blinker 1.3s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--status-success);
}
@keyframes blinker {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--status-success); }
  50% { opacity: 0.35; box-shadow: 0 0 2px var(--status-success); }
}
.url-box .onion-url {
  font-family: 'Courier Prime', monospace;
  color: var(--text-inverse);
  font-size: 1.05rem;
  word-break: break-all;
  overflow-wrap: anywhere;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}
.url-box .onion-url a {
  color: var(--brand-primary);
  text-decoration: none;
}
.url-box .onion-url a:hover { text-decoration: underline; }
.copy-btn {
  background: var(--btn-primary);
  color: var(--btn-text);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.93rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  transition: background 0.18s;
  flex-shrink: 0;
}
.copy-btn:hover { background: var(--btn-hover); }
.copy-btn.copied { background: var(--status-success); }
.clearnet-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.3rem;
}
.clearnet-note a { color: var(--brand-primary); }

/* ---- BREADCRUMBS ---- */
.breadcrumbs {
  max-width: 1080px;
  margin: 0.8rem auto 0;
  padding: 0 2rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--brand-primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.35rem; }

/* ---- MAIN CONTENT ---- */
.content-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.8rem 2rem 2.5rem;
}
.page-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 2.2rem 2rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
/* Asymmetric quirk cards */
.page-card.quirk-left { border-left: 5px solid var(--brand-primary); margin-left: -8px; }
.page-card.quirk-right { border-right: 5px solid var(--brand-secondary); margin-right: -12px; }
.page-card.quirk-top { border-top: 4px dashed var(--status-warning); margin-top: 0.5rem; }
.page-card.quirk-green { border-left: 4px solid var(--status-success); background: linear-gradient(90deg, var(--status-success-light) 0%, var(--bg-card) 18%); }

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
  line-height: 1.2;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.45rem;
  color: var(--brand-secondary);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.3px;
}
h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.13rem;
  color: var(--text-primary);
  margin: 1.2rem 0 0.4rem;
  font-weight: 600;
}

p { margin-bottom: 1rem; }

a { color: var(--brand-primary); }

/* ---- TABLES ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.3rem;
  font-size: 0.97rem;
}
.info-table th, .info-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
}
.info-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}
.info-table tr:hover td { background: #f7f8fa; }

/* ---- CHECKLISTS ---- */
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  border-bottom: 1px dashed var(--border-dashed);
  font-size: 0.98rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0.3rem;
  color: var(--status-success);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---- WARNING BOX ---- */
.warning-box {
  background: var(--accent-danger-light);
  border: 2px solid var(--border-alert);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  margin: 1.2rem 0;
  color: var(--accent-danger);
  font-weight: 500;
  font-size: 0.97rem;
}
.warning-box strong { display: block; margin-bottom: 0.25rem; }

/* ---- FAQ ---- */
.faq-block { margin: 1.5rem 0; }
.faq-q {
  font-weight: 700;
  color: var(--brand-secondary);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  font-family: 'Space Grotesk', sans-serif;
}
.faq-a {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--bg-emphasis);
}

/* ---- TRUST BADGES ---- */
.trust-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}
.trust-badge {
  background: var(--bg-emphasis);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.trust-badge .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--status-success);
  display: inline-block;
}

/* ---- IMAGES ---- */
.content-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
}
.img-float-right {
  float: right;
  max-width: 280px;
  margin: 0 0 1rem 1.5rem;
}
.img-float-left {
  float: left;
  max-width: 260px;
  margin: 0 1.5rem 1rem 0;
}

/* ---- STATUS DASHBOARD ---- */
.status-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-default);
}
.status-indicator {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-indicator.online { background: var(--status-success); animation: blinker 1.3s ease-in-out infinite; }
.status-indicator.degraded { background: var(--status-warning); }
.status-indicator.offline { background: var(--status-error); }

/* ---- FOOTER ---- */
.site-footer {
  background: #2b2f38;
  color: var(--text-muted);
  padding: 2rem 2rem 1.2rem;
  margin-top: 2rem;
  font-size: 0.88rem;
  border-top: 3px solid var(--brand-secondary);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.footer-col { flex: 1 1 200px; min-width: 180px; }
.footer-col h4 {
  color: var(--brand-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
}
.footer-col a:hover { color: var(--brand-primary); }
.footer-pgp {
  font-family: 'Courier Prime', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.5;
  background: rgba(255,255,255,0.04);
  padding: 0.5rem;
  border-radius: 5px;
  margin-top: 0.4rem;
}
.footer-quote {
  text-align: center;
  width: 100%;
  padding-top: 1.2rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- MOBILE ---- */
@media (max-width: 700px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav { width: 100%; justify-content: flex-start; }
  .content-wrap { padding: 1rem 0.8rem; }
  .page-card { padding: 1.3rem 1rem; margin-left: 0 !important; margin-right: 0 !important; }
  h1 { font-size: 1.55rem; }
  .url-box { flex-direction: column; text-align: center; }
  .url-box .onion-url { text-align: center; font-size: 0.92rem; }
  .img-float-right, .img-float-left { float: none; max-width: 100%; margin: 1rem 0; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .trust-badges { flex-direction: column; }
  .info-table { font-size: 0.85rem; }
  .info-table th, .info-table td { padding: 0.45rem 0.5rem; }
}
@media (max-width: 400px) {
  body { font-size: 15px; }
  .site-header { padding: 0.8rem 1rem 0.6rem; }
  h1 { font-size: 1.3rem; }
}
