/* =========================================================
   Press TV – Mobile menu (bar + drawer)
   File: wwwroot/new/styles/components/mobile-menu.css
   Load it LAST (after navbar-update.css).
   Change the colors in :root below to match the brand.
   ========================================================= */

:root {
    --ptv-bg: #00001e;            /* same as <meta name="theme-color"> */
    --ptv-bg-soft: #0b0b36;
    --ptv-bg-hover: #12124a;
    --ptv-line: rgba(255, 255, 255, .10);
    --ptv-text: #ffffff;
    --ptv-muted: rgba(255, 255, 255, .62);
    --ptv-accent: #e4002b;        /* red accent: bar underline, Live, active state */
    --ptv-bar-h: 60px;
    --ptv-drawer-w: min(86vw, 380px);
    --ptv-ease: cubic-bezier(.22, .8, .26, 1);
    --ptv-bp: 992px;
}

/* ---------- Visibility switch (mobile only) ---------- */
.ptv-bar,
.ptv-backdrop,
.ptv-drawer {
    display: none;
}

@media (max-width: 991.98px) {
    /* hide the desktop navbar and the old mobile nav on small screens */
    header .navbar,
    header .mobile-nav {
        display: none !important;
    }

    .ptv-bar { display: flex; }
    .ptv-backdrop { display: block; }
    .ptv-drawer { display: flex; }
}

/* ---------- Scroll lock ---------- */
html.ptv-lock,
html.ptv-lock body {
    overflow: hidden;
}

/* ---------- Top bar ---------- */
.ptv-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--ptv-bar-h);
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: var(--ptv-bg);
    border-bottom: 3px solid var(--ptv-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.ptv-bar-logo img,
.ptv-drawer-logo img {
    display: block;
    height: 38px;
    width: 31px;
    border-radius: 6px;
}

.ptv-bar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ptv-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ptv-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s;
}

.ptv-icon-btn:hover,
.ptv-icon-btn:active {
    background: var(--ptv-bg-hover);
}

.ptv-icon-btn .material-icons {
    font-size: 26px;
}

.ptv-icon-btn:focus-visible,
.ptv-toggle:focus-visible,
.ptv-link:focus-visible,
.ptv-sub a:focus-visible,
.ptv-live:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ---------- Live pill ---------- */
.ptv-live,
.ptv-extra-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    background: var(--ptv-accent);
    padding: 6px 12px;
    border-radius: 999px;
    margin-right: 6px;
}

.ptv-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: ptv-pulse 1.6s ease-in-out infinite;
}

@keyframes ptv-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
    70%  { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ---------- Backdrop ---------- */
.ptv-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 14, .62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.ptv-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease, visibility 0s;
}

/* ---------- Drawer ---------- */
.ptv-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1101;
    width: var(--ptv-drawer-w);
    flex-direction: column;
    background: var(--ptv-bg);
    color: var(--ptv-text);
    border-right: 1px solid var(--ptv-line);
    box-shadow: 8px 0 32px rgba(0, 0, 0, .4);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform .35s var(--ptv-ease), visibility 0s linear .35s;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.ptv-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .35s var(--ptv-ease), visibility 0s;
}

.ptv-drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--ptv-bar-h);
    padding: 0 12px;
    border-bottom: 3px solid var(--ptv-accent);
}

/* ---------- Search ---------- */
.ptv-search {
    flex: 0 0 auto;
    position: relative;
    margin: 14px 16px 6px;
}

.ptv-search .material-icons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--ptv-muted);
    pointer-events: none;
}

.ptv-search input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 44px;
    border: 1px solid var(--ptv-line);
    border-radius: 999px;
    background: var(--ptv-bg-soft);
    color: var(--ptv-text);
    font-family: 'Maven Pro', sans-serif;
    font-size: 16px; /* prevents iOS zoom on focus */
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, background-color .2s;
}

.ptv-search input::placeholder { color: var(--ptv-muted); }
.ptv-search input:focus { border-color: var(--ptv-accent); background: var(--ptv-bg-hover); }
.ptv-search input::-webkit-search-cancel-button { filter: invert(1); }

/* ---------- Navigation list ---------- */
.ptv-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 12px;
}

.ptv-list,
.ptv-sub ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ptv-item {
    border-bottom: 1px solid var(--ptv-line);
}

.ptv-row {
    display: flex;
    align-items: stretch;
}

.ptv-link {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 20px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ptv-text);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: background-color .2s, border-color .2s;
}

.ptv-link:active { background: var(--ptv-bg-hover); }

.ptv-link.is-active {
    border-left-color: var(--ptv-accent);
    background: var(--ptv-bg-soft);
}

.ptv-toggle {
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid var(--ptv-line);
    background: transparent;
    color: var(--ptv-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ptv-toggle:active { background: var(--ptv-bg-hover); }

.ptv-toggle .material-icons {
    font-size: 26px;
    transition: transform .3s var(--ptv-ease);
}

.ptv-item.is-expanded > .ptv-row .ptv-toggle .material-icons {
    transform: rotate(180deg);
    color: var(--ptv-accent);
}

/* ---------- Sub menu (smooth height animation) ---------- */
.ptv-sub {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    background: var(--ptv-bg-soft);
    transition: grid-template-rows .3s var(--ptv-ease), visibility 0s linear .3s;
}

.ptv-sub > ul {
    min-height: 0;
    overflow: hidden;
}

.ptv-item.is-expanded > .ptv-sub {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .3s var(--ptv-ease), visibility 0s;
}

.ptv-sub a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 20px 0 32px;
    font-family: 'Maven Pro', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: capitalize;
    color: var(--ptv-muted);
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: color .2s, background-color .2s;
}

.ptv-sub a:active,
.ptv-sub a.is-active {
    color: #fff;
    background: var(--ptv-bg-hover);
}

.ptv-sub a.is-active { border-left-color: var(--ptv-accent); }

/* ---------- Footer ---------- */
.ptv-drawer-foot {
    flex: 0 0 auto;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--ptv-line);
    background: rgba(0, 0, 0, .18);
    height: 170px;
}

.ptv-extras {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ptv-extra-live { margin-right: 0; }

.ptv-extra-lang {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .05em;
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--ptv-line);
    border-radius: 999px;
}

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

.ptv-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ptv-bg-soft);
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background-color .2s;
}

.ptv-social a:active { background: var(--ptv-accent); }

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
    .ptv-live { padding: 5px 9px; font-size: .72rem; }
    .ptv-icon-btn { width: 40px; height: 40px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .ptv-drawer,
    .ptv-backdrop,
    .ptv-sub,
    .ptv-toggle .material-icons { transition-duration: .01ms !important; }
    .ptv-live-dot { animation: none; }
}
