/* ========================================
   ENHANCED FOOTER STYLES
   ======================================== */

/* Base Footer Styles */
footer {
    margin-top: 4rem !important;
    padding: 3rem 0 1.5rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid #0d6efd;
    animation: fadeInUp 0.6s ease-out;
}

/* Typography */
footer h5 {
    font-size: 1.25rem;
    color: #212529;
    margin-bottom: 1rem;
    font-weight: 700;
}

footer h6 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
}

footer .footer-section {
    margin-bottom: 2rem;
}

/* Links */
footer a {
    color: #495057;
    transition: all 0.2s ease-in-out;
}

footer a:hover {
    color: #0d6efd;
    text-decoration: underline !important;
}

footer ul li {
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease;
}

footer ul li:hover {
    transform: translateX(5px);
}

/* Social Media Links */
footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: 1px solid #dee2e6;
}

footer .social-link:hover {
    background-color: #0d6efd;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #0d6efd;
}

/* Divider */
footer hr {
    margin: 2rem 0;
    opacity: 0.2;
    border-top: 2px solid #dee2e6;
}

/* Footer Bottom Section */
footer .footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Environment & Version Badges */
footer .env-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
}

footer .env-badge.bg-warning {
    animation: pulse 2s infinite;
}

footer .version-link {
    padding: 0.25rem 0.75rem;
    background-color: #e7f1ff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: #0d6efd !important;
}

footer .version-link:hover {
    background-color: #0d6efd;
    color: white !important;
    text-decoration: none !important;
    transform: scale(1.05);
}

footer .footer-meta {
    background-color: rgba(255,255,255,0.5);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Back to Top Button */
.btn-floating {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    footer {
        padding: 2rem 0 1rem;
    }
    
    footer .footer-section {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    footer .footer-bottom > div {
        margin-bottom: 1rem;
        text-align: center !important;
    }
    
    footer .footer-bottom > div:last-child {
        margin-bottom: 0;
    }
    
    footer .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    footer .vr {
        display: none;
    }
}

/* Sticky Footer Support */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container.mt-4 {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    footer {
        background: linear-gradient(180deg, #212529 0%, #1a1d20 100%);
        border-top-color: #495057;
        color: #dee2e6;
    }
    
    footer h5, footer h6 {
        color: #f8f9fa;
        border-bottom-color: #495057;
    }
    
    footer a {
        color: #adb5bd;
    }
    
    footer a:hover {
        color: #0d6efd;
    }
    
    footer .social-link {
        background-color: #343a40;
        color: #adb5bd;
        border-color: #495057;
    }
    
    footer .social-link:hover {
        background-color: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }
    
    footer .footer-meta {
        background-color: rgba(0,0,0,0.3);
    }
    
    footer .version-link {
        background-color: rgba(13,110,253,0.2);
        color: #6ea8fe !important;
    }
    
    footer .version-link:hover {
        background-color: #0d6efd;
        color: white !important;
    }
}
