/**
 * Tenant Footer Styles
 * Advanced responsive footer with modern design
 */

/* Footer Base Styles */
footer {
    border-top: 3px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

footer .footer-logo {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Typography */
footer h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

footer h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Links and Interactions */
footer a {
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    opacity: 0.7 !important;
    transform: translateY(-1px);
}

/* Social Media Icons */
footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

footer .social-icons a:hover,
footer .social-icons a:focus {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    text-decoration: none !important;
    outline: none !important;
}

footer .social-icons i {
    font-size: 1.1rem;
}

/* Quick Links */
footer .quick-links a {
    display: block;
    padding: 0.25rem 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    padding-left: 0.75rem;
}

footer .quick-links a:hover {
    border-left-color: rgba(255,255,255,0.5);
    transform: translateX(3px);
}

/* Contact Information */
footer .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

footer .contact-item i {
    min-width: 20px;
    text-align: center;
    margin-top: 2px;
}

/* Opening Hours */
footer .opening-hours {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Copyright Section */
footer .copyright-section {
    background: rgba(0,0,0,0.1);
    margin: 1rem -1rem -1rem -1rem;
    padding: 1rem;
    border-radius: 0 0 0.25rem 0.25rem;
}

/* Responsive Design */

/* Large Desktop (≥1200px) */
@media (min-width: 1200px) {
    footer {
        padding: 3rem 0 !important;
    }
    
    footer h5 {
        font-size: 1.4rem;
    }
}

/* Desktop (≥992px) */
@media (min-width: 992px) {
    footer {
        padding: 2.5rem 0;
    }
    
    footer .footer-col {
        min-height: 200px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991.98px) {
    footer {
        padding: 2rem 0;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    footer h5 {
        font-size: 1.2rem;
    }
    
    footer .social-icons a {
        width: 35px;
        height: 35px;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767.98px) {
    footer {
        padding: 1.5rem 0;
    }
    
    footer .container {
        padding: 0 1rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer h6 {
        font-size: 0.9rem;
    }
    
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
        text-align: center !important;
    }
    
    footer .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    footer .quick-links a {
        text-align: center;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0.5rem 0;
    }
    
    footer .quick-links a:hover {
        border-bottom-color: rgba(255,255,255,0.3);
        transform: none;
    }
    
    footer .social-icons a {
        margin: 0 0.25rem;
    }
    
    footer .opening-hours {
        margin-bottom: 1rem;
    }
    
    footer .copyright-section {
        margin: 0.5rem -1rem -1rem -1rem;
        padding: 0.75rem 1rem;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    footer {
        padding: 1rem 0;
    }
    
    footer h5 {
        font-size: 1rem;
    }
    
    footer h6 {
        font-size: 0.85rem;
    }
    
    footer .contact-item,
    footer .quick-links a,
    footer .opening-hours {
        font-size: 0.8rem;
    }
    
    footer .social-icons a {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    footer {
        border-top-color: rgba(255,255,255,0.2);
    }
    
    footer .opening-hours {
        background: rgba(255,255,255,0.08);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    footer a:hover {
        text-decoration: none;
    }
    
    footer .social-icons a {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid black;
    }
    
    footer a {
        color: black !important;
    }
    
    footer .social-icons {
        display: none;
    }
}

/* Animation Classes */
.footer-fade-in {
    animation: footerFadeIn 0.6s ease-out;
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.footer-gradient {
    background: linear-gradient(135deg, var(--footer-bg, #343a40) 0%, var(--footer-bg-dark, #212529) 100%) !important;
}

.footer-glass {
    background: rgba(var(--footer-bg-rgb, 52, 58, 64), 0.9) !important;
    backdrop-filter: blur(10px);
}

/* Accessibility Improvements */
footer a:focus {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}

/* Performance Optimizations */
footer img {
    max-width: 100%;
    height: auto;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    footer a,
    footer .social-icons a,
    footer .quick-links a {
        transition: none;
    }
    
    .footer-fade-in {
        animation: none;
    }
}