/* TiredAF — Danfo look & Bespoke Editorial Typography (RantRam / Zikoko inspired).
   100% Free Open-Source Fonts (SIL Open Font License - zero commercial penalties).
   Loads AFTER style.css and overrides it. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@500;600&display=swap');
@import url('/css/transit-bg.css?v=1');

:root {
  --danfo: #ffc400; --stripe: #0b0a0f; --nepa: #ff4d3d;
  --bg-primary: #14121b; --bg-secondary: #1b1825; --bg-card: #1f1c2a; --bg-card-hover: #272335;
  --amber: var(--danfo); --amber-soft: rgba(255,196,0,.14); --amber-border: rgba(255,196,0,.35);
  --text-primary: #f7f5ff; --text-secondary: #dcd8ec; --text-muted: #938ea8;
  --radius-lg: 14px; --radius-md: 12px;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bricolage Grotesque', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body, input, textarea, select, button {
  font-family: var(--font-body) !important;
  letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, .page-title, .section-title, .auth-logo-text, .post-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.022em;
}
.logo, .footer-logo {
  font-family: var(--font-display) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-badge { background: var(--danfo); color: var(--stripe); border-radius: 6px; font-weight: 800; }

/* Slim Danfo Yellow & Black Install Banner (zero green) */
.pwa-banner {
  background: var(--danfo) !important;
  color: var(--stripe) !important;
  border: 2px solid var(--stripe) !important;
  border-radius: 10px !important;
  padding: 0.45rem 0.75rem !important;
  margin-bottom: 0.85rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  box-shadow: 0 3px 0 var(--stripe);
}
.pwa-banner-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--stripe) !important;
  min-width: 0;
}
.pwa-banner-text strong {
  color: var(--stripe) !important;
  font-family: var(--font-display) !important;
  font-weight: 800;
  font-size: 0.84rem;
  display: inline;
  margin-right: 0.35rem;
}
.pwa-banner-sub {
  font-size: 0.75rem;
  color: #231c00 !important;
  font-weight: 600;
}
.pwa-banner-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--stripe);
  color: var(--danfo);
  flex-shrink: 0;
}
.pwa-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.pwa-install-cta {
  background: var(--stripe) !important;
  color: var(--danfo) !important;
  border: 1.5px solid var(--stripe) !important;
  padding: 0.28rem 0.68rem !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  border-radius: 7px !important;
}
.pwa-dismiss-btn {
  background: transparent;
  border: 0;
  color: var(--stripe);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  line-height: 1;
}

/* Hero = the side of a danfo: yellow body, black stripe */
.hero-card { background: var(--danfo); color: var(--stripe); border: 0; border-radius: 16px;
  padding: 1.75rem 1.4rem 0; box-shadow: none; backdrop-filter: none; overflow: hidden; margin-bottom: 1.15rem; }
.hero-card::before { display: none; }
.hero-title { font-family: var(--font-display) !important; font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(2.15rem, 7vw, 3.25rem); line-height: 1.05;
  color: var(--stripe); margin: 0 0 .7rem; max-width: 17ch; }
.hero-desc { color: #231c00; font-size: 1.04rem; font-weight: 500; line-height: 1.5; max-width: 48ch; margin-bottom: 1.15rem; }
.hero-card .btn { background: var(--stripe); color: var(--danfo); border: 2px solid var(--stripe); box-shadow: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-card .btn-ghost { background: transparent; color: var(--stripe); }
.hero-card .btn:hover { transform: translateY(-1px); }
.hero-stats { margin-top: .4rem; font-weight: 600; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.hero-stat-item { display: inline-flex; align-items: center; gap: 0.4rem; color: #1c1600; font-size: 0.88rem; }
.hero-stat-item span { color: #1c1600; }
.hero-stripe { background: var(--stripe); color: var(--danfo); margin: 1.25rem -1.4rem 0; padding: .65rem 1.4rem;
  font-family: var(--font-display) !important; font-weight: 700; letter-spacing: 0.01em; font-size: .88rem; overflow: hidden; white-space: nowrap; }
.hero-stripe span { display: inline-block; animation: slogan 16s linear infinite; padding-left: 100%; }
@keyframes slogan { to { transform: translateX(-100%); } }

/* Collapsed Slim Hero Bar after first visit */
.hero-card.hero-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.hero-card.hero-slim .hero-title {
  font-size: clamp(1.1rem, 3.8vw, 1.35rem);
  margin: 0;
  max-width: none;
}
.hero-card.hero-slim .hero-desc,
.hero-card.hero-slim .hero-stats,
.hero-card.hero-slim .hero-stripe,
.hero-card.hero-slim .hero-actions .btn-ghost {
  display: none !important;
}
.hero-card.hero-slim .hero-actions {
  margin-bottom: 0 !important;
  flex-shrink: 0;
}
.hero-card.hero-slim .hero-actions .btn {
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
}

/* Responsive Feed + Sidebar Layout (Inline on mobile, 2-col above 1100px) */
.layout-grid {
  display: flex;
  flex-direction: column;
}
.feed-side-col {
  order: -1;
}
.feed-main-col {
  min-width: 0;
  width: 100%;
}
@media (min-width: 1101px) {
  .container {
    max-width: 1140px !important;
  }
  .layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1.5rem;
    align-items: start;
  }
  .feed-side-col {
    order: 0;
    position: sticky;
    top: 72px;
  }
}

/* Today's gbege prompt */
.prompt-card { display: flex; gap: .9rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--bg-card); border: 2px dashed var(--amber-border); border-radius: var(--radius-lg);
  padding: 1rem 1.15rem; margin-bottom: 1.1rem; }
.prompt-card strong { display: block; font-family: var(--font-display) !important; font-weight: 800; letter-spacing: -0.02em; font-size: 1.02rem; color: var(--danfo); }
.prompt-card p { font-size: 1.02rem; margin-top: .15rem; font-weight: 500; color: var(--text-primary); }
.trending { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; font-size: .85rem; color: var(--text-secondary); }

/* Interactive Feed Toolbar (Sticky Sort Tabs under header + Community Pulse) */
.feed-toolbar {
  position: sticky;
  top: 57px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding: 0.45rem 0.55rem;
  background: rgba(31, 28, 42, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.feed-sort-tabs {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.sort-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.sort-tab.active {
  background: var(--amber-soft);
  color: var(--danfo);
  border-color: var(--amber-border);
  font-weight: 700;
}
.naija-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

/* Rant cards: danfo-yellow edge + generous reading typography */
.post-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--danfo);
  border-radius: 12px;
  padding: 1.25rem 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.post-card::after { display: none; }
.post-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: var(--nepa);
}
.post-title {
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.34;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}
.post-excerpt {
  font-family: var(--font-body) !important;
  font-weight: 450;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}
.alias {
  font-family: var(--font-mono) !important;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--danfo);
  letter-spacing: -0.02em;
}

/* Two-Tier Clean Card Footer (Separates Reactions & Stats from Social Share & Boost) */
.card-engage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.feed-reactions {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
}
.feed-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.feed-react-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.feed-react-btn.fr-active {
  border-color: var(--amber, #ffc400) !important;
  background: rgba(255, 196, 0, 0.16) !important;
  color: var(--text-primary);
}
.na-me-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 0.1rem;
  white-space: nowrap;
}
.card-metrics-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.6rem;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.15s ease;
}
button.metric-pill {
  cursor: pointer;
}
button.metric-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
button.metric-pill.liked {
  color: #ff4d6d;
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.12);
}

/* Tier 2: Tags on Left + Single Share Dropdown & SVG Boost on Right */
.post-card {
  overflow: visible !important;
}
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.share-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: auto;
}
.share-dropdown-wrap {
  position: relative;
  display: inline-flex;
}
.share-dropdown-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 175px;
  background: #231f30;
  border: 1px solid rgba(255, 196, 0, 0.32);
  border-radius: 10px;
  padding: 0.32rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.share-dropdown-menu.hidden {
  display: none !important;
}
.share-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.share-menu-item:hover {
  background: rgba(255, 196, 0, 0.14);
  color: var(--danfo);
}
.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 32px;
  padding: 0 0.62rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.share-icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.share-icon-btn.boost-btn {
  color: var(--danfo);
  border-color: rgba(255, 196, 0, 0.32);
  background: rgba(255, 196, 0, 0.07);
  font-weight: 700;
}
.share-icon-btn.boost-btn:hover {
  background: var(--danfo);
  color: var(--stripe);
  border-color: var(--danfo);
}

.share-chip { border-radius: 999px; }
.btn { border-radius: 10px; font-weight: 700; }
.fab {
  background: var(--danfo);
  color: var(--stripe);
  box-shadow: 0 6px 0 var(--stripe);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guest-btn { background: var(--danfo); color: var(--stripe); margin-bottom: .2rem; }
.care-note { background: var(--amber-soft); border: 1px solid var(--amber-border); border-radius: 10px;
  padding: .9rem 1rem; margin-top: .9rem; font-size: .92rem; }

:focus-visible { outline: 3px solid var(--danfo); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hero-stripe span { animation: none; padding-left: 0; } * { scroll-behavior: auto !important; } }

/* =====================================================
   MOBILE & MULTI-DEVICE OPTIMIZATIONS (Zero overflow at 360px)
   ===================================================== */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tags-row,
#tag-filters.filter-bar {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0.42rem;
  padding-bottom: 0.25rem;
  max-width: 100%;
}
.tags-row::-webkit-scrollbar,
#tag-filters.filter-bar::-webkit-scrollbar { display: none; }
.tags-row .tag,
#tag-filters .tag {
  flex-shrink: 0;
  white-space: nowrap;
}
.tag-more-btn {
  background: var(--amber-soft) !important;
  color: var(--danfo) !important;
  border: 1px dashed var(--amber-border) !important;
  font-weight: 700 !important;
  cursor: pointer;
}

@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="password"], textarea, select {
    font-size: 16px !important; /* iOS Safari auto-zoom prevention */
  }
  .container { padding: 0.9rem 0.75rem; }
  .hero-card { padding: 1.25rem 0.95rem 0; border-radius: 14px; }
  .hero-title { font-size: 2rem; }
  .post-card { padding: 1rem 0.9rem; }
  .post-title { font-size: 1.12rem; }
  .post-excerpt { font-size: 0.95rem; line-height: 1.62; }
  .share-icon-btn { padding: 0 0.55rem; height: 32px; }
  .feed-react-btn { padding: 0.22rem 0.46rem !important; font-size: 0.82rem !important; min-height: 30px; }
  .fab { width: 50px; height: 50px; bottom: 1.2rem; right: 1.2rem; }
  .prompt-card { padding: 0.85rem 0.9rem; }
  .naija-pulse-pill { width: 100%; justify-content: center; }
  .feed-sort-tabs { width: 100%; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .feed-sort-tabs::-webkit-scrollbar { display: none; }
  .sort-tab { flex: 1 0 auto; justify-content: center; padding: 0.38rem 0.45rem; font-size: 0.76rem; white-space: nowrap; }
}

@media (max-width: 400px) {
  header { padding: 0.65rem 0.65rem !important; gap: 0.35rem; }
  .logo { font-size: 1.18rem !important; }
  .logo-subtag { display: none !important; }
  .container { padding: 0.7rem 0.55rem !important; }
  .hero-card.hero-slim { padding: 0.55rem 0.75rem; gap: 0.45rem; }
  .hero-card.hero-slim .hero-title { font-size: 1.02rem; }
  .hero-card.hero-slim .hero-actions .btn { padding: 0.36rem 0.65rem; font-size: 0.76rem; }
  .pwa-banner { padding: 0.4rem 0.55rem !important; gap: 0.4rem; }
  .pwa-banner-sub { display: none; }
  .feed-toolbar { padding: 0.35rem 0.4rem; gap: 0.45rem; top: 52px; }
  .sort-tab { padding: 0.34rem 0.36rem; font-size: 0.72rem; gap: 0.22rem; }
  .sort-tab svg { width: 12px; height: 12px; }
  .post-card { padding: 0.85rem 0.75rem; }
  .feed-reactions { gap: 0.24rem; }
  .feed-react-btn { padding: 0.2rem 0.38rem !important; font-size: 0.78rem !important; }
  .na-me-label { font-size: 0.71rem; }
  .metric-pill { padding: 0.2rem 0.45rem; font-size: 0.74rem; }
}

/* =====================================================
   MONETIZATION & PROMOTED POSTS STYLES
   ===================================================== */
.post-card.is-boosted {
  border-left-color: #ffd700 !important;
  border: 1px solid rgba(255, 215, 0, 0.45) !important;
  background: linear-gradient(135deg, rgba(255,215,0,0.06), var(--bg-card)) !important;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.12) !important;
}
.boosted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: linear-gradient(90deg, #ffd700, #ff9900);
  color: #0b0a0f;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sponsor-card {
  background: linear-gradient(135deg, rgba(255,196,0,0.09), rgba(32,29,43,0.95));
  border: 1px dashed var(--amber-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sponsor-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--danfo);
  font-weight: 800;
}
.sponsor-title {
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text-primary);
  margin-top: 0.2rem;
}
.sponsor-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}
