/**
 * MatkaResultt - Unified Modern Footer Styles
 * 100% Matched to Site Theme: Warm Peach (#ffcc99), Deep Indigo (#4B0082), Navy (#001f3f) & Yellow (#ffff00)
 */

/* Global body edge-to-edge alignment for full width header and footer */
body {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* --- MAIN FOOTER WRAPPER --- */
.matka-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 25px 0 0 0 !important;
    padding: 0 !important;
    background: #ffcc99;
    border-top: 3px solid #4B0082 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    color: #1a0826;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 -4px 14px rgba(75, 0, 130, 0.1);
    text-align: left;
}

.matka-footer * {
    box-sizing: border-box;
}

/* --- FOOTER TOP HEADER BAR --- */
.footer-top-header {
    background: linear-gradient(to right, #001f3f, #000047);
    padding: 12px 16px;
    border-bottom: 3px solid #ffcc00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-brand-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.footer-brand-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    gap: 6px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.footer-brand-matka {
    color: #ffffff;
}

.footer-brand-result {
    color: #FFCC99;
}

.footer-live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
}

.footer-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: footerPulse 1.4s ease-in-out infinite;
}

@keyframes footerPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.footer-live-text {
    font-size: 11px;
    font-weight: 800;
    color: #ffff00;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* --- INNER CONTAINER --- */
.matka-footer-inner {
    padding: 14px 14px 10px;
    background: #ffcc99;
}

/* --- TRUST & FEATURE BADGES STRIP --- */
.footer-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.footer-trust-card {
    background: #FFE0C2;
    border: 1.5px solid #4B0082;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(75, 0, 130, 0.08);
    transition: all 0.2s ease;
}

.footer-trust-card:hover {
    background: #ffd1a4;
    border-color: #001f3f;
    transform: translateY(-2px);
}

.footer-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.trust-ico-flash {
    background: #fde68a;
    color: #b45309;
    border: 1px solid #f59e0b;
}

.trust-ico-shield {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #10b981;
}

.trust-ico-chart {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #3b82f6;
}

.trust-ico-phone {
    background: #fce7f3;
    color: #be185d;
    border: 1px solid #ec4899;
}

.footer-trust-content {
    min-width: 0;
}

.footer-trust-title {
    font-size: 13px;
    font-weight: 800;
    color: #001f3f;
    line-height: 1.25;
    margin-bottom: 2px;
}

.footer-trust-sub {
    font-size: 11px;
    color: #555555;
    font-weight: 600;
    line-height: 1.25;
}

/* --- FOOTER MAIN GRID --- */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2px;
    margin-bottom: 12px;
}

.footer-brand-col,
.footer-nav-col {
    background: #FFE0C2;
    border: 1.5px solid #4B0082;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(75, 0, 130, 0.06);
}

.footer-col-heading {
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(to right, #001f3f, #000047);
    padding: 6px 10px;
    border-radius: 5px;
    margin: -12px -14px 10px -14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 2px solid #ffcc00;
}

.footer-brand-tagline {
    font-size: 12.5px;
    line-height: 1.55;
    color: #2d1836;
    font-weight: 600;
    margin: 4px 0 12px;
}

.footer-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.footer-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: #001f3f;
    border: 1px solid #ffcc00;
    color: #ffff00;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-action-btn:hover {
    background: #ff007f;
    border-color: #ff007f;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Nav Links List */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-link-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #003db6;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link-item a:hover {
    color: #ff007f;
    transform: translateX(3px);
}

.footer-link-item a i {
    font-size: 13px;
    color: #4B0082;
    transition: transform 0.2s ease;
}

.footer-link-item a:hover i {
    transform: translateX(2px);
    color: #ff007f;
}

/* --- STATUTORY DISCLAIMER BOX --- */
.footer-disclaimer-box {
    background: #FFE0C2;
    border: 1.5px solid #4B0082;
    border-left: 4px solid #c40000;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.footer-disclaimer-icon {
    font-size: 20px;
    color: #c40000;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-disclaimer-body {
    flex: 1;
}

.footer-disclaimer-title {
    font-size: 12.5px;
    font-weight: 900;
    color: #c40000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.footer-disclaimer-text {
    font-size: 11.5px;
    line-height: 1.6;
    color: #1a0826;
    font-weight: 600;
    margin: 0;
}

/* --- BOTTOM COPYRIGHT BAR --- */
.footer-bottom-bar {
    background: linear-gradient(to right, #001f3f, #000047);
    border-top: 2px solid #ffcc00;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #ffffff;
}

.footer-copy-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-weight: 700;
}

.footer-copy-text strong {
    color: #ffff00;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #ffe7cc;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffff00;
    text-decoration: underline;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .footer-trust-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .footer-brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-live-status-pill {
        display: none !important;
    }

    .footer-top-header {
        justify-content: center;
        padding: 10px 12px;
    }
}

@media (max-width: 600px) {
    .matka-footer-inner {
        padding: 10px 10px 8px;
    }

    .footer-top-header {
        padding: 8px 12px;
        justify-content: center;
    }

    .footer-trust-strip {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-brand-col {
        grid-column: span 1;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 8px;
        font-size: 11.5px;
    }
}

/* ========================================================
   📱 MOBILE-ONLY BOTTOM NAVIGATION BAR & DRAWER STYLES
   (Strictly hidden on desktop, active only on <= 768px)
======================================================== */

@media (min-width: 769px) {

    .mobile-bottom-nav,
    .mobile-sheet-backdrop,
    .mobile-menu-sheet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 68px !important;
    }

    .smart-scroll-btn {
        bottom: 70px !important;
        right: 12px !important;
    }

    .headm-refresh-btn {
        bottom: 120px !important;
        right: 12px !important;
    }

    /* Fixed Bottom Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 58px !important;
        background: #001f3f !important;
        border-top: 3px solid #ffcc00 !important;
        z-index: 9999 !important;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45) !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 4px !important;
        margin: 0 !important;
    }

    .mobile-nav-item {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #94a3b8;
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 700;
        background: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item i {
        font-size: 21px;
        line-height: 1;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: #ffff00 !important;
    }

    .mobile-nav-item.active i {
        color: #ffff00 !important;
        transform: scale(1.1);
    }

    .mobile-nav-item.mobile-nav-highlight {
        color: #facc15;
    }

    .mobile-nav-item.mobile-nav-highlight i {
        color: #facc15;
    }

    .mobile-nav-badge {
        position: absolute;
        top: 4px;
        right: 18%;
        background: #dc2626;
        color: #ffffff;
        font-size: 7.5px;
        font-weight: 900;
        padding: 1px 4px;
        border-radius: 4px;
        letter-spacing: 0.3px;
        animation: badgePulse 1.5s infinite;
    }

    @keyframes badgePulse {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.15);
        }
    }

    /* Bottom Sheet Backdrop */
    .mobile-sheet-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-sheet-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Bottom Sheet Container */
    .mobile-menu-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 80vh;
        background: #001f3f;
        border-top: 3px solid #ffff00;
        border-radius: 20px 20px 0 0;
        z-index: 10001;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.6);
    }

    .mobile-menu-sheet.active {
        transform: translateY(0);
    }

    .mobile-sheet-header {
        padding: 12px 16px;
        border-bottom: 2px solid #4B0082;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #001429;
        border-radius: 20px 20px 0 0;
    }

    .mobile-sheet-title {
        color: #ffff00;
        font-size: 14px;
        font-weight: 900;
        display: flex;
        align-items: center;
        gap: 8px;
        letter-spacing: 0.4px;
        text-transform: uppercase;
    }

    .mobile-sheet-close {
        background: rgba(255, 255, 255, 0.1);
        color: #f1f5f9;
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .mobile-sheet-close:hover {
        background: #dc2626;
        color: #fff;
        border-color: #dc2626;
    }

    .mobile-sheet-body {
        padding: 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(80vh - 60px);
    }

    .mobile-sheet-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding-bottom: 20px;
    }

    .mobile-sheet-item {
        background: #0a2540;
        border: 1.5px solid #4B0082;
        border-radius: 10px;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #f8fafc;
        transition: all 0.2s ease;
    }

    .mobile-sheet-item:hover,
    .mobile-sheet-item:active {
        background: #113559;
        border-color: #ffff00;
        transform: translateY(-1px);
    }

    .mobile-sheet-item.highlight-item {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-color: #facc15;
        box-shadow: 0 0 10px rgba(250, 204, 21, 0.25);
    }

    .sheet-item-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .sheet-item-text {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
        text-align: left;
    }

    .sheet-item-text strong {
        font-size: 12px;
        font-weight: 800;
        color: #f8fafc;
    }

    .sheet-item-text small {
        font-size: 9.5px;
        color: #94a3b8;
        font-weight: 600;
    }
}