/* ============================================================
   FILFINDZ  –  Shared / Global Styles
   ============================================================ */

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

:root {
  --bg:       #1C1C1C;
  --surface:  #111111;
  --surface2: #181818;
  --border:   #222222;
  --border2:  #2e2e2e;
  --text:     #efefef;
  --muted:    #777;
  --accent:   #12B500;
  --accent2:  #474747;
  --card-bg:  #141414;
  --radius:   10px;
}
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ── Header ── */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9,9,9,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-active { color: var(--text) !important; background: var(--surface2) !important; }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border2);
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.header-btn:hover { border-color: #555; color: var(--text); }
.more-agents-btn {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  white-space: nowrap;
}
.more-agents-btn:hover { background: rgba(18,181,0,0.08) !important; }
.main-site-btn {
  border-color: #555 !important;
  color: #ccc !important;
  white-space: nowrap;
}
.main-site-btn:hover { border-color: #888 !important; color: #fff !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.2s;
}
.burger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-open span:nth-child(2) { opacity: 0; }
.burger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Marquee ── */
.marquee-bar {
  background: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-content {
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Page wrapper ── */
.page-content { flex: 1; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  max-width: 280px;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-cols { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: #444;
}
.footer-bottom a { color: #555; text-decoration: underline; }
.footer-bottom a:hover { color: var(--text); }

/* ── Shared page hero ── */
.page-hero {
  padding: 64px 24px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.page-hero-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 80px);
  letter-spacing: 3px;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 16px;
}
.page-hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.65;
}

/* ── Prose content ── */
.prose-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.prose-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--text);
  margin: 40px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.prose-section h2:first-child { margin-top: 0; border-top: none; }
.prose-section p { color: #aaa; line-height: 1.75; margin-bottom: 14px; font-size: 15px; }
.prose-section ul { padding-left: 20px; margin-bottom: 14px; }
.prose-section ul li { color: #aaa; line-height: 1.75; margin-bottom: 6px; font-size: 15px; }
.prose-section a { color: var(--accent); text-decoration: underline; }
.prose-section strong { color: var(--text); }
.prose-section .last-updated {
  font-size: 12px;
  color: #444;
  margin-bottom: 32px;
  font-style: italic;
}

/* ── Prevent scroll when mobile nav is open ── */
body.nav-is-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ── Mobile nav community buttons ── */
.nav-community {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #222;
}
.nav-platform-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-discord {
  border-color: #5865F2 !important;
  color: #5865F2 !important;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nav-discord:hover, .nav-discord:active { background: rgba(88,101,242,0.12) !important; }
.nav-telegram {
  border-color: #29A8E9 !important;
  color: #29A8E9 !important;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nav-telegram:hover, .nav-telegram:active { background: rgba(41,168,233,0.12) !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    padding: 80px 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav.nav-open .nav-community { display: flex; }
  .main-nav.nav-open .nav-discord,
  .main-nav.nav-open .nav-telegram { display: flex; }
  .nav-link {
    font-size: 26px;
    font-weight: 600;
    padding: 12px 32px;
    color: #efefef !important;
    background: transparent;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    border: 1px solid #222;
    transition: background 0.15s, border-color 0.15s;
  }
  .nav-link:hover, .nav-link:active { background: #1a1a1a; border-color: #333; }
  .nav-active { background: #1a1a1a !important; border-color: var(--accent) !important; color: var(--accent) !important; }
  .burger { display: flex; z-index: 10000; position: relative; }
  .burger span { background: #efefef; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
}

/* ── Agent Switcher – styled entirely via inline JS, no CSS needed ── */

/* ============================================================
   MOBILE RESPONSIVE — shared
   ============================================================ */

@media (max-width: 768px) {
  /* Hide social/discord buttons, keep only agent switcher + burger */
  .header-btn { display: none; }
  .more-agents-btn { display: inline-flex !important; font-size: 11px; padding: 5px 10px; }
  .main-site-btn { display: inline-flex !important; font-size: 11px; padding: 5px 10px; }
  .header-inner { padding: 12px 16px; gap: 12px; }
}

@media (max-width: 480px) {
  .logo { font-size: 22px; letter-spacing: 2px; }

  /* Page hero */
  .page-hero { padding: 32px 16px 24px; }
  .page-hero h1 { font-size: clamp(32px, 11vw, 52px); letter-spacing: 1px; margin-bottom: 12px; }
  .page-hero p { font-size: 14px; }

  /* Footer */
  .footer-inner { padding: 28px 16px 20px; }
  .footer-cols { gap: 20px; }
  .footer-bottom { padding: 12px 16px; font-size: 11px; }

  /* Prose pages */
  .prose-section { padding: 0 16px 48px; }
  .prose-section h2 { font-size: 22px; }
  .prose-section p, .prose-section ul li { font-size: 14px; }
}
