/* ==========================================================================
   Site footer (templates/footer.php)
   --------------------------------------------------------------------------
   Every rule for the footer lives here; footer.php links this file just
   before the footer, so it never holds up the top of the page, and it is the
   same on every page. Layout:

     [logo]            QUICK LINKS   GAMES     GUIDES     COMPANY   POLICIES
     one-line pitch    Home          Aion ..   Vote ..    About us  Privacy ..
     [f] [x]           ...
     ------------------------------------------------------------------------
     (c) 2026 Ranked Private Servers. All rights reserved.

   Group titles are Orbitron small caps, links Rajdhani. Under 1100px the
   brand becomes a row above the link columns; at 600px and below each group
   folds into an accordion (details/summary; footer.php closes them there).
   ========================================================================== */
.site-footer {
    --ft-line: rgba(0, 255, 255, 0.12);
    --ft-ink: #c3c9d4;
    --ft-ink-2: #9aa0aa;
    --ft-ink-3: #7c8594;
    --ft-accent: var(--primary-color, #00ffff);
    position: relative;
    margin-top: 56px;
    padding: 46px 0 0;
    border-top: 1px solid rgba(0, 255, 255, 0.14);
    background:
        radial-gradient(90% 180px at 50% 0%, rgba(0, 255, 255, 0.05), rgba(0, 255, 255, 0) 100%),
        #08080c;
    color: var(--ft-ink-2);
    font-family: var(--font-family, 'Rajdhani', sans-serif);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}
/* a lit strip across the middle of the top edge */
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0) 0%, rgba(0, 255, 255, 0.55) 50%, rgba(0, 255, 255, 0) 100%);
    pointer-events: none;
}

.site-footer .ft-top {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) minmax(0, 4fr);
    gap: 44px;
    padding-bottom: 38px;
}

/* ---------- brand ---------- */
.site-footer .ft-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}
.site-footer .ft-logo { display: inline-block; flex: 0 0 auto; line-height: 0; }
.site-footer .ft-logo img { display: block; width: 76px; height: 76px; }
.site-footer .ft-pitch {
    margin: 0;
    max-width: 32ch;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--ft-ink-2);
}
.site-footer .ft-share { display: flex; align-items: center; gap: 8px; }
.site-footer .ft-share-label {
    margin-right: 4px;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ft-ink-3);
}
.site-footer .ft-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 255, 255, 0.22);
    background: rgba(0, 255, 255, 0.04);
    color: var(--ft-ink);
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.site-footer .ft-share a:hover {
    border-color: var(--ft-accent);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.2);
    color: #ffffff;
    text-shadow: none;
}
.site-footer .ft-share svg { display: block; }

/* ---------- link groups ---------- */
.site-footer .ft-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    min-width: 0;
}
.site-footer .ft-group { min-width: 0; margin: 0; padding: 0; }
.site-footer .ft-group > summary {
    display: block;
    margin: 0 0 12px;
    padding: 0 0 10px;
    list-style: none;
    /* a short cyan stroke at the start of a faint rule */
    background: linear-gradient(90deg, var(--ft-accent) 0, var(--ft-accent) 18px, var(--ft-line) 18px) left bottom / 100% 1px no-repeat;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
    cursor: default;
    pointer-events: none;
}
.site-footer .ft-group > summary::-webkit-details-marker { display: none; }
.site-footer .ft-group > summary::marker { content: ""; }
/* header.css lays out every "nav ul" as a row with !important (for the
   header's own menu) from 901px up; the footer's lists stay columns */
.site-footer .ft-group ul { display: block !important; margin: 0; padding: 0; list-style: none; }
.site-footer .ft-group li { margin: 0; padding: 0; }
.site-footer .ft-group a {
    display: inline-block;
    padding: 5px 0;
    color: var(--ft-ink);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: color .15s;
}
.site-footer .ft-group a:hover { color: var(--ft-accent); text-decoration: none; text-shadow: none; }
.site-footer .ft-group .ft-empty { padding: 5px 0; color: var(--ft-ink-3); }
.site-footer a:focus-visible,
.site-footer .ft-group > summary:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: 2px; }

/* ---------- bottom bar ---------- */
.site-footer .ft-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    padding: 16px 0 22px;
    border-top: 1px solid var(--ft-line);
}
.site-footer .ft-copy { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ft-ink-3); }

/* ---------- tablet: brand in a row above the columns ---------- */
@media (max-width: 1099px) {
    .site-footer .ft-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .site-footer .ft-brand { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
    .site-footer .ft-logo img { width: 64px; height: 64px; }
    .site-footer .ft-pitch { flex: 1 1 280px; max-width: 56ch; }
    .site-footer .ft-nav { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 26px 20px; }
}

/* ---------- phone: an accordion ---------- */
@media (max-width: 600px) {
    .site-footer { padding-top: 30px; }
    .site-footer .ft-top { gap: 22px; padding-bottom: 6px; }
    .site-footer .ft-brand { gap: 14px 16px; }
    .site-footer .ft-logo img { width: 56px; height: 56px; }
    .site-footer .ft-pitch { flex-basis: 200px; font-size: 1rem; }
    .site-footer .ft-share { flex-basis: 100%; }
    .site-footer .ft-nav { display: block; border-top: 1px solid var(--ft-line); }
    .site-footer .ft-group { border-bottom: 1px solid var(--ft-line); }
    .site-footer .ft-group > summary {
        position: relative;
        margin: 0;
        padding: 17px 0 17px 28px;
        background: none;
        font-size: .74rem;
        cursor: pointer;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }
    /* A plus that turns into a minus. It sits before the title: the site's
       floating Home and Top buttons cover the right edge of the screen. */
    .site-footer .ft-group > summary::before,
    .site-footer .ft-group > summary::after {
        content: "";
        position: absolute;
        left: 2px;
        top: 50%;
        width: 12px;
        height: 2px;
        margin-top: -1px;
        background: var(--ft-accent);
        transition: transform .2s ease;
    }
    .site-footer .ft-group > summary::after { transform: rotate(90deg); }
    .site-footer .ft-group[open] > summary { color: var(--ft-accent); }
    .site-footer .ft-group[open] > summary::after { transform: rotate(0deg); }
    .site-footer .ft-group ul { padding: 0 0 10px; }
    .site-footer .ft-group a { display: block; padding: 11px 0 11px 28px; font-size: 1.06rem; }
    /* clear of the floating buttons at the bottom right */
    .site-footer .ft-bottom { justify-content: flex-start; padding: 18px 64px 24px 0; border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .ft-share a,
    .site-footer .ft-group a,
    .site-footer .ft-group > summary::before,
    .site-footer .ft-group > summary::after { transition: none; }
}
