/**
 * Footer Styles - Complete Color Fix
 * Version: 3.0.2
 */

/* ========================================
   FOOTER CONTAINER - FORCE DARK BACKGROUND
======================================== */
.site-footer {
    background: #1a1f2e !important;
    background-image: linear-gradient(180deg, #1a1f2e 0%, #0f1419 100%) !important;
    color: #e5e7eb !important;
    padding: 60px 0 0 !important;
    margin-top: 80px !important;
    position: relative !important;
}

.site-footer * {
    color: inherit;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ========================================
   FOOTER WIDGETS - FORCE TEXT COLORS
======================================== */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 12px;
}

.footer-column:hover {
    background: rgba(255, 255, 255, 0.03);
}

.footer-column h4 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Footer Paragraph Text */
.footer-column p,
.footer-col-1 p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: #d1d5db !important;
    margin: 0 0 25px 0 !important;
}

/* Footer Logo */
.footer-logo {
    margin-top: 20px;
}

.footer-logo img {
    max-width: 60px;
    opacity: 0.9;
    filter: brightness(1.2);
}

/* ========================================
   FOOTER LINKS - FORCE COLORS
======================================== */
.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-column ul li {
    margin-bottom: 14px !important;
}

.footer-column ul li a {
    color: #d1d5db !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    position: relative;
    padding-left: 0;
}

.footer-column ul li a::before {
    content: '→';
    opacity: 0;
    margin-right: 0;
    transition: all 0.3s ease;
    color: #667eea;
}

.footer-column ul li a:hover {
    color: #ffffff !important;
    padding-left: 20px;
}

.footer-column ul li a:hover::before {
    opacity: 1;
    margin-right: 8px;
}

/* ========================================
   SOCIAL SECTION
======================================== */
.social-title {
    margin-top: 35px !important;
    font-size: 1.2rem !important;
    color: #ffffff !important;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-social .social-link {
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.3rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.footer-social .social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* ========================================
   FOOTER BOTTOM - FORCE COLORS
======================================== */
.footer-bottom {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 30px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 40px !important;
    background: transparent !important;
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #9ca3af !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

.footer-copyright p:first-child {
    color: #d1d5db !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
}

.footer-copyright .disclaimer {
    margin-top: 8px !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
}

/* Footer Bottom Links */
.footer-bottom-links {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.footer-bottom-links a {
    color: #d1d5db !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff !important;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

.footer-bottom-links .separator {
    color: #4b5563 !important;
    font-weight: 300 !important;
}

/* Back to Top Button */
.back-to-top {
    color: #d1d5db !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3) !important;
}

.back-to-top:hover::after {
    display: none !important;
}

/* ========================================
   OVERRIDE ANY CONFLICTING STYLES
======================================== */

/* Override GeneratePress footer styles */
.site-footer .footer-widgets-container,
.site-footer .inside-footer-widgets {
    background: transparent !important;
}

/* Override any theme default colors */
#colophon {
    background: #1a1f2e !important;
    color: #e5e7eb !important;
}

#colophon a {
    color: #d1d5db !important;
}

#colophon a:hover {
    color: #ffffff !important;
}

/* Override widget styles */
.site-footer .widget,
.site-footer .widget-title {
    color: inherit !important;
}

.site-footer .widget a {
    color: #d1d5db !important;
}

.site-footer .widget a:hover {
    color: #ffffff !important;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0 !important;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
    }
    
    .footer-column {
        text-align: center !important;
        padding: 15px !important;
    }
    
    .footer-column h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .footer-column ul li a {
        justify-content: center !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        gap: 25px !important;
        text-align: center !important;
        padding: 25px 0 !important;
    }
    
    .footer-bottom-links {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .footer-bottom-links .separator {
        display: none !important;
    }
    
    .footer-copyright p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .footer-column h4 {
        font-size: 1.2rem !important;
    }
    
    .footer-social .social-link {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */
.footer-column a:focus-visible,
.footer-social .social-link:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid #667eea !important;
    outline-offset: 3px !important;
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .site-footer {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 20px 0 !important;
    }
    
    .site-footer * {
        color: #000000 !important;
    }
    
    .footer-social,
    .back-to-top {
        display: none !important;
    }
}
