/**
 * Footer Component Styles
 */

footer {
    width: 100%;
    background: var(--bg-primary);
    border-top: 0;
    padding: 24px;
    margin-top: auto;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

footer p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

/* Shared footer layout */
.site-footer {
    background: var(--bg-primary);
    border: 0;
    padding: 20px 16px 18px;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.site-footer-top {
    color: var(--text-tertiary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.site-footer-top p {
    margin: 0;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: center;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-footer-title {
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    color: var(--text-primary);
}

.site-footer-tagline {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer-meta {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    justify-content: center;
}

.site-footer-links a {
    color: var(--text-secondary);
    text-underline-offset: 2px;
}

.site-footer-links span {
    color: var(--text-tertiary);
}

.site-footer-social {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
}

.social-link {
    width: 30px;
    height: 36px;
    border-radius: 50%;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .site-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
