﻿/* =========================================================
   FOOTER THEME
   ========================================================= */
:root {
    --kb-footer-bg: var(--kb-surface-footer);
    --kb-footer-text: rgba(255, 255, 255, 0.92);
    --kb-footer-text-muted: rgba(255, 255, 255, 0.65);
    --kb-footer-title: rgba(255, 255, 255, 0.55);
    --kb-footer-link: rgba(255, 255, 255, 0.78);
    --kb-footer-link-hover: rgba(255, 255, 255, 0.98);
    --kb-footer-separator-center: rgba(255, 255, 255, 0.14);
    --kb-footer-dot: rgba(255, 255, 255, 0.35);
    --kb-footer-badge-bg: rgba(255, 255, 255, 0.06);
    --kb-footer-badge-border: rgba(255, 255, 255, 0.10);
    --kb-footer-badge-text: rgba(255, 255, 255, 0.72);
    --kb-footer-chip-bg: rgba(255, 255, 255, 0.06);
    --kb-footer-chip-border: rgba(255, 255, 255, 0.10);
    --kb-footer-chip-text: rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] {
    --kb-footer-bg: var(--kb-surface-footer);
    --kb-footer-text: rgba(255, 255, 255, 0.92);
    --kb-footer-text-muted: rgba(255, 255, 255, 0.65);
    --kb-footer-title: rgba(255, 255, 255, 0.55);
    --kb-footer-link: rgba(255, 255, 255, 0.78);
    --kb-footer-link-hover: rgba(255, 255, 255, 0.98);
    --kb-footer-separator-center: rgba(255, 255, 255, 0.14);
    --kb-footer-dot: rgba(255, 255, 255, 0.35);
    --kb-footer-badge-bg: rgba(255, 255, 255, 0.06);
    --kb-footer-badge-border: rgba(255, 255, 255, 0.10);
    --kb-footer-badge-text: rgba(255, 255, 255, 0.72);
    --kb-footer-chip-bg: rgba(255, 255, 255, 0.06);
    --kb-footer-chip-border: rgba(255, 255, 255, 0.10);
    --kb-footer-chip-text: rgba(255, 255, 255, 0.72);
}

/* opzionale: versione footer chiara se un domani vuoi usarla */
[data-theme="light"] .kb-footer-theme.kb-footer-light {
    --kb-footer-bg: var(--kb-surface-footer);
    --kb-footer-text: #14161a;
    --kb-footer-text-muted: rgba(20, 22, 26, 0.68);
    --kb-footer-title: rgba(20, 22, 26, 0.50);
    --kb-footer-link: rgba(20, 22, 26, 0.80);
    --kb-footer-link-hover: rgba(20, 22, 26, 1);
    --kb-footer-separator-center: rgba(20, 22, 26, 0.10);
    --kb-footer-dot: rgba(20, 22, 26, 0.28);
    --kb-footer-badge-bg: rgba(20, 22, 26, 0.04);
    --kb-footer-badge-border: rgba(20, 22, 26, 0.08);
    --kb-footer-badge-text: rgba(20, 22, 26, 0.72);
    --kb-footer-chip-bg: rgba(20, 22, 26, 0.04);
    --kb-footer-chip-border: rgba(20, 22, 26, 0.08);
    --kb-footer-chip-text: rgba(20, 22, 26, 0.72);
}

.kb-footer-theme {
    background: var(--kb-footer-bg);
    color: var(--kb-footer-text);
}

.kb-footer-brand-name {
    color: var(--kb-footer-text);
    text-transform: capitalize;
}

.kb-footer-description {
    max-width: 42rem;
}

.kb-footer-muted {
    color: var(--kb-footer-text-muted);
}

.kb-footer-title {
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--kb-footer-title);
    margin-bottom: .75rem;
}

.kb-footer-link {
    color: var(--kb-footer-link);
    text-decoration: none;
    transition: transform .12s ease, color .12s ease, opacity .12s ease;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: fit-content;
}

    .kb-footer-link:hover,
    .kb-footer-link:focus {
        color: var(--kb-footer-link-hover);
        transform: translateX(2px);
    }

    .kb-footer-link i {
        font-size: 1rem;
        line-height: 1;
    }

.kb-footer-sep {
    border: 0;
    height: 1px;
    background: linear-gradient( to right, rgba(255, 255, 255, 0), var(--kb-footer-separator-center), rgba(255, 255, 255, 0) );
}

.kb-footer-dot {
    color: var(--kb-footer-dot);
}

.kb-footer-badge {
    font-size: .75rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: var(--kb-footer-badge-bg);
    border: 1px solid var(--kb-footer-badge-border);
    color: var(--kb-footer-badge-text);
}

.kb-footer-chip {
    display: inline-flex;
    align-items: center;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: var(--kb-footer-chip-bg);
    border: 1px solid var(--kb-footer-chip-border);
    color: var(--kb-footer-chip-text);
    font-size: .8rem;
}

.kb-footer-meta {
    flex-wrap: wrap;
}

[data-theme="dark"] .kb-brand-logo img {
    filter: brightness(1.05);
}

/* MADE BY */
.kb-footer-credit-row {
    min-height: 52px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
    font-size: .8rem;
    line-height: 1;
    opacity: .8;
}

.kb-footer-heart {
    font-size: .8rem;
    line-height: 1;
    transform: translateY(-1px);
}

.kb-footer-credit-logo {
    display: inline-flex;
    align-items: flex-end;
    text-decoration: none;
    opacity: .9;
    transition: opacity .2s ease, transform .2s ease;
}

    .kb-footer-credit-logo:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

    .kb-footer-credit-logo img {
        width: 15px;
        height: auto;
        display: block;
        object-fit: contain;
    }