/* ============================================
   STAGE 7: FOOTER
   ============================================ */

.btrade-footer {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #0d1117 0%, #0a0a0f 100%);
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 40px 40px 0 0;
    margin-top: 0;
    overflow: hidden;
}

/* Glow Line at Top */
.footer-glow-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 33%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.5), transparent);
    filter: blur(2px);
}

.footer-glow-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: radial-gradient(ellipse at center, rgba(33, 150, 243, 0.3), transparent 70%);
}

/* Container */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 30px;
    position: relative;
    z-index: 2;
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

/* Brand Column */
.footer-brand {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
    transition: all 0.8s ease;
}

.footer-brand.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: #2196F3;
}

.logo-text {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copyright {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #6e7681;
    font-style: italic;
}

/* Links Section */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
    transition: all 0.8s ease;
}

.footer-column.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.column-title {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.column-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #8b949e;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2196F3;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-link:hover::after {
    width: 100%;
}

.link-icon {
    width: 16px;
    height: 16px;
    color: #2196F3;
    transition: transform 0.3s ease;
}

.footer-link:hover .link-icon {
    transform: scale(1.2);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    padding-top: 30px;
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(4px);
    transition: all 0.8s ease 0.5s;
}

.footer-bottom.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    color: #6e7681;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #2196F3;
}

.separator {
    color: #30363d;
}

/* Background Effects */
.btrade-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(35% 128px at 50% 0%, rgba(33, 150, 243, 0.08), transparent);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btrade-footer {
        border-radius: 24px 24px 0 0;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 40px 20px 20px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-glow-line {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .column-title {
        margin-bottom: 12px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-brand,
    .footer-column,
    .footer-bottom {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}