/* =====================================================
   NAVIGATION BAR (Breadcrumb + Back Button)
   Works on Mobile, Tablet & Desktop
   ===================================================== */

.mobile-navigation-bar {
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    z-index: 998;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    /* iPhone safe area support */
    padding-top: env(safe-area-inset-top, 0);
}

.mobile-nav-inner {
    display: flex;
    align-items: center;
    padding: 12px 5vw;
    gap: 12px;
    min-height: 50px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Back Button */
.mobile-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    color: var(--primaryColor, #ff0013);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-back-btn:hover {
    background: #e5e7eb;
    transform: scale(1.02);
}

.mobile-back-btn:active {
    background: #d1d5db;
    transform: scale(0.95);
}

/* Nav Content (Breadcrumb or Title) */
.mobile-nav-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Page Title (when no breadcrumb) */
.mobile-page-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Breadcrumb */
.mobile-breadcrumb {
    width: 100%;
    overflow: hidden;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumb-list::-webkit-scrollbar {
    display: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.breadcrumb-item:not(:last-child)::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    margin: 0 10px;
    color: #9ca3af;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primaryColor, #ff0013);
}

.breadcrumb-item.active span {
    color: #1f2937;
    font-weight: 600;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* =====================================================
   DESKTOP STYLES (769px and above)
   Minimal, subtle design for desktop
   ===================================================== */
@media (min-width: 769px) {
    .mobile-navigation-bar {
        background: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: none;
    }

    .mobile-nav-inner {
        padding: 6px 5vw;
        gap: 10px;
        min-height: 32px;
    }

    .mobile-back-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
        border-radius: 6px;
        background: #f3f4f6;
    }

    .mobile-back-btn:hover {
        background: #e5e7eb;
        box-shadow: none;
    }

    .mobile-page-title {
        font-size: 13px;
        font-weight: 500;
        color: #4b5563;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-item:not(:last-child)::after {
        font-size: 8px;
        margin: 0 8px;
    }

    .breadcrumb-item.active span {
        max-width: 400px;
        font-weight: 500;
        color: #374151;
    }
}

/* =====================================================
   TABLET STYLES (577px - 768px)
   ===================================================== */
@media (min-width: 577px) and (max-width: 768px) {
    .mobile-nav-inner {
        padding: 12px 4vw;
    }

    .mobile-back-btn {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .mobile-page-title {
        font-size: 16px;
    }

    .breadcrumb-item {
        font-size: 14px;
    }

    .breadcrumb-item.active span {
        max-width: 200px;
    }
}

/* =====================================================
   MOBILE STYLES (576px and below)
   ===================================================== */
@media (max-width: 576px) {
    .mobile-nav-inner {
        padding: 10px 12px;
        gap: 10px;
        min-height: 48px;
    }

    .mobile-back-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    .mobile-page-title {
        font-size: 15px;
    }

    .breadcrumb-item {
        font-size: 13px;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 8px;
        font-size: 9px;
    }

    .breadcrumb-item.active span {
        max-width: 150px;
    }
}
