/* Find Solutions Technologies Block */

.fst__section {
    position: relative;
}

/* Header */
.fst__header {
    text-align: center;
    margin-bottom: 2rem;
}

.fst__header p {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

/* Category tabs */
.fst__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.fst__categories::-webkit-scrollbar {
    height: 4px;
}

.fst__categories::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.fst__category-btn {
    flex-shrink: 0;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.fst__category-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.fst__category-btn--active {
    background: var(--bs-primary, #6366f1);
    border-color: var(--bs-primary, #6366f1);
    color: #fff;
}

.fst__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.fst__category-btn--active .fst__badge {
    background: rgba(255, 255, 255, 0.3);
}

.fst__badge[hidden] {
    display: none;
}

/* Search */
.fst__search {
    position: relative;
    margin-bottom: 1.25rem;
}

.fst__search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.fst__search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.fst__search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.fst__search-input:focus {
    outline: none;
    border-color: var(--bs-primary, #6366f1);
    background: rgba(255, 255, 255, 0.08);
}

/* Content layout */
.fst__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .fst__content {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }

    .fst__chips-col {
        flex: 0 0 40%;
        max-width: 40%;
        padding-right: 1.5rem;
    }

    .fst__detail-col {
        flex: 0 0 60%;
        max-width: 60%;
        position: sticky;
        top: 100px;
    }
}

/* Chips */
.fst__chips-group {
    display: none;
}

.fst__chips-group--active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fst__chip {
    padding: 0.65rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.fst__chip:hover {
    border-color: var(--bs-primary, #6366f1);
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
}

.fst__chip--active {
    background: var(--bs-primary, #6366f1);
    border-color: var(--bs-primary, #6366f1);
    color: #fff;
}

.fst__chip[hidden] {
    display: none;
}

.fst__no-results {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 1rem 0;
    display: none;
}

/* Detail panel */
.fst__detail {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    min-height: 300px;
    transition: opacity 0.25s ease;
}

.fst__detail--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
}

.fst__detail--empty .bx {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.fst__detail-content {
    display: none;
}

.fst__detail-content--active {
    display: block;
}

.fst__detail-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fst__detail-name-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.fst__detail-name-link:hover {
    opacity: 0.75;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fst__detail-summary {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.fst__detail-section {
    margin-bottom: 1.25rem;
}

.fst__detail-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.6rem;
}

.fst__detail-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fst__detail-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.fst__detail-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bs-primary, #6366f1);
}

.fst__detail-paragraph {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
}

/* Use case chips inside detail */
.fst__detail-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.fst__case-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Related tools */
.fst__detail-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fst__tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    border-radius: 0.4rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--bs-primary, #6366f1);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fst__tool-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
    text-decoration: none;
}

/* CTA */
.fst__detail-cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .fst__detail-col {
        position: relative;
    }

    .fst__detail {
        min-height: auto;
    }

    .fst__chips-group--active {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fst__chip {
        width: auto;
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* Light theme overrides */
[data-bs-theme="light"] .fst__category-btn {
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .fst__category-btn:hover {
    border-color: rgba(0, 0, 0, 0.3);
    color: #000;
}

[data-bs-theme="light"] .fst__category-btn--active {
    color: #fff;
}

[data-bs-theme="light"] .fst__badge {
    background: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .fst__search-input {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.03);
    color: #212529;
}

[data-bs-theme="light"] .fst__search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .fst__search-icon {
    color: rgba(0, 0, 0, 0.35);
}

[data-bs-theme="light"] .fst__chip {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.8);
}

[data-bs-theme="light"] .fst__chip:hover {
    color: #000;
}

[data-bs-theme="light"] .fst__chip--active {
    color: #fff;
}

[data-bs-theme="light"] .fst__no-results {
    color: rgba(0, 0, 0, 0.45);
}

[data-bs-theme="light"] .fst__detail {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="light"] .fst__detail--empty {
    color: rgba(0, 0, 0, 0.3);
}

[data-bs-theme="light"] .fst__detail-name {
    color: #212529;
}

[data-bs-theme="light"] .fst__detail-summary {
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="light"] .fst__detail-section h4 {
    color: rgba(0, 0, 0, 0.45);
}

[data-bs-theme="light"] .fst__detail-bullets li {
    color: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="light"] .fst__detail-paragraph {
    color: rgba(0, 0, 0, 0.65);
}

[data-bs-theme="light"] .fst__case-chip {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .fst__detail-cta {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .fst__categories::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}
