/* ============================================================
   Footer Styles
   ============================================================ */

.footer.footer-transparent {
    position: relative;
    padding: 0;
}

/* ── Gradient top separator + glow halo ── */
.footer.footer-transparent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(120, 121, 246, 0.3) 20%,
        rgba(160, 122, 246, 0.35) 50%,
        rgba(6, 182, 212, 0.3) 80%,
        transparent
    );
    pointer-events: none;
}

.footer.footer-transparent::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 80px;
    background: radial-gradient(
        ellipse 70% 100% at 50% 0%,
        rgba(120, 121, 246, 0.06) 0%,
        rgba(160, 122, 246, 0.03) 40%,
        transparent 100%
    );
    pointer-events: none;
}

/* ── Section A: Main footer grid ── */
.footer-main {
    padding: 3rem 0 1.5rem;
}

/* ── Brand column ── */
.footer-tagline {
    font-size: var(--crypto-font-size-sm, 0.875rem);
    font-weight: var(--crypto-font-weight-semibold, 600);
    background: var(--crypto-gradient-tech);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer-description {
    font-size: var(--crypto-font-size-xs, 0.75rem);
    color: var(--crypto-text-muted);
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Column headings ── */
.footer-heading {
    font-size: var(--crypto-font-size-xs, 0.75rem) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--crypto-text-muted);
    font-weight: var(--crypto-font-weight-semibold, 600);
    margin-bottom: 0.75rem;
}

/* ── Navigation link lists ── */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.375rem;
}

.footer-links a {
    font-size: var(--crypto-font-size-xs, 0.75rem);
    color: var(--crypto-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-links a:hover {
    color: var(--crypto-accent-500, var(--crypto-accent));
}

/* ── External link icon ── */
.footer-external-icon {
    width: 0.5rem;
    height: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.footer-links a:hover .footer-external-icon {
    opacity: 0.8;
}

/* ── Social icons ── */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--crypto-border-default, var(--crypto-border));
    color: var(--crypto-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-icon:hover {
    border-color: var(--crypto-accent-alpha-30, rgba(120, 121, 246, 0.3));
    background-color: var(--crypto-accent-alpha-10, rgba(120, 121, 246, 0.08));
    color: var(--crypto-accent-500, var(--crypto-accent));
    box-shadow: 0 0 12px rgba(120, 121, 246, 0.15);
}

/* ── Gradient inner divider ── */
.footer-divider {
    padding: 0;
}

.footer-divider-line {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--crypto-border-default, rgba(255, 255, 255, 0.08)) 30%,
        var(--crypto-border-default, rgba(255, 255, 255, 0.08)) 70%,
        transparent
    );
}

/* ── Section B: Bottom bar ── */
.footer-bottom {
    padding: 1rem 0 1.5rem;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom-left,
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--crypto-font-size-xs, 0.75rem);
    color: var(--crypto-text-disabled, var(--crypto-text-muted));
}

.footer-bottom-left a,
.footer-bottom-right a {
    color: var(--crypto-text-disabled, var(--crypto-text-muted));
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-left a:hover,
.footer-bottom-right a:hover {
    color: var(--crypto-text-secondary, var(--crypto-text-muted));
}

.footer-bottom-dot {
    color: var(--crypto-text-disabled, var(--crypto-text-muted));
    opacity: 0.5;
}

/* ── Version badge ── */
.footer-version {
    font-family: var(--crypto-font-mono);
    font-weight: var(--crypto-font-weight-medium, 500);
}

/* ── Status indicator ── */
.footer-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
    animation: footer-status-blink 2s ease-in-out infinite;
}

.footer-status-dot--yellow {
    background: #eab308;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
}

.footer-status-dot--red {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

@keyframes footer-status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.footer-status-link {
    color: var(--crypto-text-disabled, var(--crypto-text-muted));
    transition: color 0.2s ease;
}

.footer-status-link:hover {
    color: var(--crypto-text-secondary);
}

/* ── Dark theme ── */
[data-bs-theme="dark"] .footer.footer-transparent {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.6) 100%);
}

/* ── Light theme ── */
[data-bs-theme="light"] .footer.footer-transparent {
    background: linear-gradient(180deg, transparent 0%, rgba(238, 237, 246, 0.6) 100%);
}

[data-bs-theme="light"] .footer.footer-transparent::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(120, 121, 246, 0.18) 20%,
        rgba(160, 122, 246, 0.22) 50%,
        rgba(6, 182, 212, 0.18) 80%,
        transparent
    );
}

[data-bs-theme="light"] .footer.footer-transparent::after {
    background: radial-gradient(
        ellipse 70% 100% at 50% 0%,
        rgba(120, 121, 246, 0.06) 0%,
        rgba(160, 122, 246, 0.03) 40%,
        transparent 100%
    );
}

[data-bs-theme="light"] .footer-heading {
    color: var(--crypto-text-secondary, #64748b);
}

[data-bs-theme="light"] .footer-social-icon:hover {
    box-shadow: 0 0 10px rgba(120, 121, 246, 0.1);
}

/* ── Mobile: < 768px ── */
@media (max-width: 767.98px) {
    .footer .container-xl {
        padding-inline: 1.25rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .d-flex {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
        margin-inline: auto;
    }

    .footer-tagline {
        text-align: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-social-column {
        width: 100%;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-social-column .footer-social {
        justify-content: center;
    }

    .footer-product-column, .footer-resources-column {
        display: none;
    }
}
