/*
 * Site footer v2 (2026-10-25). Printed by template-parts/footer-v2.php on every page and language.
 * The old assets/css/footer.css still loads and styles .site-footer, so the base rules here use
 * .site-footer.gis-foot (two classes) and the inside uses new gf-* classes it has never seen.
 * Logical properties, so RTL languages (fa, ar, ur) need no second sheet.
 */
.site-footer.gis-foot {
    position: relative;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background:
        radial-gradient(620px 260px at 0% 0%, rgba(118, 75, 162, .38), transparent 70%),
        radial-gradient(520px 240px at 100% 0%, rgba(102, 126, 234, .22), transparent 70%),
        #14122b;
    font-family: var(--wp--preset--font-family--manrope, Manrope), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
/* The one colour moment: the site's gradient as a thin line where the page ends. */
.site-footer.gis-foot::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2 55%, #f472b6);
}
/* The v2 pages end on a full-width band, so the footer follows it directly; older pages keep a gap. */
body:not(.gis-v2) .site-footer.gis-foot { margin-top: 64px; }
.gis-foot *, .gis-foot *::before, .gis-foot *::after { box-sizing: border-box; }
.gis-foot :where(p, ul, li) { margin: 0; padding: 0; }
.gis-foot :where(ul) { list-style: none; }
.gis-foot a:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 3px; border-radius: 6px; }

.gf-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding: 44px 16px 28px; }

.gf-top { display: grid; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.gf-logo {
    display: inline-flex; align-items: center; gap: 10px; color: #ffffff; text-decoration: none;
    font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -.01em;
}
.gf-logo b { color: #ffd700; font-weight: 800; }
.gf-about { margin-top: 12px; max-width: 32em; color: #c4c0dd; font-size: 15px; text-wrap: pretty; }
/* Two even rows of six on every screen. */
.gf-chips { display: grid; grid-template-columns: repeat(6, 40px); gap: 8px; align-content: center; }
.gf-chips a {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ffffff;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gf-chips a:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .8); }

.gf-cols {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px;
    padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.gf-col-wide, .gf-col-api { grid-column: 1 / -1; }
.gf-head {
    display: flex; align-items: center; gap: 8px;
    color: #ffffff; font-size: 12.5px; line-height: 1.3; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.gf-live {
    padding: 2px 7px; border-radius: 999px; background: rgba(34, 197, 94, .16); color: #4ade80;
    font-size: 10.5px; letter-spacing: .06em;
}
.gf-list { display: grid; gap: 2px; margin-top: 12px; }
.gf-list-2, .gf-col-api .gf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.gf-list a {
    display: inline-block; padding: 6px 0; color: #b9b5d6; text-decoration: none;
    font-size: 14px; line-height: 1.35; transition: color .15s ease;
}
.gf-list a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

.gf-bottom { display: grid; gap: 6px; padding-top: 20px; color: #8e8aab; font-size: 13.5px; line-height: 1.5; }
.gf-bottom strong { color: #ffffff; font-weight: 700; }

@media (min-width: 760px) {
    .gf-top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
    .gf-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
    .gf-col-wide { grid-column: auto; }
}
@media (min-width: 1024px) {
    .gf-wrap { padding: 56px 16px 32px; }
    /* Wide enough that "Instagram Carousel Downloader" stays on one line in its half. */
    .gf-cols { grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; }
    .gf-col-api { grid-column: auto; }
    .gf-col-api .gf-list { grid-template-columns: 1fr; }
    .gf-bottom { grid-template-columns: auto auto; justify-content: space-between; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .gis-foot * { transition: none !important; }
}
