/* =====================================================================
   BeatWise — Mobile Responsive Stylesheet
   File: assets/css/mobile.css
   ===================================================================== */


/* ─────────────────────────────────────────────────────────────────────
   1. GLOBAL BASE
   ───────────────────────────────────────────────────────────────────── */

html, body {
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
}

@media (max-width: 575px) {
    body { font-size: 14px; }
}


/* ─────────────────────────────────────────────────────────────────────
   2. NAVBAR
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 10px 6px;
        font-size: 15px;
    }
    .navbar-nav .dropdown-menu {
        background: rgba(255,255,255,0.05);
        border: none;
        padding: 0;
    }
    .navbar-nav .dropdown-menu .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 10px 18px;
    }
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background: rgba(255,193,7,0.15);
        color: #ffc107;
    }
}

@media (max-width: 575px) {
    .logo-text { font-size: 17px; }
    .logo-icon { width: 32px; height: 32px; border-radius: 8px; }
    .logo-icon svg { width: 17px; height: 17px; }
}


/* ─────────────────────────────────────────────────────────────────────
   3. NOTIFICATION PANEL
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .bw-notif-panel {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        right: -8px !important;
    }
    .bw-notif-body { max-height: 300px; }
    .bw-notif-title { font-size: 0.8rem; }
    .bw-notif-msg   { font-size: 0.72rem; }
}


/* ─────────────────────────────────────────────────────────────────────
   4. LANDING PAGE (index.php)
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-title { font-size: clamp(1.8rem, 7vw, 3rem); }
    .hero-subtitle { font-size: 0.98rem; }
    .stats-bar { flex-wrap: wrap; gap: 8px !important; }
    .stat-item h3 { font-size: 1.5rem; }
}

@media (max-width: 575px) {
    .hero { padding: 80px 0 44px; }
    .search-bar-wrap { padding: 12px; border-radius: 12px; }
    .stats-bar { padding: 10px !important; border-radius: 12px; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.92rem; }
}

/* Band cards */
@media (max-width: 575px) {
    .band-card .card-body { padding: 12px; }
    .band-cover-wrap img  { height: 150px; }
    .video-thumb-strip span { height: 30px; font-size: 0.6rem; }
}

/* Band modal video grid */
@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .vid-item video { height: 90px; }
    .band-info-panel { padding: 14px; }
}

/* Footer */
@media (max-width: 575px) {
    .site-footer { padding: 32px 0 24px; font-size: 0.85rem; }
}


/* ─────────────────────────────────────────────────────────────────────
   5. AUTH PAGES (login.php, register.php)
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .modal-box {
        padding: 28px 18px !important;
        border-radius: 16px !important;
        max-width: 96vw !important;
        width: 96vw !important;
    }
    .modal-title { font-size: 20px; }
    .eq-corner   { display: none !important; }
    .logo-mark   { left: 16px !important; top: 16px !important; }
}


/* ─────────────────────────────────────────────────────────────────────
   6. USER DASHBOARD
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .post-card       { border-radius: 10px; margin-bottom: 14px; }
    .post-thumb      { max-height: 220px; }
    .post-body       { padding: 10px 12px 4px; }
    .post-actions    { padding: 8px 12px 12px; gap: 4px; }
    .post-action-btn { font-size: 0.78rem; padding: 5px 9px; }

    /* Un-stick the sidebar so it flows naturally below the feed */
    .col-lg-4 .sticky-top { position: static !important; }
}


/* ─────────────────────────────────────────────────────────────────────
   7. BROWSE BANDS
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .filter-card .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .pagination { flex-wrap: wrap; gap: 4px; justify-content: center; }
    .pagination .page-link { padding: 6px 10px; font-size: 0.83rem; }
}


/* ─────────────────────────────────────────────────────────────────────
   8. BAND PROFILE
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .band-cover, .profile-cover { height: 160px !important; }
    .profile-avatar-wrap        { margin-top: -36px !important; }

    .band-profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .band-profile-header .band-actions {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 12px;
        gap: 8px;
    }

    /* Tabs: horizontal scroll */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-tabs::-webkit-scrollbar { display: none; }
    .nav-tabs .nav-link { white-space: nowrap; font-size: 0.88rem; padding: 8px 14px; }
}

@media (max-width: 575px) {
    .band-cover, .profile-cover { height: 130px !important; }
    .profile-avatar-wrap        { margin-top: -30px !important; }
}


/* ─────────────────────────────────────────────────────────────────────
   9. BOOK BAND
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .col-lg-4.sticky-top { position: static !important; }
}

@media (max-width: 767px) {
    .row.g-3 > .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 575px) {
    .card-body.p-4, .card-body.p-5 { padding: 16px !important; }
}


/* ─────────────────────────────────────────────────────────────────────
   10. PAYMENT
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .btn-download-contract, .btn-print-receipt { width: 100%; margin-top: 6px; }
}


/* ─────────────────────────────────────────────────────────────────────
   11. MY BOOKINGS
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .booking-detail-meta { flex-direction: column; gap: 8px; }
}


/* ─────────────────────────────────────────────────────────────────────
   12. MESSAGES
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .msg-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - 80px);
    }
    .msg-layout.no-active .conv-list  { display: block; }
    .msg-layout.no-active .chat-area  { display: none; }
    .msg-layout.has-active .conv-list { display: none; }
    .msg-layout.has-active .chat-area { display: flex; }
    .chat-back-btn { display: inline-flex !important; }
}

@media (max-width: 575px) {
    .chat-bubble { max-width: 85%; font-size: 0.88rem; }
}


/* ─────────────────────────────────────────────────────────────────────
   13. NOTIFICATIONS
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .notification-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
        padding: 12px 14px;
    }
}


/* ─────────────────────────────────────────────────────────────────────
   14. EDIT PROFILE / MY PROFILE
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .profile-cover       { height: 160px !important; }
    .profile-avatar-wrap { margin-top: -40px !important; }
    .profile-form .row > .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 575px) {
    .profile-cover       { height: 120px !important; }
    .profile-avatar-wrap { margin-top: -30px !important; }
}


/* ─────────────────────────────────────────────────────────────────────
   15. MANAGER — AVAILABILITY CALENDAR
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .availability-grid, .calendar-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .cal-day { min-width: 36px; font-size: 0.78rem; }
}

@media (max-width: 575px) {
    .availability-form .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
}


/* ─────────────────────────────────────────────────────────────────────
   16. ADMIN / MANAGER TABLES
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table th, .table td { white-space: nowrap; font-size: 0.83rem; }
}

@media (max-width: 575px) {
    .table .btn-sm { font-size: 0.72rem; padding: 3px 7px; }
    .table .badge  { font-size: 0.7rem; }
}


/* ─────────────────────────────────────────────────────────────────────
   17. MODALS
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .modal-dialog { margin: 10px; }
    .modal-content { border-radius: 12px !important; }
    .modal-header, .modal-body, .modal-footer { padding: 14px 16px; }
}


/* ─────────────────────────────────────────────────────────────────────
   18. ABOUT US
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .about-hero { min-height: 280px; padding: 80px 0 48px; }
    .about-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}

@media (max-width: 575px) {
    .about-hero { min-height: 220px; padding: 70px 0 36px; }
}


/* ─────────────────────────────────────────────────────────────────────
   19. VIDEO GRID (manager/videos.php)
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 575px) {
    .video-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .vid-item video { height: 85px; }
}


/* ─────────────────────────────────────────────────────────────────────
   20. SCROLLBAR STYLING on scroll containers
   ───────────────────────────────────────────────────────────────────── */

.table-responsive,
.nav-tabs,
.availability-calendar {
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
}

.table-responsive::-webkit-scrollbar,
.nav-tabs::-webkit-scrollbar,
.availability-calendar::-webkit-scrollbar {
    height: 4px;
}

.table-responsive::-webkit-scrollbar-thumb,
.nav-tabs::-webkit-scrollbar-thumb,
.availability-calendar::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}


/* ─────────────────────────────────────────────────────────────────────
   21. MOBILE SIDE NAV PANEL
   ───────────────────────────────────────────────────────────────────── */

/* Backdrop overlay */
.bw-sidenav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bw-sidenav-overlay--visible {
    display: block;
    opacity: 1;
}

/* Slide-in drawer */
.bw-sidenav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    z-index: 1300;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.bw-sidenav--open {
    transform: translateX(0);
}

/* Prevent body scroll while open */
.bw-sidenav-body-lock {
    overflow: hidden;
}

/* Header row */
.bw-sidenav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* Close button */
.bw-sidenav-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.bw-sidenav-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Nav list */
.bw-sidenav-nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

/* Individual link */
.bw-sidenav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    cursor: pointer;
}
.bw-sidenav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.45);
    transition: color 0.15s;
}
.bw-sidenav-link:hover,
.bw-sidenav-link:focus {
    background: rgba(255,193,7,0.08);
    color: #ffc107;
    padding-left: 28px;
}
.bw-sidenav-link:hover i,
.bw-sidenav-link:focus i {
    color: #ffc107;
}

/* Divider */
.bw-sidenav-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 8px 0;
}

/* Unread badge */
.bw-sidenav-badge {
    margin-left: auto;
    background: #dc3545;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Register CTA */
.bw-sidenav-register {
    margin: 8px 16px;
    background: #ffc107;
    color: #0d0d0d !important;
    border-radius: 10px;
    font-weight: 700;
    padding: 11px 18px;
    justify-content: center;
}
.bw-sidenav-register i { color: #0d0d0d !important; }
.bw-sidenav-register:hover {
    background: #ffd740;
    color: #0d0d0d !important;
    padding-left: 18px;
}

/* Logout */
.bw-sidenav-logout { color: #f87171 !important; }
.bw-sidenav-logout i { color: #f87171 !important; }
.bw-sidenav-logout:hover {
    background: rgba(220,53,69,0.1);
    color: #ff4444 !important;
}

/* Footer: logged-in user info */
.bw-sidenav-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
}

/* Hide side panel on desktop */
@media (min-width: 992px) {
    .bw-sidenav-toggle { display: none !important; }
    .bw-sidenav,
    .bw-sidenav-overlay { display: none !important; }
}

/* On mobile, hide the Bootstrap desktop collapse */
@media (max-width: 991px) {
    #navbarNav { display: none !important; }
}