/* =========================================================
   CricketSASA — sleek pull-out menu  (v1.2)
   Linked from header.php as css/sleekMenu.css

   IMPORTANT: rules below target the panel by its id (#side-menu)
   and use !important, so they override any older #side-menu rules
   still living in template/css/style.css. That is what makes the
   alignment actually take effect.

   Behaviour:
     * Desktop / tablet (>= 768px): jet-black horizontal top menu
       only, white text. The pull-out tab is hidden.
     * Phones (< 768px): NO top bar, only the frosted pull-out tab
       in the top-left corner. Tab top and panel top are aligned.
   ========================================================= */

/* ---- Vertical MENU tab (top-left, frosted, semi-transparent) ---- */
.menu-tab{
    position: fixed !important;
    left: 0 !important;
    top: 44px !important;                     /* same top as the panel */
    transform: none !important;
    z-index: 1001 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4) !important;    /* a bit transparent, flat (no gloss) */
    color: #fff !important;
    text-decoration: none !important;
    padding: 22px 8px !important;             /* narrower so it covers less content */
    border-radius: 0 14px 14px 0 !important;  /* rounded right corners */
    box-shadow: 1px 0 6px rgba(0,0,0,.18);
    transition: padding-left .25s ease, background .25s ease;
}
.menu-tab:hover,
.menu-tab:focus{
    background: rgba(0,0,0,.6) !important;
    padding-left: 11px !important;
    color: #fff !important;
    text-decoration: none !important;
}
.menu-tab span{
    writing-mode: vertical-rl;
    text-orientation: upright;                /* set to 'mixed' for sideways letters */
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ---- Dimming overlay ------------------------------------ */
#menu-overlay{
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    background: rgba(0,0,0,.5) !important;
    opacity: 0;
    visibility: hidden;
    z-index: 1050 !important;
    transition: opacity .35s ease, visibility .35s ease;
}
#menu-overlay.show{ opacity: 1; visibility: visible; }

/* ---- The slide-out panel (targeted by id to win) -------- */
#side-menu{
    position: fixed !important;
    top: 44px !important;                     /* SAME top as the tab */
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    height: auto !important;                  /* height follows content */
    max-height: calc(100vh - 88px) !important;
    width: 260px !important;
    background: #0a0a0a !important;            /* solid jet black */
    color: #fff !important;
    z-index: 1100 !important;
    transform: translateX(-100%) !important;  /* hidden off-screen */
    transition: transform .35s cubic-bezier(.4,0,.2,1) !important;
    box-shadow: 6px 0 30px rgba(0,0,0,.5) !important;
    border-radius: 0 16px 16px 0 !important;  /* rounded top-right & bottom-right */
    padding: 12px 0 14px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}
#side-menu.open{
    transform: translateX(0) !important;      /* slides in */
}

/* ---- Brand label --------------------------------------- */
#side-menu .side-nav-brand{
    padding: 4px 24px 12px !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 8px;
}
#side-menu .side-nav-brand b{ color: #2ecc71 !important; font-weight: 600; }

/* ---- Menu links ---------------------------------------- */
#side-menu a{
    display: block !important;
    width: auto !important;
    color: #e8e8e8 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    padding: 14px 24px !important;
    border-left: 3px solid transparent !important;
    background: transparent;
    transition: background .2s ease, padding-left .2s ease, border-color .2s ease;
}
#side-menu a:hover{
    background: rgba(255,255,255,.06) !important;
    border-left-color: #2ecc71 !important;
    color: #fff !important;
    padding-left: 30px !important;
}

/* ---- Close (x) button ---------------------------------- */
#side-menu .btn-close{
    position: absolute !important;
    top: 12px !important;
    right: 18px !important;
    width: auto !important;
    padding: 0 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    color: #888 !important;
    background: none !important;
    border-left: none !important;
}
#side-menu .btn-close:hover{
    background: none !important;
    color: #fff !important;
    padding-left: 0 !important;
    border-left: none !important;
}

/* ---- Lock background scroll while open ------------------ */
body.menu-open{ overflow: hidden; }

/* =========================================================
   RESPONSIVE  (breakpoint = 768px; change in BOTH blocks if needed)
   ========================================================= */
@media (min-width: 768px){
    .menu-tab{ display: none !important; }

    .navbar{ background: #0a0a0a !important; }

    .navbar .navbar-nav > li > a,
    .navbar .navbar-nav a{ color: #fff !important; }

    .navbar .navbar-nav > li > a:hover,
    .navbar .navbar-nav > li > a:focus,
    .navbar .navbar-nav a:hover,
    .navbar .navbar-nav a:focus{
        color: #2ecc71 !important;
        background: rgba(255,255,255,.08) !important;
    }
}
@media (max-width: 767px){
    .navbar{
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        min-height: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .navbar .navbar-nav{ display: none !important; }
}
