/**
 * RaceForge Footer - V8 (Viewport-Accurate HUD Layout)
 */

/* Sticky footer wrapper */
.footer-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 45px;
    z-index: 1000;
}

/* Prevent content overlap */
body {
    padding-bottom: 45px;
}

/* Footer base */
.site-footer {
    height: 100%;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
}

/* Main footer layout */
.footer-content {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 32px; /* Responsive edge padding */
}

/* Columns */
.footer-left,
.footer-right {
    flex: 1;
    min-width: 0;
}

/* Stats align to viewport edge */
.footer-left {
    display: flex;
    justify-content: flex-start;
}

/* TRUE viewport center */
.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* --- Stats Styling --- */
.footer-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.stat-item span {
    font-weight: 700;
    color: #fff;
    font-size: 0.8rem;
}

.stat-divider {
    color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-weight: 300;
    user-select: none;
}

.pill-blue i {
    color: var(--accent-blue);
    text-shadow: 0 0 8px var(--accent-glow);
}

.pill-yellow i {
    color: #f39c12;
    text-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
}

.pill-green i {
    color: #00ff80;
    text-shadow: 0 0 8px rgba(0, 255, 128, 0.4);
}

/* Copyright */
.footer-copyright {
    opacity: 0.5;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    white-space: nowrap;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .footer-wrapper {
        height: 50px;
    }

    body {
        padding-bottom: 50px;
    }

    .footer-left,
    .footer-right {
        display: none;
    }

    .footer-center {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        pointer-events: auto;
    }
}
