/* ==========================================================================
   Footer — Premium Developer Footer
   ========================================================================== */

footer {
    border-top: 1px solid var(--border);
    background: var(--bg-sec);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative; overflow: hidden;
}

/* ── Animated Divider ── */
footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* ── Footer Grid ── */
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl); margin-bottom: var(--space-3xl);
}

.footer-brand .logo { margin-bottom: var(--space-md); }

.footer-brand p {
    color: var(--text-muted); font-size: 0.875rem;
    max-width: 300px; line-height: 1.6;
}

.footer-version {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dark);
    margin-top: var(--space-md);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border); border-radius: var(--radius-full);
}

.footer-version .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Footer Columns ── */
.footer-title {
    color: var(--text-main); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: var(--space-lg); font-weight: 600;
}

.footer-links {
    display: flex; flex-direction: column; gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted); font-size: 0.875rem;
    display: inline-flex; align-items: center; gap: var(--space-sm);
    transition: all 0.2s var(--easing);
}

.footer-links a:hover { color: var(--text-main); transform: translateX(5px); }

/* ── Footer Bottom ── */
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem; color: var(--text-dark);
}

.footer-bottom-left {
    display: flex; align-items: center; gap: var(--space-lg);
}

.footer-license {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-mono); font-size: 0.7rem;
}

/* ── Back to Top ── */
.btn-top {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center;
    gap: 0.5rem; font-size: 0.75rem;
    transition: all var(--transition-base); font-family: var(--font-sans);
}

.btn-top:hover { color: var(--text-main); }
.btn-top svg { width: 16px; height: 16px; transition: transform var(--transition-base); }
.btn-top:hover svg { transform: translateY(-3px); }
