/**
 * Site footer — compact modern layout (public pages)
 */

.eman-site-footer {
    background: linear-gradient(180deg, #faf9fc 0%, #fff 48%);
    color: var(--eman-text-dark);
    border-top: 1px solid var(--eman-border-light);
    font-size: 0.9rem;
}

.eman-site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--eman-border-light);
}

.eman-site-footer__logo img {
    display: block;
    max-height: 36px;
    width: auto;
}

.eman-site-footer__social-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.eman-site-footer__social-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--eman-text-muted, #64748b);
    white-space: nowrap;
}

.eman-site-footer__social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eman-site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--eman-border-light);
    background: #fff;
    color: var(--eman-text-light);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.eman-site-footer__social a:hover {
    color: var(--eman-purple);
    border-color: rgba(106, 27, 154, 0.25);
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.1);
    transform: translateY(-1px);
}

.eman-site-footer__social .footer-social-icon,
.eman-site-footer__social .lucide-icon,
.eman-site-footer__social a svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke: currentColor;
    color: inherit;
    display: block;
    flex-shrink: 0;
    margin: 0 !important;
}

.eman-site-footer__list .eman-site-footer__icon,
.eman-site-footer__list a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    display: block;
    flex-shrink: 0;
}

.eman-site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px 32px;
    padding: 24px 0 20px;
}

.eman-site-footer__col h5 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--eman-purple);
}

.eman-site-footer__bio {
    margin: 0 0 14px;
    color: var(--eman-text-light);
    line-height: 1.65;
    font-size: 0.88rem;
}

.eman-site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eman-site-footer__list a,
.eman-site-footer__list li {
    color: var(--eman-text-light);
    line-height: 1.5;
}

.eman-site-footer__list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.eman-site-footer__list a:hover {
    color: var(--eman-purple);
}

.eman-site-footer__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke-width: 2;
    color: var(--eman-accent);
    margin: 0 !important;
}

.eman-site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0 22px;
    border-top: 1px solid var(--eman-border-light);
    font-size: 0.82rem;
}

.eman-site-footer__copyright {
    color: var(--eman-text-dark);
    line-height: 1.5;
}

.eman-site-footer__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.eman-site-footer__legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.eman-site-footer__legal a {
    color: var(--eman-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.eman-site-footer__legal a:hover {
    color: var(--eman-purple);
}

.eman-site-footer__dev-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 0.8rem !important;
    background-color: var(--eman-accent) !important;
    border-color: var(--eman-accent) !important;
    color: #fff !important;
    border-radius: 999px !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.eman-site-footer__dev-btn:hover {
    background-color: #00c4db !important;
    border-color: #00c4db !important;
    transform: translateY(-1px);
}

.eman-site-footer__dev-btn .lucide-icon {
    width: 16px;
    height: 16px;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .eman-site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .eman-site-footer__col--about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .eman-site-footer__bar {
        padding: 20px 0 16px;
    }

    .eman-site-footer__social-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .eman-site-footer__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0 16px;
    }

    .eman-site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .eman-site-footer__meta {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .eman-site-footer__dev-btn {
        width: 100%;
    }
}

html.-dark-mode .eman-site-footer {
    background: linear-gradient(180deg, #121820 0%, #1a2230 48%);
    border-top-color: #334155;
}

html.-dark-mode .eman-site-footer__bar,
html.-dark-mode .eman-site-footer__bottom {
    border-color: #334155;
}

html.-dark-mode .eman-site-footer__bio,
html.-dark-mode .eman-site-footer__list a,
html.-dark-mode .eman-site-footer__list li,
html.-dark-mode .eman-site-footer__legal a {
    color: rgba(255, 255, 255, 0.72);
}

html.-dark-mode .eman-site-footer__copyright {
    color: rgba(255, 255, 255, 0.9);
}

html.-dark-mode .eman-site-footer__social a {
    background: #0f172a;
    border-color: #334155;
    color: rgba(255, 255, 255, 0.75);
}

html.-dark-mode .eman-site-footer__social a:hover {
    color: var(--eman-purple-light);
    border-color: rgba(171, 71, 188, 0.4);
}
