/* ============================================================
   Xmanga — site footer (components.js → siteFooter()).
   Ends the Discover and Account pages. Brand kit: assets/brand/.
   ============================================================ */
.site-footer { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-2); }

/* promo card (non-members only) */
.sf-promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding: 18px 18px 18px 20px;
  border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(115deg, var(--accent) 0%, #c42d0e 45%, var(--pink) 100%);
  box-shadow: 0 10px 28px rgba(214, 54, 15, .25);
}
.sf-promo::before { /* manga halftone, fading in from the right */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .7) 1.1px, transparent 1.6px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}
.sf-promo-text { flex: 1; min-width: 0; }
.sf-promo-title { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.sf-promo-sub { margin-top: 3px; font-size: 13.5px; opacity: .88; }
.sf-promo-btn {
  flex: none; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: #fff; color: #8f1d06; box-shadow: 0 2px 10px rgba(40, 14, 0, .2);
}
.sf-promo:active { transform: scale(.99); }

/* brand + link columns */
.sf-main { display: grid; gap: 24px; }
.sf-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.sf-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 4px 10px rgba(214, 54, 15, .3)); }
.sf-name { font-size: 21px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.sf-x { background: linear-gradient(100deg, var(--accent-light), var(--accent) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-tag { font-size: 13px; color: var(--muted); margin-top: 2px; }

.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sf-col-title { margin-bottom: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sf-link { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-link:hover, .sf-link:focus-visible { color: var(--accent-light); }

.sf-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  margin-top: 24px; padding: 14px 0 6px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
}

@media (min-width: 720px) {
  .sf-main { grid-template-columns: minmax(220px, 1fr) 2fr; align-items: start; }
  .sf-promo { padding: 20px 22px 20px 26px; }
  .sf-promo-title { font-size: 17px; }
}

/* Lite: opaque, no gradients or shadows */
html[data-style="lite"] .sf-promo { background: var(--accent); box-shadow: none; }
html[data-style="lite"] .sf-promo::before { display: none; }
html[data-style="lite"] .sf-mark { filter: none; }
/* AMOLED: hairline instead of glow */
html[data-scheme="amoled"] .sf-promo { box-shadow: none; }
html[data-scheme="amoled"] .site-footer, html[data-scheme="amoled"] .sf-bottom { border-color: #181614; }
