/* ==========================================================================
   Universal Modern, Animated, Mobile-Friendly Footer Stylesheet
   Applied automatically across all footer-r-*.php files in Earthtrip.in
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

/* Base Footer Container */
footer.footer-bg, .footer-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #cbd5e1 !important;
    font-family: 'Inter', sans-serif !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 60px !important;
    margin-top: 60px !important;
    position: relative;
    overflow: hidden;
}

footer.footer-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

footer.footer-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.footer {
    position: relative;
    z-index: 2;
}

/* Footbox / Columns & Micro-Animations */
.footbox {
    margin-bottom: 35px !important;
    animation: footerFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.footbox:nth-child(1) { animation-delay: 0.1s; }
.footbox:nth-child(2) { animation-delay: 0.2s; }
.footbox:nth-child(3) { animation-delay: 0.3s; }
.footbox:nth-child(4) { animation-delay: 0.4s; }

/* Widget Titles */
.footer-bg h3.widget-title, .widget-title, .footer-bg h3 {
    font-family: 'Inter', sans-serif !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    position: relative;
    padding-bottom: 12px !important;
    letter-spacing: -0.01em;
}

.footer-bg h3.widget-title::after, .widget-title::after, .footer-bg h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.footbox:hover .widget-title::after, .footbox:hover h3::after {
    width: 75px;
}

/* Text Content & Links */
.footer-bg p, .textwidget p {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
}

.footer-bg ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-bg ul li {
    margin-bottom: 12px !important;
}

.footer-bg ul li a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer-bg ul li a::before {
    content: "›";
    color: #3b82f6;
    font-weight: 700;
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.25s ease;
}

.footer-bg ul li a:hover {
    color: #60a5fa !important;
    transform: translateX(4px);
}

.footer-bg ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Social Media Icons */
ul.social, ul.social-icons, .social, .social-icons {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
}

ul.social li, ul.social-icons li, .social li, .social-icons li {
    margin-bottom: 0 !important;
}

ul.social li a, ul.social-icons li a, .social li a, .social-icons li a {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #cbd5e1 !important;
    font-size: 1.15rem !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

ul.social li a::before, ul.social-icons li a::before {
    display: none !important;
}

ul.social li a:hover, ul.social-icons li a:hover, .social li a:hover, .social-icons li a:hover {
    background: #2563eb !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 12px 20px -5px rgba(37, 99, 235, 0.5) !important;
}

/* Pill-Shaped Newsletter Subscription Form */
.subscription-form, #newsletter-form .subscription-form {
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px !important;
    padding: 6px !important;
    transition: all 0.3s ease !important;
    margin-top: 12px !important;
}

.subscription-form:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

.subscription-form input, input#newsletter, input[name="newsletter"] {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    font-size: 0.92rem !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
}

.subscription-form input::placeholder {
    color: #64748b !important;
}

.subscription-form button, button.submit, button.button {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    flex-shrink: 0 !important;
}

.subscription-form button:hover, button.submit:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4) !important;
    background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
}

/* Bottom Bar & Copyright */
.blackbg, .footer-bottom {
    background: #090e1a !important;
    padding: 24px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: 40px !important;
    font-size: 0.88rem !important;
    color: #94a3b8 !important;
    position: relative;
    z-index: 2;
}

.developed {
    line-height: 1.8 !important;
}

.developed a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    margin: 0 6px !important;
}

.developed a:hover {
    color: #60a5fa !important;
    text-decoration: underline !important;
}

.copyright {
    color: #64748b !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   Mobile & Tablet Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    footer.footer-bg {
        padding-top: 40px !important;
    }
    .footbox {
        margin-bottom: 35px !important;
    }
}

@media (max-width: 768px) {
    footer.footer-bg {
        padding-top: 35px !important;
        text-align: center !important;
    }

    .widget-title::after, .footer-bg h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footbox:hover .widget-title::after, .footbox:hover h3::after {
        width: 60px !important;
    }

    .footer-bg ul li a {
        justify-content: center !important;
    }

    .footer-bg ul li a::before {
        display: none !important;
    }

    ul.social, ul.social-icons, .social, .social-icons {
        justify-content: center !important;
    }

    .subscription-form {
        flex-direction: column !important;
        border-radius: 16px !important;
        padding: 12px !important;
        max-width: 320px !important;
        margin: 15px auto 0 !important;
    }

    .subscription-form input, input#newsletter {
        text-align: center !important;
        padding: 10px !important;
        width: 100% !important;
    }

    .subscription-form button, button.submit {
        width: 100% !important;
        height: 44px !important;
        border-radius: 12px !important;
        margin-top: 8px !important;
    }

    .developed, .copyright {
        text-align: center !important;
        float: none !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }
    
    .pull-right, .pull-left {
        float: none !important;
    }
}
