/* =============================================
   FieLab — style.css
   ============================================= */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:        #080b10;
  --bg-surface:     #0d1117;
  --bg-card:        rgba(255,255,255,0.03);
  --bg-card-hover:  rgba(255,255,255,0.055);

  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.14);
  --border-accent:  rgba(79,255,176,0.25);

  --text-primary:   #e8eaf0;
  --text-secondary: rgba(255,255,255,0.60);
  --text-muted:     rgba(255,255,255,0.42);

  --accent:         #4fffb0;
  --accent-dim:     rgba(79,255,176,0.1);
  --accent-border:  rgba(79,255,176,0.25);

  --blue:           #6382ff;
  --blue-dim:       rgba(99,130,255,0.12);
  --amber:          #ffb800;
  --amber-dim:      rgba(255,184,0,0.12);
  --red:            #ff5050;
  --red-dim:        rgba(255,80,80,0.12);
  --purple:         #b464ff;
  --purple-dim:     rgba(180,100,255,0.12);
  --teal:           #00c8c8;
  --teal-dim:       rgba(0,200,200,0.12);

  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-pill:    999px;

  --nav-height:     60px;
  --max-width:      1160px;

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Background decoration ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,255,176,0.055) 0%, transparent 65%);
  top: -300px; left: -200px;
  pointer-events: none;
  z-index: 0;
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8,11,16,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%       { opacity: 0.5; box-shadow: 0 0 3px var(--accent); }
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-link i { font-size: 15px; }

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* Nav right */
.nav-right { margin-left: auto; }

.nav-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 0.5px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

/* ── Main content ── */
.main-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section helpers ── */
.section { padding: 60px 0; }
.section-sm { padding: 36px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card.accent {
  border-color: var(--border-accent);
  background: rgba(79,255,176,0.04);
}

/* ── Icon badges ── */
.icon-badge {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-green  { background: var(--accent-dim);  color: var(--accent); }
.icon-blue   { background: var(--blue-dim);    color: var(--blue); }
.icon-amber  { background: var(--amber-dim);   color: var(--amber); }
.icon-red    { background: var(--red-dim);     color: var(--red); }
.icon-purple { background: var(--purple-dim);  color: var(--purple); }
.icon-teal   { background: var(--teal-dim);    color: var(--teal); }

/* ── Difficulty badges ── */
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge-beginner     { background: rgba(79,255,176,0.12);  color: rgba(79,255,176,0.8); }
.badge-intermediate { background: rgba(255,184,0,0.12);   color: rgba(255,184,0,0.8); }
.badge-advanced     { background: rgba(255,80,80,0.12);   color: rgba(255,80,80,0.8); }

/* ── Tags ── */
.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 0.5px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-accent {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn-accent:hover {
  background: rgba(79,255,176,0.18);
  color: var(--accent);
}

/* ── Search bar ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  transition: border-color 0.18s;
}

.search-bar:focus-within { border-color: var(--accent-border); }

.search-bar i { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Category tabs ── */
.cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-tab {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.02em;
}

.cat-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.cat-tab.active {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ── Divider ── */
.divider {
  height: 0.5px;
  background: var(--border);
  border: none;
}

/* ── Stat ── */
.stat-row {
  display: flex;
  gap: 32px;
  align-items: center;
}

.stat-item { display: flex; flex-direction: column; gap: 3px; }

.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 0.5px;
  height: 32px;
  background: var(--border);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 0.5px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 36px;
  display: flex;
  gap: 60px;
}

.footer-left { flex: 1; max-width: 280px; }

.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex: 1;
  justify-content: flex-end;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.featured-card { grid-column: span 2; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(8,11,16,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 0.5px solid var(--border);
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-right { display: none; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-left { max-width: 100%; }
  .footer-links { justify-content: flex-start; gap: 32px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .stat-row { gap: 20px; flex-wrap: wrap; }

  .indicator-detail-grid {
	  grid-template-columns: 1fr !important;
	}


   .featured-card { grid-column: span 1; }
   #indicatorGrid {
    grid-template-columns: 1fr !important;
  }

}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
}

