/* ============================================================
   Mulanui — Social Links (Footer) — P1
   ============================================================ */

/* ===== Wrapper ===== */
.footer-social {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    text-align: center;
}

.footer-social[hidden] {
    display: none !important;
}

.footer-social h4 {
    font-size: 14px;
    font-weight: var(--fw-bold, 700);
    color: var(--text-main, #fff);
    margin: 0 0 14px 0;
    letter-spacing: 0.3px;
}

/* ===== List ===== */
.footer-social-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ===== Link (circle) ===== */
.footer-social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-elevated, rgba(255, 255, 255, 0.06));
    color: var(--text-main, #fff);
    font-size: 18px;
    text-decoration: none;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

/* ===== Brand color overlay (on hover) ===== */
.footer-social-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand-color, var(--primary-color, #7c3aed));
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.footer-social-link i {
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

/* ===== Hover ===== */
.footer-social-link:hover {
    transform: translateY(-3px);
    border-color: var(--brand-color, transparent);
    box-shadow: 0 6px 18px var(--brand-color, rgba(124, 58, 237, 0.4));
}

.footer-social-link:hover::before {
    opacity: 1;
}

.footer-social-link:hover i {
    color: #fff;
}

/* ===== Featured (top-bar look) ===== */
.footer-social-link.is-featured {
    background: var(--brand-color, var(--primary-color, #7c3aed));
    color: #fff;
    border-color: transparent;
}

.footer-social-link.is-featured i {
    color: #fff;
}

/* ===== Focus (a11y) ===== */
.footer-social-link:focus-visible {
    outline: 2px solid var(--primary-color, #7c3aed);
    outline-offset: 3px;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    .footer-social-link {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .footer-social-list {
        gap: 8px;
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .footer-social-link,
    .footer-social-link::before,
    .footer-social-link i {
        transition: none;
    }
    .footer-social-link:hover {
        transform: none;
    }
}