/* Footer Background Fix - Professional Dark Theme */

/* ============================================
   FOOTER BACKGROUND STYLING
   ============================================ */

.rn-footer-area {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Add a subtle pattern overlay */
.rn-footer-area::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%) !important;
    pointer-events: none !important;
}

/* Footer content styling */
.rn-footer-area .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Footer widget styling */
.footer-widget {
    color: #e2e8f0 !important;
}

.footer-widget .widget-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
}

.footer-widget .widget-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    left: 0 !important;
    width: 40px !important;
    height: 2px !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    border-radius: 1px !important;
}

/* Footer logo styling */
.footer-logo {
    filter: brightness(5) !important;
    transition: all 0.3s ease !important;
}

.footer-logo:hover {
    filter: brightness(6) !important;
    transform: scale(1.02) !important;
}

/* Footer description */
.footer-description {
    color: #cbd5e1 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

/* Footer links */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem !important;
}

.footer-links a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding-left: 0 !important;
}

.footer-links a::before {
    content: '→' !important;
    position: absolute !important;
    left: -20px !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    color: #2d3748 !important;
}

.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 20px !important;
}

.footer-links a:hover::before {
    opacity: 1 !important;
    left: 0 !important;
}

/* Contact info styling */
.contact-info {
    color: #cbd5e1 !important;
}

.contact-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
    background: rgba(37, 99, 235, 0.1) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    transition: all 0.3s ease !important;
}

.contact-item:hover {
    background: rgba(45, 55, 72, 0.15) !important;
    border-color: rgba(45, 55, 72, 0.3) !important;
    transform: translateY(-2px) !important;
}

.contact-icon {
    margin-right: 1rem !important;
    color: #2563eb !important;
    flex-shrink: 0 !important;
}

.contact-details {
    flex: 1 !important;
}

.contact-label {
    display: block !important;
    font-size: 0.875rem !important;
    color: #94a3b8 !important;
    margin-bottom: 0.25rem !important;
}

.contact-value {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.contact-value:hover {
    color: #60a5fa !important;
}

/* Social links styling */
.social-links {
    margin-top: 1.5rem !important;
}

.social-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.social-share {
    display: flex !important;
    gap: 1rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.social-share li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    border-radius: 50% !important;
    color: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.social-share li a:hover {
    background: rgba(45, 55, 72, 0.3) !important;
    border-color: #2d3748 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(45, 55, 72, 0.3) !important;
}

/* Footer bottom styling */
.footer-bottom {
    border-top: 1px solid rgba(37, 99, 235, 0.2) !important;
    padding-top: 2rem !important;
    margin-top: 3rem !important;
}

.copyright-text {
    color: #94a3b8 !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
}

.author-link {
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.author-link:hover {
    color: #60a5fa !important;
}

.footer-bottom-links {
    display: flex !important;
    gap: 2rem !important;
    justify-content: flex-end !important;
}

.footer-bottom-links a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    transition: color 0.3s ease !important;
}

.footer-bottom-links a:hover {
    color: #2d3748 !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: center !important;
        margin-top: 1rem !important;
    }
    
    .contact-item {
        padding: 0.5rem !important;
    }
    
    .social-share {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .footer-bottom-links {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
    
    .rn-footer-area {
        padding: 3rem 0 !important;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.footer-links a:focus,
.contact-value:focus,
.author-link:focus,
.footer-bottom-links a:focus,
.social-share li a:focus {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .rn-footer-area {
        background: #000000 !important;
    }
    
    .footer-widget {
        color: #ffffff !important;
    }
    
    .footer-links a,
    .contact-value {
        color: #ffffff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer-links a,
    .contact-item,
    .social-share li a,
    .footer-logo {
        transition: none !important;
    }
    
    .footer-links a:hover,
    .contact-item:hover,
    .social-share li a:hover,
    .footer-logo:hover {
        transform: none !important;
    }
}
