/**
 * PV Group Taxonomy — Frontend Styles
 *
 * Uses BuddyBoss theme variables where possible.
 * Dark mode default (#0A0A0A), light mode inherits from BB toggle.
 * Life Domain accent colors defined inline via PHP (not hardcoded here).
 */

/* =========================================================================
   Directory Filters
   ========================================================================= */

.pv-gt-directory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
}

.pv-gt-filter-dropdown {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid var(--bb-content-border-color, #333);
    border-radius: 6px;
    background-color: var(--bb-content-background-color, #1a1a1a);
    color: var(--bb-body-text-color, #ccc);
    cursor: pointer;
    min-width: 140px;
    appearance: auto;
}

.pv-gt-filter-dropdown:focus {
    outline: none;
    border-color: var(--bb-primary-color, #D4A017);
}

.pv-gt-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.pv-gt-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.pv-gt-filter-chip:hover {
    opacity: 0.8;
}

.pv-gt-filter-chip .pv-gt-chip-close {
    font-size: 13px;
    line-height: 1;
    margin-left: 2px;
}


/* =========================================================================
   Group Card Tags (directory listing)
   ========================================================================= */

.pv-gt-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.pv-gt-card-pill {
    display: inline-block;
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.pv-gt-card-category {
    /* Colors set inline via PHP — background, color, border */
}

.pv-gt-card-tag {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--bb-body-text-color-muted, #888);
    border: 1px solid var(--bb-content-border-color, #333);
}


/* =========================================================================
   Frontend Group Creation / Settings
   ========================================================================= */

.pv-gt-frontend-section {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--bb-content-border-color, #333);
    border-radius: 8px;
    background-color: var(--bb-content-background-color, #111);
}

.pv-gt-frontend-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--bb-headings-color, #fff);
    margin: 0 0 4px;
}

.pv-gt-frontend-subtext {
    font-size: 13px;
    color: var(--bb-body-text-color-muted, #999);
    margin: 0 0 20px;
}

.pv-gt-frontend-field {
    margin-bottom: 20px;
}

.pv-gt-frontend-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--bb-body-text-color, #ccc);
    margin-bottom: 6px;
}

.pv-gt-hint {
    font-weight: 400;
    color: var(--bb-body-text-color-muted, #666);
}


/* =========================================================================
   Pill Buttons (shared between creation, settings, and tag selection)
   ========================================================================= */

.pv-gt-domain-pills,
.pv-gt-subcategory-pills,
.pv-gt-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-gt-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--bb-content-border-color, #444);
    background: transparent;
    color: var(--bb-body-text-color-muted, #aaa);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    line-height: 1.4;
}

.pv-gt-pill:hover {
    border-color: var(--bb-body-text-color-muted, #888);
    color: var(--bb-body-text-color, #ccc);
}

.pv-gt-pill.pv-gt-pill-active {
    /* Active state colors set inline via JS for domain-specific colors */
    font-weight: 600;
}

.pv-gt-sub-pill {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12.5px;
}

.pv-gt-format-pill.pv-gt-pill-active,
.pv-gt-language-pill.pv-gt-pill-active {
    background-color: rgba(34, 113, 177, 0.13);
    border-color: #2271b1;
    color: #5ba3d9;
}


/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
    .pv-gt-directory-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .pv-gt-filter-dropdown {
        width: 100%;
        min-width: auto;
    }

    .pv-gt-domain-pills,
    .pv-gt-subcategory-pills,
    .pv-gt-tag-pills {
        gap: 6px;
    }

    .pv-gt-pill {
        padding: 5px 10px;
        font-size: 12px;
    }

    .pv-gt-frontend-section {
        padding: 14px;
    }
}
