/* ==========================================================================
   TripTickers Modern Premium Footer v2 Styling (Desktop & Mobile App UX)
   ========================================================================== */

/* 1. Base Container & Themes */
.user-page .tt-modern-footer,
.vendor-dashboard-theme .tt-modern-footer,
.bravo_user_profile ~ .tt-modern-footer,
.col-sidebar-wrap .tt-modern-footer {
    display: none !important;
}

.tt-modern-footer {
    position: relative;
    width: 100%;
    color: #94A3B8;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    clear: both;
}

/* Theme: Deep Navy & Slate (Default) */
.tt-modern-footer.tt-theme-dark_navy {
    background: linear-gradient(180deg, #111e33 0%, #0c1626 50%, #070d18 100%);
    color: #94a3b8;
}
.tt-modern-footer.tt-theme-dark_navy .tt-footer-bottom {
    background: #050a12;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Theme: Midnight Obsidian */
.tt-modern-footer.tt-theme-obsidian {
    background: linear-gradient(180deg, #0f172a 0%, #090e17 50%, #04070c 100%);
    color: #94a3b8;
}
.tt-modern-footer.tt-theme-obsidian .tt-footer-bottom {
    background: #020407;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Theme: Modern Slate */
.tt-modern-footer.tt-theme-slate {
    background: linear-gradient(180deg, #1e293b 0%, #151e2d 50%, #0f172a 100%);
    color: #cbd5e1;
}
.tt-modern-footer.tt-theme-slate .tt-footer-bottom {
    background: #090e17;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 2. Modern Newsletter & Value Proposition Card */
.tt-footer-newsletter-wrap {
    padding: 36px 0 16px 0;
}

.tt-footer-newsletter-card {
    background: linear-gradient(135deg, rgba(28, 44, 70, 0.85) 0%, rgba(15, 31, 56, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    padding: 28px 32px;
    backdrop-filter: blur(12px);
    position: relative;
}

.tt-newsletter-info {
    gap: 16px;
}

.tt-newsletter-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f47c20 0%, #d96512 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(244, 124, 32, 0.35);
}

.tt-newsletter-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.tt-newsletter-desc {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    line-height: 1.45;
}

/* Newsletter Form Input & Button */
.tt-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tt-input-icon {
    position: absolute;
    left: 18px;
    color: #64748b;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.tt-newsletter-input {
    border: none !important;
    box-shadow: none !important;
    height: 46px;
    border-radius: 50px;
    padding-left: 44px !important;
    padding-right: 14px;
    font-size: 13.5px;
    color: #0f172a !important;
    background: transparent !important;
    width: 100%;
}

.tt-newsletter-input::placeholder {
    color: #94a3b8;
}

.tt-newsletter-btn {
    height: 46px;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #f47c20 0%, #e06208 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 0 22px !important;
    border: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease !important;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(244, 124, 32, 0.35);
}

.tt-newsletter-btn:hover {
    background: linear-gradient(135deg, #d96512 0%, #c45203 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(244, 124, 32, 0.45);
}

.tt-newsletter-msg {
    margin-top: 8px;
    font-size: 12px;
}
.tt-newsletter-msg .alert-success {
    color: #10b981;
    background: transparent;
    border: none;
    padding: 0;
}
.tt-newsletter-msg .alert-danger {
    color: #ef4444;
    background: transparent;
    border: none;
    padding: 0;
}

/* Trust Pillars Row */
.tt-trust-pillars-row {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-trust-pillar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    transition: all 0.2s ease;
}

.tt-trust-pillar:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(244, 124, 32, 0.3);
    transform: translateY(-2px);
}

.tt-trust-pillar i {
    font-size: 18px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tt-trust-pillar div {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.tt-trust-pillar strong {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-trust-pillar span {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Main Footer Body */
.tt-footer-main {
    padding: 40px 0 30px 0;
}

.tt-footer-logo {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.tt-footer-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.tt-footer-brand-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 380px;
}

/* Contact Pills */
.tt-footer-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tt-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #e2e8f0 !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tt-contact-pill i {
    color: #f47c20;
    font-size: 13px;
}

.tt-contact-pill:hover {
    background: rgba(244, 124, 32, 0.15);
    border-color: rgba(244, 124, 32, 0.4);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Social Icons */
.tt-footer-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.tt-social-label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tt-social-icons {
    display: flex;
    gap: 8px;
}

.tt-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.tt-social-icon:hover {
    transform: translateY(-3px);
    color: #ffffff !important;
}

.tt-social-icon.tt-facebook:hover { background: #1877f2; border-color: #1877f2; }
.tt-social-icon.tt-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #dc2743; }
.tt-social-icon.tt-twitter:hover { background: #000000; border-color: #333333; }
.tt-social-icon.tt-youtube:hover { background: #ff0000; border-color: #ff0000; }
.tt-social-icon.tt-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }

/* 4. Dynamic Widgets Styling */
.tt-footer-widget {
    margin-bottom: 25px;
    text-align: left !important;
}

.tt-widget-title {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
    text-align: left !important;
}

.tt-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0 !important;
    transform: none !important;
    width: 26px;
    height: 2.5px;
    background: #f47c20;
    border-radius: 2px;
}

.tt-widget-content {
    color: #94a3b8;
    font-size: 13px;
    text-align: left !important;
}

.tt-widget-content ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.tt-widget-content ul li {
    margin-bottom: 9px;
    position: relative;
    text-align: left !important;
}

.tt-widget-content ul li a,
.tt-widget-content a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: left !important;
}

.tt-widget-content ul li a:hover,
.tt-widget-content a:hover {
    color: #f47c20 !important;
    transform: translateX(4px);
}

.tt-widget-content p,
.tt-widget-content div {
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.55;
    text-align: left !important;
}

.tt-widget-content .contact,
.tt-widget-content .c-title {
    color: #f47c20 !important;
    font-weight: 600;
    text-align: left !important;
}

/* 5. Bottom Sub-Footer Bar */
.tt-footer-bottom {
    padding: 20px 0;
}

.tt-footer-copy-text {
    font-size: 12.5px;
    color: #64748b;
    text-align: left;
}

.tt-footer-copy-text a {
    color: #94a3b8 !important;
    text-decoration: none !important;
}

.tt-footer-copy-text a:hover {
    color: #f47c20 !important;
}

.tt-footer-payment-badges {
    font-size: 12.5px;
    color: #64748b;
    text-align: right;
}

.tt-default-payment-icons .badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 11px;
}

/* 6. Floating Back to Top Button */
.tt-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f47c20 0%, #d96512 100%);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(244, 124, 32, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}

.tt-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tt-back-to-top:hover {
    background: linear-gradient(135deg, #e06208 0%, #b84700 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(244, 124, 32, 0.6);
}

/* 7. Mobile Native App Experience (<768px) */
@media (max-width: 768px) {
    .tt-footer-newsletter-wrap {
        padding: 20px 0 10px 0;
    }
    .tt-footer-newsletter-card {
        padding: 20px 16px;
        border-radius: 16px;
        margin: 0 2px;
    }
    .tt-newsletter-info {
        flex-direction: column;
        text-align: left !important;
        gap: 8px;
        margin-bottom: 12px;
    }
    .tt-newsletter-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 17px;
        border-radius: 10px;
        margin: 0 0 4px 0;
    }
    .tt-newsletter-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 4px;
        letter-spacing: -0.2px;
        text-align: left !important;
    }
    .tt-newsletter-desc {
        font-size: 12px;
        line-height: 1.4;
        color: #94a3b8;
        margin: 0 0 10px 0;
        text-align: left !important;
    }
    .tt-input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 8px;
    }
    .tt-input-icon {
        left: 14px;
        top: 14px;
    }
    .tt-newsletter-input {
        background: #ffffff !important;
        border-radius: 12px !important;
        height: 44px !important;
        font-size: 13.5px !important;
        padding-left: 38px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
    }
    .tt-newsletter-btn {
        width: 100%;
        height: 44px !important;
        justify-content: center;
        border-radius: 12px !important;
        font-size: 13.5px !important;
    }
    
    /* Compact Trust Pillars 2x2 grid */
    .tt-trust-pillars-row {
        margin-top: 18px;
        padding-top: 16px;
    }
    .tt-trust-pillar {
        padding: 8px 10px;
        border-radius: 10px;
        gap: 8px;
        margin-bottom: 8px;
        text-align: left !important;
    }
    .tt-trust-pillar i {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 13px;
        border-radius: 8px;
    }
    .tt-trust-pillar strong {
        font-size: 11px;
    }
    .tt-trust-pillar span {
        font-size: 9.5px;
    }

    /* Main brand section - Strict Left Align */
    .tt-footer-main {
        padding: 24px 0 16px 0;
    }
    .tt-footer-brand-box {
        text-align: left !important;
        margin-bottom: 22px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .tt-footer-logo {
        max-height: 36px;
    }
    .tt-footer-brand-desc {
        font-size: 12px;
        line-height: 1.5;
        margin: 0 0 14px 0;
        text-align: left !important;
    }
    .tt-footer-contact-pills {
        justify-content: flex-start !important;
        gap: 6px;
    }
    .tt-contact-pill {
        font-size: 11px;
        padding: 5px 12px;
    }
    .tt-footer-social-links {
        justify-content: flex-start !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
        margin-top: 12px;
    }
    .tt-social-icons {
        justify-content: flex-start !important;
    }
    .tt-social-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    /* Widget columns - Strict Left Align & 2-Column Mobile UX */
    .tt-footer-widget {
        margin-bottom: 18px;
        text-align: left !important;
    }
    .tt-widget-title {
        font-size: 13.5px !important;
        margin-bottom: 10px !important;
        padding-bottom: 6px !important;
        display: inline-block !important;
        text-align: left !important;
    }
    .tt-widget-title::after {
        left: 0 !important;
        transform: none !important;
        width: 20px !important;
    }
    .tt-widget-content {
        font-size: 12px !important;
        text-align: left !important;
    }
    .tt-widget-content ul {
        padding-left: 0 !important;
        text-align: left !important;
    }
    .tt-widget-content ul li {
        margin-bottom: 7px !important;
        text-align: left !important;
    }
    .tt-widget-content ul li a,
    .tt-widget-content a,
    .tt-widget-content p,
    .tt-widget-content div {
        text-align: left !important;
    }
    .tt-widget-content ul li a:hover,
    .tt-widget-content a:hover {
        transform: translateX(2px) !important;
    }

    /* Sub footer */
    .tt-footer-bottom {
        padding: 16px 0;
        text-align: left;
    }
    .tt-footer-copy-text {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 8px;
        text-align: left !important;
    }
    .tt-footer-payment-badges {
        text-align: left !important;
    }
    
    /* Floating back to top button */
    .tt-back-to-top {
        bottom: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}
