/**
 * WeatherAFC Footer - Compact Dark Design
 */

/* ============================================
   FOOTER CONTAINER
   ============================================ */
/* Default: static footer at end of content */
.site-footer {
    position: relative;
    height: var(--footer-height);
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

/* Fixed footer only on map pages */
body.has-map .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Subtle top glow */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 169, 255, 0.3) 50%,
        transparent 100%
    );
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   FOOTER LOGO
   ============================================ */
.footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-logo img {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ============================================
   COPYRIGHT
   ============================================ */
.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.01em;
}

.footer-copyright strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ============================================
   FOOTER NAVIGATION
   ============================================ */
.footer-nav {
    flex-shrink: 0;
}

.footer-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--cyan);
}

/* Separator between links */
.footer-menu li:not(:last-child)::after {
    content: '·';
    margin-left: 1.5rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .site-footer {
        position: relative;
        height: auto;
        padding: 1.25rem 0;
    }

    /* Preserve fixed footer on map pages */
    body.has-map .site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        padding: 1.25rem 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 0 1rem;
    }

    .footer-logo {
        order: 0;
    }

    .footer-copyright {
        order: 2;
        font-size: 0.75rem;
    }

    .footer-nav {
        order: 1;
    }

    .footer-menu {
        gap: 1rem;
    }

    .footer-menu li:not(:last-child)::after {
        margin-left: 1rem;
    }

    .footer-menu a {
        font-size: 0.75rem;
    }

    body {
        padding-bottom: 0;
    }
}
