@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg-base:       #0a0c10;
  --bg-surface:    #111318;
  --bg-card:       #16191f;
  --bg-hover:      #1c2028;
  --border:        #252930;
  --border-light:  #2e3340;
  --accent:        #00e5a0;
  --accent-dim:    #00b87d;
  --accent-glow:   rgba(0, 229, 160, 0.15);
  --accent-glow2:  rgba(0, 229, 160, 0.06);
  --yellow:        #f5c542;
  --red:           #ff4f6a;
  --blue:          #4aa3f5;
  --text-primary:  #e8eaf0;
  --text-secondary:#8b92a5;
  --text-muted:    #555c6e;
  --code-bg:       #0d1017;
  --radius:        10px;
  --radius-sm:     6px;
  --transition:    0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,229,160,0.07) 0%, transparent 60%);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #0a0c10;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--accent); }

/* ── NAV ── */
nav { display: flex; align-items: center; gap: 4px; }

nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Syne', sans-serif;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

nav a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

nav a.active {
  color: var(--accent);
  background: var(--accent-glow2);
}

nav a .nav-icon { font-size: 15px; opacity: 0.8; }

/* ── BURGER ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 12px 2rem;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--accent);
  background: var(--accent-glow2);
}

/* ── MAIN ── */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 2rem 64px;
}

/* ── PAGE HEADER ── */
.page-header {
  padding-top: 10px;
  margin-bottom: 40px;
}

.page-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow2);
  border: 1px solid rgba(0,229,160,0.2);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.page-header h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 560px;
}

/* ── CARD ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.card:hover { border-color: var(--border-light); }

.card-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .icon {
  width: 30px;
  height: 30px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.card-desc {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.card-body { padding: 20px 24px 24px; }

/* ── FORM ELEMENTS ── */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'JetBrains Mono', monospace;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

textarea { min-height: 200px; line-height: 1.7; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0c10;
}

.btn-primary:hover {
  background: #00ffb3;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
  background: var(--bg-surface);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 12px;
  padding: 6px 12px;
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-glow2);
}

.btn-ghost.copied {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

/* ── QUICK SELECT PILLS ── */
.pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pill {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.pill:hover, .pill.active {
  background: var(--accent-glow);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ── CODE BLOCK ── */
.code-block {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 12px;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.code-block-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.code-block pre {
  padding: 16px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-primary);
}

/* ── TIPS / INFO BOXES ── */
.tip {
  background: var(--accent-glow2);
  border: 1px solid rgba(0,229,160,0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
}

.tip-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.warning {
  background: rgba(245,197,66,0.06);
  border: 1px solid rgba(245,197,66,0.2);
  color: #c9a637;
}

/* ── STEPS ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 26px;
  height: 26px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  color: var(--text-secondary);
  font-size: 14px;
  padding-top: 3px;
}

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead {
  background: var(--bg-hover);
}

th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'JetBrains Mono', monospace;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255,255,255,0.02); }

td a {
  color: var(--blue);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  word-break: break-all;
}

td a:hover { text-decoration: underline; }

.code-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
}

.code-200 { background: rgba(0,229,160,0.12); color: var(--accent); }
.code-301, .code-302 { background: rgba(245,197,66,0.12); color: var(--yellow); }
.code-4xx, .code-5xx { background: rgba(255,79,106,0.12); color: var(--red); }

.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-dim) !important;
  font-size: 12px !important;
}

/* ── LOADING ── */
.loading {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
}

.loading.show { display: flex; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-icon { font-size: 40px; margin-bottom: 14px; opacity: 0.5; }

.empty-state p { font-size: 13px; font-family: 'JetBrains Mono', monospace; }

/* ── SECTION DIVIDER ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── GRID ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }

/* ── COMMANDS GRID ── */
.commands-grid {
  display: grid;
  gap: 20px;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 2rem;
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.footer-links {
  display: flex;
  gap: 6px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

/* ── RESULTS SECTION ── */
.results-section {
  display: none;
  margin-top: 24px;
  animation: fadeUp 0.3s ease;
}

.results-section.show { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

.result-header strong { color: var(--text-primary); }

.result-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── INLINE INPUT PAIR ── */
.input-row {
  display: flex;
  gap: 12px;
}

.input-row .form-group { flex: 1; }

/* ── URL LIST STATS ── */
.url-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.stat-chip {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-chip strong {
  color: var(--accent);
  font-size: 16px;
  display: block;
  margin-bottom: 1px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { display: none; }
  .burger { display: flex; }
  main { padding: 32px 1rem 48px; }
  .grid-2 { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .site-header { padding: 0 1rem; }
  .page-header h1 { font-size: 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .url-stats { gap: 10px; }
}
