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

.main-footer {
    background: transparent;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 2rem 1rem 1rem;
    position: relative;
    margin-top: 100px;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-cyan),
        var(--accent-purple),
        transparent
    );
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.neon-text-cyan {
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.neon-text-gold {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-magenta);
    text-shadow: 0 0 10px rgba(217, 2, 238, 0.8);
    transform: translateX(5px);
}

.footer-status {
    position: relative;
    direction: ltr;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-status-indicator {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 12px;

    width: 100%;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-status-text {
    display: block;
    font-size: 0.85rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-muted);
}


.pulse-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.pulse-dot.green {
    background-color: #00ff9d;
    box-shadow: 0 0 10px #00ff9d;
    animation: pulseStatus 2s infinite;
}

.pulse-dot.green:first-child {
    animation: pulseStatus 5s infinite 1s;
}

.pulse-dot.gold {
    background-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
    animation: pulseStatus 1.3s infinite 0.7s;
}

@keyframes pulseStatus {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}


.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(139, 155, 180, 0.6);
    font-size: 0.7rem;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1024px) {

    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

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

    .footer-links {
        grid-column: 1;
    }

    .footer-status {
        grid-column: 2;
    }

    .footer-status-indicator {
        width: 100%;
    }
}


@media (max-width: 767px) {

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        font-size: clamp(0.7rem, 1.1vw, 0.8rem);
    }

    .footer-brand,
    .footer-links,
    .footer-status {
        grid-column: 1;
    }

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

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

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

    .footer-status {
        align-items: center;
        width: 100%;
    }

    .footer-status-indicator {
        width: 100%;
        max-width: 400px;
    }

    .footer-links a:hover {
        transform: translateY(-2px);
    }
}