﻿/* ===================================================== */
/* File     : ani-bottom-nav.css                          */
/* Version  : 1.0                                         */
/* Date     : 1405/07/07                                  */
/* Author   : Dr. Ehsan Shirsan (Ani Holding)            */
/* Path     : C:\AniProject\Source\Ani\wwwroot\css\      */
/* Purpose  : Global Bottom Nav padding fix              */
/* ===================================================== */

/* ═══════════════════════════════════════════════
   🎯 حل مشکل اسکرول با Bottom Nav
   ═══════════════════════════════════════════════ */

:root {
    --ani-bottom-nav-height: 72px;
    --ani-bottom-nav-offset: 16px;
    --ani-bottom-nav-total: 104px; /* 72 + 16 + 16 */
}

/* body */
body {
    padding-bottom: var(--ani-bottom-nav-total) !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* اگه container داری */
.ani-page-container,
.ani-main,
.main-container,
main {
    padding-bottom: calc(var(--ani-bottom-nav-total) + 20px);
}

/* Bottom Nav — ثابت در پایین */
.ani-bottom-nav {
    position: fixed;
    bottom: var(--ani-bottom-nav-offset);
    left: 16px;
    right: 16px;
    max-width: 448px;
    margin: 0 auto;
    height: var(--ani-bottom-nav-height);
    z-index: 999;
}

/* 📱 موبایل کوچک */
@media (max-width: 380px) {
    :root {
        --ani-bottom-nav-height: 68px;
        --ani-bottom-nav-offset: 12px;
        --ani-bottom-nav-total: 96px;
    }
}
