/* -------------------------------------------------------------
   FREELANCER.VACANCY.NG - PRODUCTION MARKETPLACE STYLESHEET
   Extracted directly from D:\BHNG\freelancer.vacancy.ng\marketplace\index.php
   ------------------------------------------------------------- */
body.page-freelancer {
    background: #fbfaff !important;
    color: #101828;
    --fl-primary: #7c3aed;
    --fl-primary-deep: #6d28d9;
    --fl-primary-dark: #5b21b6;
    --fl-primary-light: #f4edff;
    --fl-primary-soft: #ede4ff;
    --fl-border: #e9ddfb;
    --fl-text: #1e293b;
    --fl-muted: #64748b;
    --fl-bg-card: #ffffff;
    --fl-blue: #0284c7;
}

body.page-freelancer .main-content {
    width: min(1380px, 96%) !important;
    max-width: 1380px !important;
    margin: 0 auto 60px !important;
    padding-top: 14px !important;
    padding-bottom: 70px !important;
}

.fl-mp-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Mobile Top Post CTA */
.fl-mp-mobile-top {
    display: none;
    margin-bottom: 8px;
}
.fl-btn-post-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.28);
}

/* Search Header */
.fl-mp-search-card {
    background: #ffffff;
    border: 1px solid var(--fl-border, #e9ddfb);
    border-radius: 16px;
    padding: 8px 12px;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.04);
}
.fl-mp-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fl-mp-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
}
.fl-mp-search-input-wrap svg {
    color: #94a3b8;
    flex-shrink: 0;
}
.fl-mp-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--fl-text, #1e293b);
    background: transparent;
    padding: 6px 0;
}
.fl-mp-search-btn {
    background: #0369be;
    color: #ffffff;
    border: none;
    padding: 9px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}
.fl-mp-search-btn:hover {
    background: #02579d;
}
.fl-mp-mobile-filter-btn {
    display: none;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    color: #475569;
    cursor: pointer;
}

/* Category Pills Row */
.fl-mp-categories-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.fl-mp-categories-row::-webkit-scrollbar {
    display: none;
}
.fl-mp-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    transition: all 0.18s ease;
    cursor: pointer;
}
.fl-mp-pill:hover {
    border-color: var(--fl-primary, #7c3aed);
    color: var(--fl-primary, #7c3aed);
}
.fl-mp-pill.active {
    background: var(--fl-primary, #7c3aed);
    color: #ffffff;
    border-color: var(--fl-primary, #7c3aed);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Sub-Tab Navigation Bar */
.fl-mp-subnav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 2px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.fl-mp-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.fl-mp-tabs::-webkit-scrollbar {
    display: none;
}
.fl-mp-tab {
    display: inline-block;
    padding: 10px 4px;
    font-size: 14.5px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.18s ease;
    cursor: pointer;
    background: transparent;
    border: none;
}
.fl-mp-tab:hover {
    color: var(--fl-primary, #7c3aed);
}
.fl-mp-tab.active {
    color: var(--fl-primary, #7c3aed);
}
.fl-mp-tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--fl-primary, #7c3aed);
    border-radius: 3px 3px 0 0;
}

.fl-mp-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fl-mp-sort-select {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #334155;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}
.fl-mp-view-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fl-mp-view-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: grid;
    place-items: center;
    color: #64748b;
    cursor: pointer;
}
.fl-mp-view-btn.active {
    background: var(--fl-primary-light, #f4edff);
    color: var(--fl-primary, #7c3aed);
    border-color: var(--fl-primary, #7c3aed);
}

/* Marketplace Cards Grid (3 Columns on Desktop) */
.fl-mp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.fl-mp-grid.is-list {
    grid-template-columns: 1fr;
}

/* Marketplace Card */
.fl-mp-card {
    background: #ffffff;
    border: 1px solid var(--fl-border, #e9ddfb);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.04);
}
.fl-mp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.08);
}

/* Card Top Strip */
.fl-mp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--fl-muted, #64748b);
}
.fl-mp-time-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.fl-mp-badge-urgent {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}
.fl-mp-bookmark-btn {
    background: none;
    border: none;
    padding: 0;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.18s ease;
}
.fl-mp-bookmark-btn:hover, .fl-mp-bookmark-btn.saved {
    color: var(--fl-primary, #7c3aed);
}

/* Card Featured Image */
.fl-mp-thumb-wrap {
    width: 100%;
    height: 185px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #f1f5f9;
    position: relative;
}
.fl-mp-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.fl-mp-card:hover .fl-mp-thumb-wrap img {
    transform: scale(1.02);
}

/* Card Title & Desc */
.fl-mp-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.fl-mp-card-title a {
    color: inherit;
    text-decoration: none;
}
.fl-mp-card-title a:hover {
    color: var(--fl-primary, #7c3aed);
}
.fl-mp-card-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Location & Type Badges */
.fl-mp-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 12px;
}
.fl-mp-loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #475569;
    font-weight: 500;
}
.fl-mp-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11.5px;
    font-weight: 600;
}

/* Budget & Proposals */
.fl-mp-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.fl-mp-price-val {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
}
.fl-mp-proposals-val {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Skills Badges */
.fl-mp-skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.fl-mp-skill-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

/* Footer / Author & CTA */
.fl-mp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.fl-mp-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.fl-mp-author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--fl-primary-light, #f4edff);
    color: var(--fl-primary, #7c3aed);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.fl-mp-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fl-mp-author-text {
    min-width: 0;
}
.fl-mp-author-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fl-mp-verified-icon {
    color: #3b82f6;
    flex-shrink: 0;
}
.fl-mp-author-role {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fl-mp-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #7c3aed;
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}
.fl-mp-apply-btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

/* Mobile Sticky Bottom Navigation */
.fl-mp-mobile-nav {
    display: none;
}
@media (max-width: 768px) {
    .fl-mp-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
        z-index: 999;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
    }
    .fl-mp-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #64748b;
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        flex: 1;
    }
    .fl-mp-nav-item.active {
        color: var(--fl-primary, #7c3aed);
    }
    .fl-mp-nav-item svg {
        width: 20px;
        height: 20px;
    }
    .fl-mp-nav-post-circle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
        color: #ffffff;
        display: grid;
        place-items: center;
        margin-top: -22px;
        box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
    }
    .fl-mp-nav-post-circle svg {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
    }

    .fl-mp-grid {
        grid-template-columns: 1fr;
    }
    .fl-mp-mobile-top {
        display: block;
    }
    .fl-mp-mobile-filter-btn {
        display: block;
    }
    .fl-mp-search-btn {
        display: none;
    }
    .fl-mp-controls {
        display: none;
    }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .fl-mp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
