/* Mobile Footer - Shared across all pages */

/* Mobile-only footer */
.mobile-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 0;
    align-items: center;
    justify-content: center;
}

body.dark-mode .mobile-footer {
    background: rgba(0, 0, 0, 0.98);
}

/* Footer layout - icons centered in their spaces */
.mobile-footer .footer-email {
    position: absolute;
    left: 25%; /* Center of left quarter */
    transform: translateX(-50%);
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-footer .footer-instagram {
    position: absolute;
    left: 75%; /* Center of right quarter */
    transform: translateX(-50%);
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Email icon - maintain original aspect ratio */
.mobile-footer .footer-email img {
    width: auto;
    height: 19px; /* Fixed height to maintain proportions */
    transition: transform 0.3s ease, opacity 0.3s ease;
    object-fit: contain;
}

/* Instagram icon */
.mobile-footer .footer-instagram img {
    width: 23px;
    height: 23px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Get yours button in the center */
.mobile-footer .footer-cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mobile-footer .footer-cta-button {
    background: linear-gradient(90deg, 
        #0000FF 0%, 
        #2222FF 25%, 
        #4444FF 35%,
        #6666FF 50%,
        #4444FF 65%,
        #2222FF 75%, 
        #0000FF 100%);
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
    color: white;
    border: none;
    padding: 9px 23px;
    font-family: 'Apercu Pro Medium', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 41, 255, 0.2);
    text-decoration: none;
    display: inline-block;
}

body.dark-mode .mobile-footer .footer-cta-button {
    background: linear-gradient(90deg, 
        #FFFFFF 0%, 
        #EEEEEE 25%, 
        #DDDDDD 35%,
        #CCCCCC 50%,
        #DDDDDD 65%,
        #EEEEEE 75%, 
        #FFFFFF 100%);
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
    color: #0000FF;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.mobile-footer .footer-cta-button:hover,
.mobile-footer .footer-cta-button:active {
    transform: scale(1.05);
    animation: shimmer 2s linear infinite;
    box-shadow: 0 3px 12px rgba(0, 41, 255, 0.3);
}

body.dark-mode .mobile-footer .footer-cta-button:hover,
body.dark-mode .mobile-footer .footer-cta-button:active {
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.3);
}

/* Links styling */
.mobile-footer a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-footer a:hover img,
.mobile-footer a:active img {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Shimmer animation */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Show footer only on mobile */
@media (max-width: 768px) {
    .mobile-footer {
        display: flex;
    }
    
    /* Add padding to body to prevent content from being hidden behind footer */
    body {
        padding-bottom: 86px;
    }
    
    /* Hide the original CTA button on mobile when footer is present */
    .cta-button {
        display: none !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .mobile-footer {
        height: 70px;
    }
    
    .mobile-footer .footer-email {
        left: 20%; /* Slightly closer to center on small screens */
        transform: translateX(-50%);
    }
    
    .mobile-footer .footer-instagram {
        left: 80%; /* Slightly closer to center on small screens */
        transform: translateX(-50%);
    }
    
    .mobile-footer .footer-email img {
        height: 17px; /* Slightly smaller but maintaining aspect ratio */
    }
    
    .mobile-footer .footer-instagram img {
        width: 21px;
        height: 21px;
    }
    
    .mobile-footer .footer-cta-button {
        padding: 8px 21px;
        font-size: 14px;
    }
    
    body {
        padding-bottom: 80px;
    }
}