/* path: wp-content/themes/bedrebyttede/assets/css/pages/profile-surface.css */

/** 
 * Scoped styles for the Profile Partial when viewed inside the Global Surface.
 * Uses [data-bb-view="profile"] to ensure zero interference with the main site.
 */

[data-bb-view="profile"] {
    padding: var(--space-6) var(--space-4);
}

/* Responsive Grid: Inherit global .bb-grid (1 -> 2 -> 3 -> 4) */

/* Adapt Hero for Surface context */
[data-bb-view="profile"] .bb-profile-hero__grid {
    padding: var(--space-4);
    background: var(--surface-2);
    border-radius: var(--radius-2);
    margin-bottom: var(--space-6);
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 720px) {
    [data-bb-view="profile"] .bb-profile-hero__grid {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

[data-bb-view="profile"] .bb-profile-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-1) !important;
}

[data-bb-view="profile"] .bb-handle {
    font-size: var(--fs-sm);
    color: var(--text-3);
}

/* Tabs adaptation - Match profile.css 1:1 */
[data-bb-view="profile"] .bb-tabs {
    display: flex;
    overflow: auto;
    background: transparent !important;
    /* No background as requested */
    border-radius: 0;
    margin-bottom: var(--space-4);
    border-bottom: var(--space-1) solid var(--surface-letterbox-grad);
    box-shadow: none;
}

[data-bb-view="profile"] .bb-tabs button {
    appearance: none;
    background: transparent !important;
    border: 0;
    padding: var(--space-2, 8px) var(--space-5, 20px);
    font-weight: 600;
    color: var(--text-3, #6a7a72);
    border-bottom: 2px solid var(--surface-2);
    /* Muted border bottom */
    border-radius: 0 !important;
    cursor: pointer;
    position: relative;
    margin: var(--space-1);
    font-size: var(--fs-sm);
    white-space: nowrap;
}

[data-bb-view="profile"] .bb-tabs button.is-active {
    color: var(--text, #fff) !important;
    font-weight: 600 !important;
    border-bottom: var(--space-1) solid var(--brand);
    /* Green underline */
}

/* Filterbar adaptation */
[data-bb-view="profile"] .bb-filterbar {
    padding: var(--space-2);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: nowrap;
    /* Force one line */
    background: var(--surface);
    border: var(--border-1) solid var(--line);
    border-radius: var(--radius-2);
}

[data-bb-view="profile"] .bb-filterbar__left {
    display: flex;
    flex: 1;
    min-width: 0;
}

[data-bb-view="profile"] .bb-filterbar select {
    width: 100%;
    min-width: 0;
    font-size: var(--fs-sm);
}

[data-bb-view="profile"] .bb-filterbar__right {
    display: flex;
    gap: var(--space-1);
    flex-shrink: 0;
}

/* Ensure cards look good in the tighter 3-col grid */
[data-bb-view="profile"] .bb-card {
    font-size: var(--fs-sm);
}