/* Mobile Footer Responsive Enhancements */

/* iPhone SE and similar small screens */
@media (max-width: 375px) {
    .mobile-footer-content {
        padding: 0 12px;
    }
    
    .mobile-footer-logo img {
        max-width: 130px;
    }
    
    .mobile-footer-social {
        gap: 12px;
    }
    
    .mobile-social-link {
        width: 36px;
        height: 36px;
    }
    
    .mobile-social-link img {
        width: 16px;
        height: 16px;
    }
    
    .mobile-footer-nav a {
        font-size: 14px;
    }
    
    .mobile-footer-info p {
        font-size: 12px;
    }
    
    .mobile-footer-copyright p {
        font-size: 11px;
    }
}

/* Large mobile screens (iPhone Plus, etc.) */
@media (min-width: 414px) and (max-width: 768px) {
    .mobile-footer-logo img {
        max-width: 200px;
    }
    
    .mobile-footer-social {
        gap: 25px;
    }
    
    .mobile-social-link {
        width: 48px;
        height: 48px;
    }
    
    .mobile-social-link img {
        width: 22px;
        height: 22px;
    }
    
    .mobile-footer-nav a {
        font-size: 17px;
    }
}

/* Tablet portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .mobile-footer {
        display: block;
        padding: 40px 0 25px;
    }
    
    .mobile-footer-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 0 30px;
    }
    
    .mobile-footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
    }
    
    .mobile-footer-nav a {
        border-bottom: none;
        padding: 8px 15px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Foldable phones and unusual aspect ratios */
@media (max-width: 768px) and (min-aspect-ratio: 2/1) {
    .mobile-footer {
        padding: 15px 0 10px;
    }
    
    .mobile-footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
    
    .mobile-footer-logo {
        grid-column: 1 / -1;
        margin-bottom: 15px;
    }
    
    .mobile-footer-social {
        margin-bottom: 15px;
    }
    
    .mobile-footer-nav {
        margin-bottom: 15px;
    }
    
    .mobile-footer-info {
        grid-column: 1 / -1;
        margin-bottom: 10px;
    }
    
    .mobile-footer-copyright {
        grid-column: 1 / -1;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-footer {
        background: linear-gradient(135deg, #b8006b 0%, #8a0050 100%);
    }
    
    .mobile-footer-nav a {
        border-bottom-color: rgba(255, 255, 255, 0.15);
    }
    
    .mobile-footer-copyright {
        border-top-color: rgba(255, 255, 255, 0.25);
    }
}

/* Print styles */
@media print {
    .mobile-footer {
        display: none !important;
    }
}

/* Focus styles for accessibility */
.mobile-footer a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-social-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .mobile-footer-logo img,
    .mobile-social-link img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Safe area insets for devices with notches */
@supports (padding: max(0px)) {
    .mobile-footer {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Animation for footer appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-footer.footer-visible {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .mobile-footer-nav a:hover {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .mobile-footer-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-social-link {
        min-width: 44px;
        min-height: 44px;
    }
}