/* ==========================================================================
   Footer — element-scoped styles for the site footer
   --------------------------------------------------------------------------
   Brand + tagline + social, two link columns, a (static) server-status card
   and a bottom bar. Shared theme tokens (the --qr-* variables) are defined in
   qubitrp.css and consumed here. Loaded after main.css / the inline styles,
   so these rules own the footer look.
   ========================================================================== */

.site-footer {
    background: linear-gradient(180deg, #10151a 0%, #0b0f13 100%);
    border-top: 1px solid var(--qr-border);
    color: #9aa3ad;
    padding: 64px 0 32px;
    position: relative;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------- Brand column */
.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    margin: 18px 0 22px;
    max-width: 300px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #8b939c;
}

/* Social buttons — dark rounded squares, accent on hover (matches reference) */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social .social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--qr-border);
    border-radius: 12px;
    color: #9aa3ad;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease,
                background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social .social-link:hover {
    color: #ffffff;
    background: var(--qr-green-soft);
    border-color: rgba(43, 189, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(43, 189, 246, 0.2);
}

/* -------------------------------------------------------------- Link columns */
.footer-heading {
    color: #eef3f8;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 22px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 14px;
}

.footer-nav a {
    color: #9aa3ad;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav a:hover {
    color: var(--qr-green);
    padding-left: 4px;
}

/* ------------------------------------------------------------ Powered-by line */
.footer-powered {
    margin: 22px 0 0;
    font-size: 0.85rem;
    color: #7c848d;
}

.footer-powered a {
    color: #9aa3ad;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-powered a:hover {
    color: var(--qr-green);
}

/* -------------------------------------------------------------- Bottom bar */
.footer-divider {
    height: 1px;
    background: var(--qr-border);
    margin: 48px 0 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright,
.footer-disclaimer {
    margin: 0;
    font-size: 0.85rem;
    color: #7c848d;
}

.footer-copyright a {
    color: #9aa3ad;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: var(--qr-green);
}

.footer-sep {
    margin: 0 8px;
    color: #4b535b;
}

/* ------------------------------------------------------------------ Mobile */
@media (max-width: 991.98px) {
    .site-footer {
        padding: 48px 0 28px;
        text-align: left;
    }
    .footer-tagline { max-width: none; }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
