/* ===== Site footer ===== */

.site-footer {
    margin-top: 48px;
    padding: 28px 20px 32px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, #f7f5ff 40%, #f0edff 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 4px;
    margin-bottom: 10px;
}

.site-footer__nav a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-footer__nav a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #3730a3;
}

.site-footer__sep {
    color: #c4b5fd;
    user-select: none;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: calc(28px + var(--mobile-bottom-nav-space, 68px));
        margin-top: 32px;
    }
}

/* Compact layouts where a footer would clash */
body.chat-page .site-footer,
body.admin-blog-edit .site-footer,
body.admin-blog-import .site-footer {
    display: none !important;
}
