/* ===== FOOTWORLD — SHARED STYLES ===== */

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

:root {
  --green: #00e676;
  --dark: #080808;
  --card: #111;
  --card2: #161616;
  --border: #1e1e1e;
  --muted: #666;
  --gold: #ffd700;
  --text: #ffffff;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
nav:not(.fw-bottom-nav) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(8, 8, 8, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  gap: 24px;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 0 rgba(0,230,118,0.08), 0 8px 32px rgba(0,0,0,0.4);
}
nav:not(.fw-bottom-nav):hover {
  background: rgba(10,10,10,0.92);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: white;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-search {
  display: flex;
  align-items: center;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  gap: 8px;
  flex-shrink: 0;
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 14px;
  width: 180px;
  font-family: inherit;
}

.nav-search input::placeholder {
  color: var(--muted);
}

/* ===== BUTTONS ===== */
.btn {
  background: var(--green);
  color: black;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background: #00ff88;
  transform: scale(1.03);
}

.btn-purple {
  background: #7c4dff;
  color: white;
}

.btn-purple:hover {
  background: #9d6fff;
}

/* ===== SECTION STRUCTURE ===== */
.page-header {
  padding: 48px 32px 24px;
  background: radial-gradient(ellipse at top, #001a0a 0%, var(--dark) 70%);
}

.page-header h1 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 8px;
}

.page-header h1 span {
  color: var(--green);
}

.page-header p {
  color: var(--muted);
  font-size: 15px;
}

/* ===== FILTER BARS ===== */
.filters {
  padding: 20px 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.filter-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: white;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.filter-select:focus {
  border-color: var(--green);
}

.filter-select option {
  background: #111;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 13px;
  width: 100%;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--muted);
}

.results-count {
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
}

/* ===== CARDS ===== */
.content {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
footer {
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 60px;
}

footer a {
  color: var(--green);
  text-decoration: none;
}

/* ===== MOBILE MENU OVERLAY ===== */
#mobileMenuOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000000f5;
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 70px 20px 100px;
}

#mobileMenuOverlay.open {
  display: flex;
}

#mobileMenuOverlay .mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: 360px;
}

#mobileMenuOverlay .mobile-nav-links li a {
  display: block;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 13px 20px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #1e1e1e;
  background: #111;
  width: 100%;
}

#mobileMenuClose {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav {
    padding: 12px 16px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-search {
    display: none;
  }

  #menuToggle {
    display: flex !important;
  }

  .page-header {
    padding: 28px 16px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .filters {
    padding: 14px 16px;
  }

  .content {
    padding: 16px;
  }
}
