/* ==========================================================================
   FastJoins — footer (public pages). Square corners, like the dashboard.
   ========================================================================== */
.footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: var(--bg-raised);
    color: var(--text-2);
    font-size: 14px;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 20% 0%, #000 0%, transparent 60%);
    pointer-events: none;
}
.footer-glow { position: absolute; top: -160px; left: 50%; width: 900px; height: 260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(60, 120, 242, 0.18), transparent); pointer-events: none; }
.footer > :not(.footer-glow) { position: relative; }

.footer-inner,
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.footer-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: 48px; padding-top: 48px; padding-bottom: 36px; }

.footer-brand .brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text); font-size: 17px; font-weight: 800; }
.footer-brand .brand img { border-radius: 6px; box-shadow: 0 6px 18px -6px rgba(60, 120, 242, 0.6); }
.footer-brand p { max-width: 340px; color: var(--text-3); line-height: 1.6; }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.footer-discord { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 6px; background: #5865f2; color: #fff !important; font-weight: 600; transition: background-color 0.15s, transform 0.15s; }
.footer-discord:hover { background: #4752c4; transform: translateY(-1px); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.footer-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.footer-status[data-state="operational"] i { background: var(--green); box-shadow: 0 0 0 3px rgba(47, 179, 107, 0.2); }
.footer-status[data-state="degraded"] i { background: var(--amber); box-shadow: 0 0 0 3px rgba(229, 162, 58, 0.2); }
.footer-status[data-state="outage"] i { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 90, 111, 0.2); }
.footer-status[hidden] { display: none; }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-title { margin-bottom: 4px; color: var(--text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }

.footer a { color: var(--text-2); text-decoration: none; transition: color 0.15s; }
.footer-cols a { position: relative; align-self: flex-start; }
.footer-cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.2s var(--ease); }
.footer a:hover { color: var(--text); }
.footer-cols a:hover::after { transform: scaleX(1); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }
.footer-bottom a { color: var(--text); font-weight: 600; }
.footer-made { margin-left: auto; }
.footer-top { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; transition: color 0.15s, transform 0.2s var(--ease), border-color 0.15s; }
.footer-top:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }

@media (max-width: 860px) {
    .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
    .footer { padding-bottom: 64px; }
    .footer-inner { padding: 36px 16px 24px; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
    .footer-bottom { flex-wrap: wrap; padding: 16px; }
    .footer-made { margin-left: 0; order: 3; width: 100%; }
}
