/* Footer Mobile CSS
   Optimized for small screens and touch devices
   Last Updated: May 11, 2025
*/

@media (max-width: 991px) {
    /* General footer styling for mobile */
    footer {
        padding: 2rem 0 1rem;
        background-color: var(--dark-color);
        color: rgba(255, 255, 255, 0.9);
        margin-top: 2rem;
    }
    
    /* Add collapsible functionality for footer sections */
    footer h5 {
        position: relative;
        cursor: pointer;
        padding: 0.75rem 30px 0.75rem 0;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.05rem;
    }
    
    footer h5.no-collapse {
        cursor: default;
        border-bottom: none;
    }
    
    footer h5::after {
        content: "\f107";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: 0;
        font-size: 1rem;
        transition: transform 0.3s ease;
    }
    
    footer h5.no-collapse::after {
        display: none;
    }
    
    footer h5.collapsed::after {
        transform: rotate(180deg);
    }
    
    /* Improve column spacing */
    footer .col-md-2, 
    footer .col-md-4,
    footer .col-lg-2,
    footer .col-lg-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Style the footer links for better touch targets */
    .footer-links {
        padding-left: 0.25rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.2s ease;
    }
    
    .footer-links a:hover,
    .footer-links a:active {
        color: white;
        text-decoration: none;
        transform: translateX(5px);
    }
    
    /* Style the social icons for better touch targets */
    .social-icons {
        display: flex;
        flex-wrap: wrap;
        margin: 1rem 0;
    }
    
    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-right: 12px;
        margin-bottom: 12px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all 0.2s ease;
        text-decoration: none;
    }
    
    .social-icons a i {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .social-icons a:hover {
        background-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Make newsletter fit better on mobile */
    .newsletter-content p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .newsletter-form .input-group {
        flex-wrap: nowrap;
    }
    
    .newsletter-form .form-control {
        height: 42px;
        background-color: rgba(255, 255, 255, 0.9);
        color: var(--dark-color);
        border: none;
    }
    
    .newsletter-form .btn {
        white-space: nowrap;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Copyright section */
    footer .text-center {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
}

/* Additional styles for medium devices */
@media (max-width: 767px) {
    footer {
        text-align: left;
    }
    
    /* Make collapsible content */
    footer .footer-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    
    footer .footer-collapse.show {
        max-height: 500px;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    footer {
        padding: 1.5rem 0 1rem;
    }
    
    /* Stack the footer sections for very small screens */
    footer .row > div {
        width: 100%;
    }
    
    /* First section - logo and brand info */
    footer .col-lg-4:first-child p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.7);
    }
    
    /* Adjust newsletter for very small screens */
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        margin-bottom: 1px;
    }
    
    .newsletter-form .btn {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        width: 100%;
    }
}
