/* ==================================================
   footer.css — Site footer
   Split from index.html lines 5297–5529 on 2026-04-23
   ================================================== */

  /* ================= SITE FOOTER — premium marketplace layout =================
   * Compressed 2026-04-29 — fonts, padding, gaps stepped down ~25-30%
   * so the footer doesn't tower over the page.
   * ============================================================================ */
  .site-footer {
    background: #090A0D;
    color: #d6dae3;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
    border-radius: 24px;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    margin: 32px auto 24px;
  }
  /* Desktop: footer sits in row 4 of the grid, center column only.
   * Locked to 600×600 per design spec. The parent grid handles the
   * horizontal centering — no more margin-pushers. */
  @media (min-width: 961px) {
    .container > .site-footer {
      grid-column: 2;
      grid-row: 4;
      max-width: 600px;
      height: 600px;
      padding-bottom: 0;
    }
  }
  @media (max-width: 960px) {
    .site-footer { border-radius: 0; padding-bottom: 96px; /* clears mobile dock */ }
  }
  /* Hide special insets on Admin / Login. */
  body:has(#adminView.active) .site-footer,
  body:has(#loginView.active) .site-footer {
    display: none;
  }
  .sf-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* ---- Main grid: 5-col on wide layouts, condensed to 2-col when the
     footer is locked to 600×600 in the center column. === */
  .sf-main {
    padding: 24px 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.2fr 1.5fr;
    gap: 28px;
    align-items: start;
    flex: 1;
  }
  /* Inside the locked 600px center-column footer, drop to 2 columns and
     scroll the link lists inside the fixed height. */
  @media (min-width: 961px) {
    .container > .site-footer .sf-main {
      grid-template-columns: 1fr 1fr;
      gap: 18px 24px;
      padding: 18px 0 8px;
      overflow: hidden;
    }
    .container > .site-footer .sf-col ul {
      max-height: 110px;
      overflow-y: auto;
      scrollbar-width: thin;
    }
    .container > .site-footer .sf-col {
      min-width: 0;
    }
  }
  .sf-col { display: flex; flex-direction: column; }
  .sf-col__h {
    color: #fff;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    text-transform: uppercase;
  }
  .sf-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .sf-col a {
    color: #9aa0ac;
    text-decoration: none;
    font-size: 11.5px;
    line-height: 1.4;
    transition: color 0.15s;
  }
  .sf-col a:hover { color: #fff; text-decoration: none; }

  /* ---- Creator CTA card ---- */
  .sf-cta {
    background: linear-gradient(150deg, #F85059 0%, #e31c5f 55%, #b80a4a 100%);
    border-radius: 14px;
    padding: 16px 14px;
    color: #fff;
    box-shadow:
      0 8px 18px -10px rgba(248, 80, 89, 0.5),
      0 2px 0 rgba(255, 255, 255, 0.12) inset;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
  }
  .sf-cta__title {
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.25;
    margin: 0;
    letter-spacing: -0.01em;
  }
  .sf-cta__title em { font-style: italic; font-weight: 600; }
  .sf-cta__btn {
    display: inline-flex;
    align-self: flex-start;
    background: #fff;
    color: #b80a4a;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  .sf-cta__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2); color: #8b0538 !important; }

  /* ---- Trust / Payments column ---- */
  .sf-trust { display: flex; flex-direction: column; gap: 14px; }
  .sf-trust__group .sf-col__h { margin-bottom: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: #b7bcc7; }
  .sf-pills { display: flex; flex-wrap: wrap; gap: 4px; }
  .sf-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: #d6dae3;
    letter-spacing: 0.02em;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
  }
  .sf-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
  }
  .sf-pill--pay {
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  /* ---- Social row — separate horizontal band ---- */
  .sf-social-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .sf-social-row__label {
    color: #b7bcc7;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .sf-social-list {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .sf-social-list a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
  }
  .sf-social-list a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
  }

  /* ---- Bottom legal row ---- */
  .sf-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 10.5px;
    color: #9aa0ac;
  }
  .sf-legal__copy { letter-spacing: 0.02em; }
  .sf-legal__links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .sf-legal__links a {
    color: #9aa0ac;
    text-decoration: none;
    transition: color 0.15s;
  }
  .sf-legal__links a:hover { color: #fff; }
  .sf-chain {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9aa0ac;
    font-family: var(--mono);
  }
  .sf-chain-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #7ddb9f;
    box-shadow: 0 0 8px rgba(125, 219, 159, 0.7);
  }

  /* ---- Responsive ---- */
  @media (max-width: 1100px) {
    .sf-main {
      grid-template-columns: 1fr 1fr 1fr;
      gap: 36px 32px;
    }
    /* CTA and Trust drop to a 2-col row below the links */
    .sf-col--cta, .sf-col--trust {
      grid-column: span 3;
    }
    .sf-col--cta { grid-row: 2; }
    .sf-col--trust { grid-row: 3; }
  }
  @media (max-width: 820px) {
    .sf-main {
      grid-template-columns: 1fr 1fr;
      gap: 32px 24px;
      padding: 48px 0 36px;
    }
    .sf-col--cta, .sf-col--trust { grid-column: span 2; }
  }
  @media (max-width: 560px) {
    .sf-container { padding: 0 22px; }
    .sf-main {
      grid-template-columns: 1fr;
      padding: 40px 0 32px;
      gap: 28px;
    }
    .sf-col--cta, .sf-col--trust { grid-column: span 1; }
    .sf-legal {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .site-footer { padding-bottom: 140px; }
  }
