/* =====================================================
   NAVIGATION — PROFESSIONAL BROADCAST HEADER
   Radio Kupwara 89.6 FM
   ===================================================== */

/* ── Top Info Bar ── */
.top-bar {
    background: var(--color-dark-bg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.45rem 0;
    position: relative;
    z-index: 1031;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
}

.top-bar-item svg {
    color: var(--color-red);
    opacity: 0.8;
}

.top-bar-divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.12);
    margin: 0 0.85rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: rgba(255,255,255,0.35);
    transition: all 0.25s ease;
    text-decoration: none;
}

.top-bar-social a:hover {
    color: #fff;
    background: rgba(224, 32, 32, 0.15);
}

/* ── Main Navbar ── */
.navbar-main {
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 10, 0.97);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.navbar-main.scrolled {
    box-shadow:
        0 4px 30px rgba(0,0,0,0.4),
        0 1px 3px rgba(0,0,0,0.25);
    border-bottom-color: rgba(224, 32, 32, 0.12);
}

.navbar-main.scrolled::before {
    background: rgba(10, 6, 6, 0.95);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

.navbar-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* ── Brand ── */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
}

.navbar-logo {
    height: 46px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* ── Navbar Right Area ── */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0;
}

/* ══════════════════════════════════════════════
   DESKTOP — Inline Nav from Offcanvas Body
   ══════════════════════════════════════════════ */
@media (min-width: 992px) {
    .offcanvas-header { display: none !important; }
    .offcanvas-mobile-footer { display: none !important; }
    .offcanvas-nav .nav-icon { display: none !important; }
    .offcanvas-nav .live-dot-mobile { display: none !important; }
    .btn-nav-dashboard-mobile { display: none !important; }

    .offcanvas-lg {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        width: auto !important;
        max-width: none !important;
        background: transparent !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .offcanvas-body {
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        overflow: visible !important;
    }

    .offcanvas-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.15rem !important;
        width: auto !important;
    }

    .offcanvas-nav .nav-item {
        width: auto !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .offcanvas-nav .nav-link {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.06em !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        color: rgba(255,255,255,0.55) !important;
        white-space: nowrap !important;
        transition: all 0.25s ease !important;
    }

    .offcanvas-nav .nav-link:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.06) !important;
    }

    .offcanvas-nav .nav-link.active {
        color: #fff !important;
        background: rgba(224, 32, 32, 0.1) !important;
        box-shadow: none !important;
    }

    .offcanvas-nav .nav-link {
    }

    /* Live link desktop */
    .nav-link-live:hover {
        color: var(--color-red) !important;
        background: rgba(224, 32, 32, 0.08) !important;
    }
}

/* ── Dashboard Button ── */
.btn-nav-dashboard {
    background: var(--color-red);
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    margin-left: 1rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    cursor: pointer;
}

.btn-nav-dashboard:hover {
    background: var(--color-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(224, 32, 32, 0.4);
}

/* ── Hamburger ── */
.navbar-toggler {
    border: none !important;
    background: transparent !important;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(224, 32, 32, 0.25);
    border-radius: 10px;
}

.navbar-toggler-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
    height: 16px;
    position: relative;
    pointer-events: none;
}

.toggler-line {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    position: absolute;
    left: 0;
}

.toggler-line:nth-child(1) { top: 0; }
.toggler-line:nth-child(2) { top: 7px; }
.toggler-line:nth-child(3) { top: 14px; }

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
    background: var(--color-red);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
    background: var(--color-red);
}

/* ══════════════════════════════════════════════
   MOBILE OFFCANVAS MENU
   ══════════════════════════════════════════════ */
@media (max-width: 991.98px) {

    .navbar-main .container {
        height: 60px;
    }

    .navbar-logo {
        height: 38px;
    }

    /* Offcanvas Panel */
    .offcanvas-lg {
        background: #0c0808 !important;
        border-left: 1px solid rgba(224, 32, 32, 0.1) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Offcanvas Header */
    .offcanvas-header {
        padding: 1rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        min-height: 60px;
    }

    .offcanvas-brand {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
    }

    .offcanvas-logo {
        height: 36px;
        width: auto;
        display: block;
    }

    .offcanvas-brand-text {
        font-family: var(--font-display);
        font-size: 0.85rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: 0.06em;
    }

    /* Custom Close Button */
    .offcanvas-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.1);
        background: rgba(255,255,255,0.04);
        color: rgba(255,255,255,0.7);
        cursor: pointer;
        transition: all 0.25s ease;
        padding: 0;
        flex-shrink: 0;
    }

    .offcanvas-close-btn:hover {
        background: rgba(224, 32, 32, 0.15);
        border-color: rgba(224, 32, 32, 0.3);
        color: var(--color-red);
        transform: rotate(90deg);
    }

    .offcanvas-close-btn svg {
        pointer-events: none;
    }

    /* Offcanvas Body */
    .offcanvas-body {
        padding: 1.5rem 1.5rem 2.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Nav List */
    .offcanvas-nav {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .offcanvas-nav .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateX(30px);
        animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .offcanvas-nav .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .offcanvas-nav .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .offcanvas-nav .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .offcanvas-nav .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .offcanvas-nav .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .offcanvas-nav .nav-item:nth-child(6) { animation-delay: 0.3s; }
    .offcanvas-nav .nav-item:nth-child(7) { animation-delay: 0.35s; }
    .offcanvas-nav .nav-item:nth-child(8) { animation-delay: 0.4s; }

    @keyframes slideInRight {
        0% { opacity: 0; transform: translateX(30px); }
        100% { opacity: 1; transform: translateX(0); }
    }

    /* Mobile Nav Link */
    .offcanvas-nav .nav-link {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 0.85rem;
        color: rgba(255,255,255,0.65);
        text-decoration: none;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .offcanvas-nav .nav-link svg {
        color: rgba(255,255,255,0.25);
        flex-shrink: 0;
        transition: color 0.25s ease;
    }

    .offcanvas-nav .nav-link:hover,
    .offcanvas-nav .nav-link.active {
        background: rgba(255,255,255,0.05);
        color: #fff;
    }

    .offcanvas-nav .nav-link:hover svg,
    .offcanvas-nav .nav-link.active svg {
        color: var(--color-red);
    }

    .offcanvas-nav .nav-link.active {
        background: rgba(224, 32, 32, 0.08);
        box-shadow: inset 3px 0 0 var(--color-red);
    }

    /* Live link mobile */
    .live-dot-mobile {
        width: 6px;
        height: 6px;
        background: var(--color-red);
        border-radius: 50%;
        margin-left: auto;
        box-shadow: 0 0 6px rgba(224, 32, 32, 0.6);
        animation: liveDotPulse 2s ease-in-out infinite;
    }

    /* Dashboard mobile button */
    .btn-nav-dashboard-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        width: 100%;
        padding: 0.95rem 1.25rem;
        margin-top: 0.75rem;
        background: var(--color-red);
        color: #fff !important;
        font-family: var(--font-body);
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.25s ease;
        opacity: 0;
        transform: translateX(30px);
        animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
    }

    .btn-nav-dashboard-mobile:hover {
        background: var(--color-red-dark);
        box-shadow: 0 4px 16px rgba(224, 32, 32, 0.4);
    }

    /* ── Mobile Footer ── */
    .offcanvas-mobile-footer {
        width: 100%;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255,255,255,0.06);
        text-align: center;
        opacity: 0;
        animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    }

    .mobile-social-links {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .mobile-social-link {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.4);
        transition: all 0.25s ease;
        text-decoration: none;
    }

    .mobile-social-link:hover {
        background: rgba(224, 32, 32, 0.12);
        border-color: rgba(224, 32, 32, 0.3);
        color: var(--color-red);
        transform: translateY(-2px);
    }

    .mobile-social-link svg {
        width: 16px;
        height: 16px;
    }

    .mobile-footer-text {
        font-family: var(--font-body);
        font-size: 0.68rem;
        color: rgba(255,255,255,0.2);
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }
}

/* ── Helper: hide player when mobile menu is open ── */
.sticky-player.nav-menu-open {
    display: none !important;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .offcanvas-nav .nav-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .btn-nav-dashboard-mobile {
        opacity: 1 !important;
        transform: none !important;
    }

    .offcanvas-mobile-footer {
        opacity: 1 !important;
    }
}
