﻿/* ============================================================
   Mobile UX pass — sticky download bar, tap targets, fonts.
   Bar markup lives in layout/app.blade.php after the footer.
   ============================================================ */

/* Images with explicit width/height attrs (CLS fix) must still scale
   fluidly — attribute height alone distorts w-100 images. */
img[width][height] {
    height: auto;
}

/* ---- Sticky mobile download bar (hidden on desktop) ---- */
.tpm-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    gap: 10px;
    height: 62px;
    padding: 8px 12px;
    background: linear-gradient(160deg, #30192b 0%, #190014 100%);
    border-top: 1px solid rgba(174, 92, 255, .35);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .45);
}

.tpm-mb-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

.tpm-mb-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.tpm-mb-name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tpm-mb-meta {
    color: #cfc3d6;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tpm-mb-btn {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 128px;
    padding: 5px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7300, #ff0095);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.tpm-mb-size {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* ---- Language switcher (EN | हिंदी) in navbar ---- */
.tpm-lang a {
    color: #cfc3d6;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 4px;
    transition: color .25s ease;
}

.tpm-lang a:hover {
    color: #fff;
}

.tpm-lang a.tpm-lang-active {
    color: #ffb800;
}

.tpm-lang-sep {
    color: rgba(207, 195, 214, .4);
    margin: 0 4px;
}

/* ---- Mobile nav: open as overlay, don't push the hero down ---- */
@media (max-width: 991.98px) {
    .Custome_Navebar {
        position: relative;
    }

    .Custome_Navebar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1060;
        background-color: #440027;
        padding: 4px 16px 14px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, .45);
        border-bottom: 1px solid rgba(174, 92, 255, .25);
    }
}

@media (max-width: 768px) {
    .tpm-mobilebar {
        display: flex;
    }

    /* keep last section / footer clear of the fixed bar */
    body {
        padding-bottom: 86px;
    }

    /* ---- Tap targets (min 48px, padding only — no layout change) ---- */
    footer .list-unstyled li a,
    footer p a {
        display: inline-block;
        padding: 12px 6px;
    }

    footer .list-unstyled li {
        margin-bottom: 0 !important;
    }

    .tpm-trust-pill {
        min-height: 48px;
    }

    .navbar .nav-link,
    .navbar-nav a {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    /* ---- Readability: content paragraphs never below 16px ---- */
    p:not(.small):not(.tpm-reviewed):not(.tpm-mb-meta) {
        font-size: 16px;
    }

    /* ---- Typography & alignment cleanup (justify creates ugly gaps
           on narrow screens; mixed center/left looked scattered) ---- */
    .Why_Choose_Us p,
    .About_TeenPattiMaster p,
    .about_box p,
    .tpm-card p,
    .tpm-step p,
    .tpm-mode p,
    .tpm-tip p {
        text-align: left !important;
        line-height: 1.7;
    }

    .Why_Choose_Us ul,
    .About_TeenPattiMaster ul,
    .about_box ul {
        padding-left: 22px;
        text-align: left !important;
    }

    .Why_Choose_Us ul li,
    .About_TeenPattiMaster ul li,
    .about_box ul li {
        text-align: left !important;
        margin-bottom: 8px;
        line-height: 1.6;
    }

    /* Heading rhythm on mobile */
    .Why_Choose_Us h2,
    .About_TeenPattiMaster h2,
    .about_box h2 {
        font-size: 24px;
        line-height: 1.35;
        margin-top: 24px;
        text-align: left;
    }

    .Why_Choose_Us h3,
    .About_TeenPattiMaster h3,
    .about_box h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    /* Stat tiles (100% Safe / Big Rewards / etc.) — center on mobile */
    .Frour_Topic [class*="col-"] {
        text-align: center;
    }

    .Frour_Topic h3 {
        font-size: 20px;
    }

    /* Footer link columns — left-aligned reads cleaner than centered */
    footer .text-center.text-md-start {
        text-align: left !important;
    }

    footer h4 {
        font-size: 16px;
    }
}
