/* ── Netvelopers — The Forge ── Styles ─────────────── */

:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1a2332;
  --bg-input: #0d1320;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #475569;
  --cyan: #22d3ee;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --pink: #f472b6;
  --orange: #fb923c;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── GRADIENT TEXT ─────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--green) 50%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAVBAR ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); }
.brand-icon { font-size: 1.5rem; }
.brand-text { font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-text strong { color: var(--cyan); }
.brand-badge {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-weight: 600;
}
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link--ext { color: var(--cyan); }
.nav-link--ext:hover { background: rgba(34, 211, 238, 0.1); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
  text-align: center;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}
.hero-glow--1 { width: 500px; height: 500px; background: var(--cyan); top: -100px; left: 20%; }
.hero-glow--2 { width: 400px; height: 400px; background: var(--green); bottom: -50px; right: 15%; }
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 2rem;
}
.badge-pulse {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-desc strong { color: var(--text); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; background: var(--border); }

.hero-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}
.hero-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 1rem 1.25rem 1rem 3.25rem;
  font-size: 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}
.hero-search input::placeholder { color: var(--text-dim); }
.hero-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1); }

/* ── FILTERS ──────────────────────────────────────── */
.filters-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 56px;
  z-index: 100;
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(12px);
}
.filter-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.filter-group { display: flex; gap: 0.4rem; }
.filter-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn.active { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.3); color: var(--cyan); }

/* ── SCRIPTS GRID ─────────────────────────────────── */
.scripts-section { padding: 3rem 0 5rem; }
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.script-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.script-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  opacity: 0;
  transition: var(--transition);
}
.script-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.script-card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.card-vendor-icon { font-size: 1.5rem; }
.card-lang {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 600;
}
.card-diff {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.card-diff.beginner { background: rgba(74, 222, 128, 0.1); color: var(--green); }
.card-diff.intermediate { background: rgba(251, 191, 36, 0.1); color: var(--amber); }
.card-diff.advanced { background: rgba(248, 113, 113, 0.1); color: var(--red); }
.card-new {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.3);
  animation: newPulse 2s infinite;
}
@keyframes newPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.3); }
  50% { box-shadow: 0 0 8px 2px rgba(74, 222, 128, 0.15); }
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.card-author { font-size: 0.75rem; color: var(--text-dim); }
.card-read { font-size: 0.75rem; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; }
.card-view-btn {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.modal-desc { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.5rem; }
.modal-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.modal-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.meta-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.meta-badge.lang { background: rgba(34, 211, 238, 0.1); color: var(--cyan); border-color: rgba(34, 211, 238, 0.2); }
.meta-badge.vendor { background: rgba(74, 222, 128, 0.1); color: var(--green); border-color: rgba(74, 222, 128, 0.2); }

.modal-code-wrapper { margin-bottom: 1.5rem; border-radius: var(--radius-sm); overflow: hidden; }
.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.code-lang {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  text-transform: uppercase;
}
.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--cyan);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.copy-btn:hover { background: rgba(34, 211, 238, 0.2); }
.copy-btn.copied { background: rgba(74, 222, 128, 0.2); border-color: rgba(74, 222, 128, 0.3); color: var(--green); }

.code-block {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #c9d1d9;
  tab-size: 2;
}
.code-block code { white-space: pre; }

.modal-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.modal-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.modal-cta {
  background: rgba(34, 211, 238, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.modal-cta a { color: var(--cyan); text-decoration: none; font-weight: 500; }
.modal-cta a:hover { text-decoration: underline; }

/* ── ABOUT ────────────────────────────────────────── */
.about-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.about-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.about-text p strong { color: var(--text); }
.about-text a { color: var(--cyan); text-decoration: none; }
.about-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.about-link {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}
.about-link:hover { background: rgba(34, 211, 238, 0.15); }

.about-stats { display: flex; flex-direction: column; gap: 1rem; }
.about-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.about-stat-card:hover { border-color: var(--border-hover); }
.about-stat-num { font-size: 2rem; font-weight: 800; color: var(--cyan); font-family: 'JetBrains Mono', monospace; }
.about-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── NO RESULTS ───────────────────────────────────── */
.no-results { text-align: center; padding: 4rem 0; }
.no-results-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-results h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.no-results p { color: var(--text-muted); }

/* ── FOOTER ───────────────────────────────────────── */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); }
.footer-inner { }
.footer-brand span { font-size: 1rem; }
.footer-brand strong { color: var(--cyan); }
.footer-brand p { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.25rem; }
.footer-links { display: flex; gap: 3rem; margin-top: 2rem; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text-dim); text-decoration: none; padding: 0.2rem 0; transition: var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.75rem; color: var(--text-dim); }
.footer-bottom a { color: var(--cyan); text-decoration: none; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 8rem 0 3rem; }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.4rem; }
  .scripts-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; align-items: center; }
  .nav-links { display: none; }
  .modal { padding: 1.5rem; margin: 1rem; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
}
