/* FunParrots.com — Shared Styles
   Covers: base, nav, footer, page layouts, legal/content, mobile breakpoints.
   Page-specific styles live in _pages/ template <style> blocks.
   ---------------------------------------------------------------- */

/* VARIABLES */
:root {
  --bg: #0c0c0c;
  --surface: #161616;
  --surface-up: #222;
  --accent: #fb923c;
  --accent-hover: #e07526;
  --teal: #2dd4a8;
  --warm: #f2a154;
  --blue: #4e8cff;
  --green: #4ade80;
  --text: #f0f0f0;
  --muted: #9a8fa8;
  --border: #2a2a2a;
  --heading: 'Sora', sans-serif;
  --body: 'DM Sans', -apple-system, sans-serif;
}

/* GLOBAL LINK RESET */
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }

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

/* BASE */
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------------
   SITE NAV
   ---------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #0f0f0f;
  border-bottom: 1px solid #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
}
.nav-logo { height: 36px; width: auto; border-radius: 6px; }
.tm { font-size: 0.5em; vertical-align: super; font-weight: 600; letter-spacing: 0; margin-left: -4px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--warm);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fde68a; }
.nav-links a.active { color: #4ade80; font-weight: 700; }
.nav-links a.active:hover { color: #86efac; }
.nav-links a.nav-bmc { color: #fbbf24; }
.nav-links a.nav-bmc:hover { color: #fde047; }
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--warm); border-radius: 1px; }
.nav-more-wrap { position: relative; }
.nav-more {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 6px 0;
  min-width: 160px;
  flex-direction: column;
  z-index: 200;
}
.nav-more.open { display: flex; }
.nav-more a {
  display: block;
  padding: 9px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--warm);
  border-bottom: 1px solid #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
}
.nav-more a:last-child { border-bottom: none; }
.nav-more a:hover { color: #fde68a; background: #161616; }
.nav-more a.active { color: #4ade80; font-weight: 700; }
.nav-more a.active:hover { color: #86efac; }
.nav-more a.nav-bmc { color: #fbbf24; }
.nav-more a.nav-bmc:hover { color: #fde047; }
.nav-divider { height: 1px; background: #2a2a2a; margin: 3px 0; }
.nav-more-mobile { display: none; }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 11px;
  color: #444;
  border-top: 1px solid #1a1a1a;
  margin-top: 2rem;
}
footer a { color: #555; text-decoration: none; margin: 0 5px; }
footer a:hover { color: var(--warm); }

/* ----------------------------------------------------------------
   PAGE LAYOUT (secondary pages: about, contact, privacy, terms)
   ---------------------------------------------------------------- */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.page-title {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}
.page-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 2rem; }
.page-updated { font-size: 0.8rem; color: var(--muted); margin-bottom: 2.5rem; }

/* CONTENT (about page) */
.content h2 { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: #fff; margin: 2.2rem 0 0.6rem; }
.content h2:first-child { margin-top: 0; }
.content p { color: #bbb; margin-bottom: 0.9rem; font-size: 0.92rem; line-height: 1.8; }
.content ul { color: #bbb; margin: 0 0 0.9rem 1.4rem; font-size: 0.92rem; line-height: 1.8; }
.content ul li { margin-bottom: 0.4rem; }
.content a { color: var(--accent); }
.content a:hover { text-decoration: underline; }

/* LEGAL (privacy, terms) */
.legal h2 { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: #fff; margin: 2.2rem 0 0.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: #bbb; margin-bottom: 0.9rem; font-size: 0.92rem; line-height: 1.8; }
.legal ul { color: #bbb; margin: 0 0 0.9rem 1.4rem; font-size: 0.92rem; line-height: 1.8; }
.legal ul li { margin-bottom: 0.3rem; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }

/* ----------------------------------------------------------------
   MOBILE
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-logo { display: none; }
  .nav-links { display: none !important; }
  .suggest-btn { display: none; }
  .nav-more-mobile { display: flex; flex-direction: column; }
  .nav-more a { font-size: 0.88rem; padding: 11px 20px; }
  .page-wrap { padding: 2rem 1rem 4rem; }
}

/* ----------------------------------------------------------------
   SUGGEST A SITE — nav button + modal
   ---------------------------------------------------------------- */
.suggest-btn {
  background: #fbbf24;
  color: #1a1200;
  border: none;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  letter-spacing: 0;
}
.suggest-btn:hover { background: #f59e0b; }

.suggest-btn-burger {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(251,191,36,0.1);
  border: none;
  border-bottom: 1px solid #1a1a1a;
  padding: 11px 20px;
  color: #fbbf24;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .01em;
}
.suggest-btn-burger:hover { background: rgba(251,191,36,0.2); }

.suggest-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.suggest-overlay.open { display: flex; }
.suggest-modal {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}
.suggest-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.suggest-modal-header h2 {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.suggest-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  margin-left: 12px;
  flex-shrink: 0;
}
.suggest-close:hover { color: #fff; }
.suggest-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.suggest-field {
  margin-bottom: 0.9rem;
  flex: 1;
}
.suggest-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.suggest-req { color: #ef4444; font-weight: 700; }
.suggest-opt { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.72rem; }
.suggest-field input,
.suggest-field select,
.suggest-field textarea {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 8px 11px;
  color: #f0f0f0;
  font-family: var(--body);
  font-size: 0.88rem;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.suggest-field input:focus,
.suggest-field select:focus,
.suggest-field textarea:focus { outline: none; border-color: #fbbf24; }
.suggest-field input::placeholder,
.suggest-field textarea::placeholder { color: #444; }
.suggest-field textarea { resize: vertical; min-height: 72px; }
.suggest-field select { appearance: none; cursor: pointer; }
.suggest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.suggest-actions { display: flex; align-items: center; gap: 12px; margin-top: 1rem; }
.suggest-submit {
  background: #fbbf24;
  color: #1a1200;
  border: none;
  border-radius: 7px;
  padding: 9px 20px;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.suggest-submit:hover { background: #f59e0b; }
.suggest-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.suggest-cancel {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--body);
}
.suggest-cancel:hover { color: #fff; }
.suggest-success {
  background: #0a2a0a;
  border: 1px solid #4ade80;
  color: #86efac;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}
@media (max-width: 480px) {
  .suggest-row { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   ADSENSE — collapse unfilled slots (no reserved blank space)
   AdSense stamps data-ad-status="unfilled" when no ad serves.
   Collapsing on it is policy-safe (clipping FILLED ads is not).
   ---------------------------------------------------------------- */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* collapse the wrapper too, so no padding/margin gap remains */
.ad-strip:has(> ins.adsbygoogle[data-ad-status="unfilled"]),
tr.inline-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.home-ad:has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
