/* ============================================================
   footer.css — StockTrendz AI footer + global layout norms
   Loaded on every page via _navbar.html <link>
   ============================================================ */

/* ── 1. Footer always sticks to bottom ────────────────────── */
html  { min-height: 100%; overflow-x: hidden; }
body  { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
footer.footer { margin-top: auto; }

/* ── 2. Page-level content wrappers — navbar offset + padding
        Navbar height ≈ 60px (58px inner + 2px accent line).
        All top-level wrappers get at least padding-top:64px
        so content never hides under the sticky navbar.       */
.page-body,
.sig-body,
.panel-body,
.mh-content,
.page-content,
.sa-page,
.section,
.hub-wrap,
.journal-shell,
.shell-main,
.at-page,
.page {
  flex: 1 0 auto;
}

/* ── 3. Consistent horizontal max-width & centering ────────── */
.page-body  { max-width: 1280px; margin: 0 auto; padding: 80px 24px 80px; width: 100%; box-sizing: border-box; }
.mh-inner,
.mh-content { max-width: 1200px !important; }
.section    { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

/* ── 4. Signal page hero spacing ────────────────────────────── */
.sig-hero   { padding-top: 100px !important; }

/* ── 5. Responsive padding ──────────────────────────────────── */
@media (max-width: 768px) {
  .page-body  { padding: 72px 16px 60px; }
  .section    { padding-left: 16px; padding-right: 16px; }
  .mh-content { padding: 0 16px 60px !important; }
}
@media (max-width: 480px) {
  .page-body  { padding: 68px 12px 48px; }
}

/* ══════════════════════════════════════════════════════════════
   Footer component styles
   ══════════════════════════════════════════════════════════════ */

.footer {
  background: #0a0b14;
  border-top: 1px solid #1c1e30;
  font-family: 'Sora', sans-serif;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 48px 32px;
  border-bottom: 1px solid #1c1e30;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Brand column */
.footer-brand-col { flex: 0 0 170px; min-width: 150px; }
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; margin-bottom: 10px;
}
.footer-brand .logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-brand .logo-mark svg { width: 16px; height: 16px; stroke: #fff; }
.footer-brand-name { font-size: 14px; font-weight: 800; color: #e6e8f2; }
.footer-brand-tag {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4); color: #fff;
  font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 4px;
}
.footer-tagline { font-size: 12px; color: #6b7091; line-height: 1.6; max-width: 165px; margin: 0; }

/* Link columns */
.footer-links-col {
  display: flex; gap: 36px; flex-wrap: wrap; flex: 1; justify-content: center;
}
.footer-link-group-title {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #9296b5; margin-bottom: 12px;
}
.footer-link-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-link-group a { font-size: 13px; color: #6b7091; text-decoration: none; transition: color .15s; white-space: nowrap; }
.footer-link-group a:hover { color: #e6e8f2; }

/* Social column */
.footer-social-col { flex: 0 0 120px; min-width: 110px; }
.footer-social-title {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #9296b5; margin-bottom: 12px;
}
.footer-social-links { display: flex; flex-direction: column; gap: 8px; }
.footer-social-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #6b7091; text-decoration: none; transition: color .15s;
}
.footer-social-link:hover { color: #e6e8f2; }
.footer-social-link svg { flex-shrink: 0; }

/* Bottom bar */
.footer-bottom {
  padding: 14px 48px;
  background: rgba(0,0,0,.2);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.footer-sebi-row { width: 100%; margin-bottom: 6px; }
.footer-sebi {
  font-size: 11px; color: #4b5075; line-height: 1.6; text-align: left; max-width: 100%; margin: 0;
}
.footer-sebi strong { color: rgba(245,158,11,.75); }
.footer-copy { font-size: 11px; color: #3a3c58; white-space: nowrap; flex-shrink: 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-inner  { padding: 28px 28px 24px; gap: 28px; }
  .footer-bottom { padding: 12px 28px; }
  .footer-links-col { justify-content: flex-start; gap: 28px; }
}
@media (max-width: 600px) {
  .footer-inner  { flex-direction: column; padding: 24px 20px 20px; gap: 20px; }
  .footer-brand-col, .footer-social-col { flex: none; }
  .footer-bottom { padding: 12px 20px; }
  .footer-sebi-row { margin-bottom: 4px; }
}
