/* /features/labor-exchange/labor-exchange.css */

.lx-container {
    display: flex;
    flex-direction: column;
    background-color: var(--canvas-bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* ==========================================================================
   1. THE HALLWAY TOGGLE (Sticky Header)
   ========================================================================== */
.lx-sticky-header {
    position: sticky;
    top: 0;
    background-color: var(--canvas-bg);
    padding: 16px 0;
    border-bottom: 1px solid var(--card-bg-alt);
    z-index: 100;
}

.lx-tab-toggle-group {
    display: flex;
    gap: 8px;
    background-color: var(--card-bg-alt);
    padding: 4px;
    border-radius: 8px;
}

.lx-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    min-height: var(--min-hit-zone, 44px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    padding: 0;
}

.lx-tab-btn.active {
    background-color: var(--card-bg);
    color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Tab Content Management */
.lx-tab-content {
    display: none;
    padding-top: 24px;
    flex-direction: column;
    gap: 24px;
}
.lx-tab-content.active { display: flex; }

/* ==========================================================================
   2. THE BROADCAST HUB
   ========================================================================== */
.lx-broadcast-hub {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-bg-alt);
    border-radius: 8px;
    padding: 16px;
}

.lx-liability-notice {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    background-color: color-mix(in srgb, #f59e0b 10%, transparent);
    padding: 10px 12px;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lx-broadcast-input {
    width: 100%;
    background-color: var(--canvas-bg);
    border: 1px solid var(--text-muted); /* Subtle structural border */
    color: var(--text-primary);
    border-radius: 6px;
    padding: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    min-height: 80px;
    resize: vertical;
    outline: none;
    box-shadow: none;
}
.lx-broadcast-input:focus { border-color: var(--accent-primary); }

.lx-broadcast-submit {
    background-color: var(--accent-primary);
    color: var(--canvas-bg);
    border: none;
    font-size: 14px;
    font-weight: 800;
    border-radius: 6px;
    min-height: var(--min-hit-zone, 44px);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.1s ease;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-primary) 30%, transparent);
}
.lx-broadcast-submit:active { transform: scale(0.98); }

/* ==========================================================================
   3. THE ROSTERS (Buddies & Pros)
   ========================================================================== */
.lx-buddy-roster {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lx-buddy-card, .lx-pro-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-bg-alt); /* Subtle structural borders to eliminate empty space */
    border-radius: 8px;
    padding: 16px;
}

.lx-buddy-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lx-buddy-name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}
.lx-buddy-bio {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.lx-view-profile-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    min-height: var(--min-hit-zone, 44px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.lx-view-profile-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background-color: color-mix(in srgb, var(--accent-primary) 10%, transparent);
}

/* ==========================================================================
   4. VERIFIED PROS SPECIFICS
   ========================================================================== */
.lx-promo-hub {
    background: linear-gradient(135deg, var(--card-bg-alt) 0%, var(--card-bg) 100%);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 8px;
}

.lx-promo-title {
    color: var(--accent-primary);
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lx-filter-bar select {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--card-bg-alt);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    padding: 0 12px;
    border-radius: 6px;
    min-height: var(--min-hit-zone, 44px);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300ffcc%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
}

.lx-pro-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.lx-verified-license-badge {
    background-color: color-mix(in srgb, var(--accent-primary) 10%, transparent);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.lx-sponsored-ad-space {
    border: 1px dashed var(--text-muted);
    background-color: var(--card-bg-alt);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 8px 0;
}

/* ==========================================================================
   5. AIR-GAPPED PROFILE OVERLAY MODAL
   ========================================================================== */
.lx-profile-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--canvas-bg);
    z-index: 10005; /* Full isolation overlay */
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.lx-profile-modal.active {
    transform: translateY(0);
}

.lx-profile-content {
    padding: max(var(--mobile-edge-padding, 12px), 24px);
    padding-bottom: 120px; /* Space for fixed bottom bar */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lx-storefront-header h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 800;
}
.lx-storefront-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.lx-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    border-left: 3px solid var(--accent-primary);
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lx-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}
.lx-gallery-placeholder {
    aspect-ratio: 1;
    background-color: var(--card-bg-alt);
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

.lx-review-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-bg-alt);
    border-radius: 8px;
    padding: 16px;
}
.lx-review-card p {
    margin: 0;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    font-style: italic;
}

.lx-modal-bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: var(--canvas-bg);
    border-top: 1px solid var(--card-bg-alt);
    padding: max(var(--mobile-edge-padding, 12px), 16px);
    display: flex;
    gap: 12px;
    z-index: 10010;
}

.lx-modal-btn {
    flex: 1;
    min-height: var(--min-hit-zone, 44px);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.lx-btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
}
.lx-btn-primary {
    background-color: var(--accent-primary);
    border: none;
    color: var(--canvas-bg);
}
