/* =============================================================================
 * Site-wide footer (non-single-gallery).
 * ============================================================================= */

body:not(.single-gallery) > #colophon,
body:not(.single-gallery) footer#colophon:not(.alts-site-footer) {
    display: none !important;
}

.alts-site-footer {
    position: relative;
    z-index: 20;                    /* above theme's #scanlines overlay (z:15) */
    background: #050505;
    color: #b5b5b5;
    font-family: Montserrat, system-ui, sans-serif;
    padding: 64px 50px 0;
    margin-top: 0;                  /* green line IS the separator */
    border-top: 0;
    overflow: hidden;
}

/* Electricity-flowing separator line at the very top. The gradient is
   wider than the element and animated across to simulate a pulse of
   energy traveling left→right, fading at the edges. */
.alts-site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    right: -30%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 38%,
        rgba(191, 255, 0, 0.15) 45%,
        rgba(191, 255, 0, 0.9) 50%,
        rgba(191, 255, 0, 0.15) 55%,
        transparent 62%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: alts-footer-pulse 4s linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(191, 255, 0, 0.6));
}
/* Soft static bed under the pulse so there's always a hint of the line */
.alts-site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(191, 255, 0, 0.28) 50%, transparent 100%);
    pointer-events: none;
}
@keyframes alts-footer-pulse {
    0%   { background-position: -50% 0; }
    100% { background-position: 150% 0; }
}

.alts-site-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.alts-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 320px;
}
.alts-footer-brand-logo {
    display: inline-block;
    width: 140px;
    height: auto;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 4px 12px rgba(191, 255, 0, 0.08));
}
.alts-footer-brand-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 6px 18px rgba(191, 255, 0, 0.25));
}
.alts-footer-brand img { width: 100%; height: auto; display: block; }
.alts-footer-tagline {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}
.alts-footer-tagline strong {
    color: #fff;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.alts-footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
/* Column headers — subtle, not a neon splash */
.alts-footer-col-head {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alts-footer-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.alts-footer-col-list li { margin: 0; padding: 0; list-style: none; }

/* Links: WHITE by default, neon on hover. Underline slides in from left. */
.alts-footer-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e5e5e5 !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    padding: 2px 0;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
    background: none !important;
    border: 0 !important;
}
.alts-footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1px;
    width: 0;
    background: var(--alts-accent, #bbff00);
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.alts-footer-link:hover,
.alts-footer-link:focus {
    color: var(--alts-accent, #bbff00) !important;
    outline: none;
}
.alts-footer-link:hover::after,
.alts-footer-link:focus::after { width: 100%; }

.alts-footer-link.has-icon i,
.alts-footer-link.has-icon svg {
    font-size: 16px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.55);
    transition: transform 0.2s ease, color 0.2s ease;
}
.alts-footer-link.has-icon:hover i,
.alts-footer-link.has-icon:hover svg,
.alts-footer-link.has-icon:focus i,
.alts-footer-link.has-icon:focus svg {
    transform: scale(1.15) rotate(-3deg);
    color: var(--alts-accent, #bbff00);
}

/* Play icon prefix on decade links (bigger visual affordance than a dot) */
.alts-footer-link.alts-footer-play-link::before {
    content: '▶';
    font-size: 8px;
    color: rgba(191, 255, 0, 0.55);
    margin-right: 2px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.alts-footer-link.alts-footer-play-link:hover::before {
    color: var(--alts-accent, #bbff00);
    transform: scale(1.2);
}

/* Bottom bar */
.alts-site-footer-bar {
    margin-top: 48px;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.03em;
}
.alts-site-footer-bar-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.alts-site-footer-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}
.alts-site-footer-bar a:hover { color: var(--alts-accent, #bbff00); }

/* Responsive */
@media (max-width: 1100px) {
    .alts-site-footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .alts-footer-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 700px) {
    .alts-site-footer { padding: 40px 20px 0; }
    .alts-site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
    /* Brand column centered on mobile — logo above, tagline below */
    .alts-footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        align-items: center;
        text-align: center;
    }
    .alts-footer-tagline { max-width: 360px; margin: 0 auto; }

    /* Bottom bar: stacked + centered on mobile */
    .alts-site-footer-bar { padding: 16px 20px 20px; margin-top: 32px; text-align: center; }
    .alts-site-footer-bar-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0;
    }
}
@media (max-width: 460px) {
    .alts-site-footer-inner { grid-template-columns: 1fr; }
    /* Section columns also centered at this size for visual coherence */
    .alts-footer-col { align-items: center; text-align: center; }
    .alts-footer-col-list { align-items: center; }
    .alts-footer-link { justify-content: center; }
}
