/* NukaWorld 76 - Terminal Aesthetic CSS */
:root {
  --bg: #0B0C0A;
  --bg-card: #141512;
  --border: #2E3029;
  --nuka-green: #4ade80;
  --text: #f5f5f4;
  --text-muted: #a8a29e;
  --text-dim: #44403c;
  --rust: #d97706;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --yellow: #eab308;
  --orange: #f97316;
  --pink: #ec4899;
  --font-heading: 'Share Tech Mono', monospace;
  --font-body: 'IBM Plex Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

/* CRT Scanlines */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--nuka-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
./* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 16px;
  overflow: visible;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
  overflow: visible;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.nav-icon {
  max-width: 42px;
  max-height: 42px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--nuka-green) !important;
  white-space: nowrap;
  text-decoration: none !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: visible;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.dropbtn:hover {
  color: var(--nuka-green);
  border-color: var(--border);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 0;
  z-index: 5000;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 13px;
}

.dropdown-content a:hover {
  background: rgba(74, 222, 128, 0.08);
  color: var(--nuka-green);
  text-decoration: none;
}

/* Desktop hover */
@media (min-width: 901px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* Click-open support */
.dropdown.open .dropdown-content {
  display: block;
}

.nav-toggle {
  display: none;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 900px) {

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    z-index: 5000;
  }

  .nav-links.show {
    display: flex;
  }

  .dropdown {
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    text-align: left;
    padding: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
  }

  .dropdown-content {
    display: none;
    position: static;
    width: 100%;
    border: none;
    padding-left: 10px;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    padding: 10px;
    display: block;
    border-left: 2px solid var(--border);
  }

  .nav-toggle {
    display: block;
  }
}
/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 16px 32px;
}

/* Page Headers */
.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-header h1 .accent {
  width: 4px;
  height: 32px;
  background: var(--nuka-green);
  display: inline-block;
}
.page-header p { color: var(--text-muted); margin-top: 8px; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(74, 222, 128, 0.3); }
.card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

/* Stat Cards */
.stat-card { text-align: center; padding: 16px; }
.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 24px;
}
.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid;
  font-family: var(--font-heading);
}
.badge-green { color: var(--nuka-green); border-color: rgba(74,222,128,0.5); }
.badge-red { color: var(--red); border-color: rgba(239,68,68,0.5); }
.badge-blue { color: var(--blue); border-color: rgba(59,130,246,0.5); }
.badge-yellow { color: var(--yellow); border-color: rgba(234,179,8,0.5); }
.badge-orange { color: var(--orange); border-color: rgba(249,115,22,0.5); }
.badge-purple { color: var(--purple); border-color: rgba(139,92,246,0.5); }
.badge-muted { color: var(--text-muted); border-color: var(--border); }

/* Progress Bars */
.progress-bar {
  height: 8px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  transition: width 0.5s;
}

/* Stat Bars (for weapons/armor) */
.stat-bar-container { margin-bottom: 8px; }
.stat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 2px;
}
.stat-bar-label span:first-child { color: var(--text-muted); }
.stat-bar-label span:last-child { font-family: var(--font-heading); }
.stat-bar {
  height: 6px;
  background: var(--bg);
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  transition: width 0.5s;
}

/* Forms */
.input, .select, .textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  width: 100%;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--nuka-green);
}
.select { cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary {
  background: var(--nuka-green);
  color: var(--bg);
}
.btn-primary:hover { background: #22c55e; }
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--nuka-green); color: var(--nuka-green); }

/* Tabs */
.tabs { display: flex; gap: 2px; margin-bottom: 24px; background: var(--bg-card); border: 1px solid var(--border); padding: 4px; }
.tab {
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active { background: var(--nuka-green); color: var(--bg); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Search */
.search-box {
  position: relative;
  margin-bottom: 24px;
}
.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
}
.search-box::before {
  content: '⌕';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text);
}
.section-header .accent {
  width: 4px;
  height: 24px;
  background: var(--nuka-green);
}

/* Detail Items */
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); }
.detail-value { color: var(--text); font-family: var(--font-heading); }

/* Tags / Chip list */
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Tip list */
.tip-list { list-style: none; padding: 0; }
.tip-list li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tip-list li::before {
  content: '-';
  color: var(--nuka-green);
  flex-shrink: 0;
}

/* SPECIAL colors */
.special-S { color: #ef4444; }
.special-P { color: #f97316; }
.special-E { color: #eab308; }
.special-C { color: #22c55e; }
.special-I { color: #3b82f6; }
.special-A { color: #8b5cf6; }
.special-L { color: #ec4899; }

/* Footer */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 48px;
}

/* Utility */
.text-green { color: var(--nuka-green); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-orange { color: var(--orange); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }
.font-mono { font-family: var(--font-heading); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.border-top { border-top: 1px solid var(--border); }
.bg-dark { background: var(--bg); }

/* Glow effects */
.glow-red { box-shadow: 0 0 30px rgba(239,68,68,0.4); }
.glow-green { box-shadow: 0 0 20px rgba(74,222,128,0.3); }
.glow-orange { box-shadow: 0 0 20px rgba(217,119,6,0.4); }
.glow-blue { box-shadow: 0 0 15px rgba(59,130,246,0.3); }

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeIn 0.3s ease-out; }

/* Hero section */
  .hero {
  text-align: center;
  padding: 48px 16px;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  min-height: 60vh;

  background: 
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url("top.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--nuka-green);
  margin-bottom: 8px;
}
.hero p {
  color: var(--nuka-green);
  max-width: 600px;
  margin: 0 auto;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-bar .input, .filter-bar .select { max-width: 250px; }

/* Multiplier chip */
.multiplier-chip {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  background: var(--bg-card);
  margin-bottom: 4px;
}

/* Inline info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
