/**
 * Tenbit Dynamic FAQ Section Widget Styles
 * Author: Team Tenbit (https://tenbitsol.com)
 * Version: 1.0.0
 * Theme: Obsidian Alpine Tactical / Hunters Element Design System
 */

.tenbit-faq-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
}

.tenbit-faq-wrapper *,
.tenbit-faq-wrapper *::before,
.tenbit-faq-wrapper *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   LAYOUTS: 2-COLUMN SPLIT VS CENTERED SINGLE COLUMN
   ========================================================================== */
.tenbit-faq-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 56px;
    align-items: start;
    width: 100%;
}

@media (max-width: 991px) {
    .tenbit-faq-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Centered Layout */
.tenbit-faq-centered-layout {
    max-width: 920px;
    margin: 0 auto;
}

.tenbit-faq-centered-layout .tenbit-faq-header {
    text-align: center;
    align-items: center;
    margin-bottom: 36px;
}

.tenbit-faq-centered-layout .tenbit-faq-filters {
    justify-content: center;
}

/* ==========================================================================
   LEFT COLUMN: BRAND, HEADLINE, DESCRIPTION, CTA CARD
   ========================================================================== */
.tenbit-faq-left-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.tenbit-faq-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: #ff5500;
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 85, 0, 0.25);
}

.tenbit-faq-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.tenbit-faq-title .title-accent {
    color: #ff5500;
}

.tenbit-faq-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

/* Left Column Help / Support CTA Card */
.tenbit-faq-cta-card {
    background: #121518;
    border: 1px solid #232830;
    border-radius: 8px;
    padding: 26px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.tenbit-faq-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #ff5500;
}

.tenbit-cta-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ff5500;
}

.tenbit-cta-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.tenbit-cta-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #939185;
    margin: 0;
}

.tenbit-cta-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff5500;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.28);
}

.tenbit-cta-btn:hover {
    background: #ff7733;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 85, 0, 0.4);
    color: #ffffff;
}

.tenbit-cta-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.tenbit-cta-btn:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   DYNAMIC SEARCH & FILTER BAR
   ========================================================================== */
.tenbit-faq-tools {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Instant Search Input */
.tenbit-faq-search-wrap {
    position: relative;
    width: 100%;
}

.tenbit-faq-search-input {
    width: 100%;
    background: #0d0f0e;
    border: 1px solid #232830;
    border-radius: 6px;
    padding: 13px 44px 13px 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.tenbit-faq-search-input::placeholder {
    color: #64748b;
    font-size: 13.5px;
}

.tenbit-faq-search-input:focus {
    border-color: #ff5500;
    background: #111413;
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.18);
}

.tenbit-faq-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff5500;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.tenbit-faq-search-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Category Filter Tabs */
.tenbit-faq-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tenbit-faq-filter-btn {
    background: #141816;
    border: 1px solid #232830;
    color: #cbd5e1;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tenbit-faq-filter-btn:hover {
    background: #1b211e;
    border-color: #3b424f;
    color: #ffffff;
}

.tenbit-faq-filter-btn.active {
    background: #ff5500;
    border-color: #ff5500;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 85, 0, 0.3);
}

.tenbit-faq-filter-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    opacity: 0.75;
    background: rgba(0, 0, 0, 0.25);
    padding: 1px 6px;
    border-radius: 10px;
}

/* ==========================================================================
   FAQ ACCORDION ITEMS LIST
   ========================================================================== */
.tenbit-faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Individual Accordion Item */
.tenbit-faq-item {
    background: #121518;
    border: 1px solid #232830;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.tenbit-faq-item:hover {
    border-color: #353c48;
}

.tenbit-faq-item.is-open {
    border-color: #ff5500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Accordion Header / Trigger */
.tenbit-faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 22px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.tenbit-faq-question-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.tenbit-faq-item-index {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #ff5500;
    opacity: 0.85;
    min-width: 24px;
}

.tenbit-faq-question-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.3;
    color: #ffffff;
    transition: color 0.2s ease;
}

.tenbit-faq-item.is-open .tenbit-faq-question-text {
    color: #ff5500;
}

.tenbit-faq-category-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #1b211e;
    border: 1px solid #2a333c;
    color: #8e95a2;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Toggle Icon */
.tenbit-faq-icon-box {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 4px;
    background: #181d1a;
    border: 1px solid #262c35;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.tenbit-faq-item.is-open .tenbit-faq-icon-box {
    background: #ff5500;
    border-color: #ff5500;
    color: #ffffff;
    transform: rotate(180deg);
}

.tenbit-faq-icon-box svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Accordion Content Panel */
.tenbit-faq-panel {
    display: none;
    padding: 0 22px 20px 60px;
    font-size: 14.5px;
    line-height: 1.68;
    color: #cbd5e1;
}

@media (max-width: 580px) {
    .tenbit-faq-panel {
        padding-left: 22px;
    }
}

.tenbit-faq-panel a {
    color: #ff5500;
    text-decoration: underline;
}

.tenbit-faq-panel p:first-child {
    margin-top: 0;
}

.tenbit-faq-panel p:last-child {
    margin-bottom: 0;
}

/* Empty Search Results Message */
.tenbit-faq-empty-state {
    display: none;
    background: #121518;
    border: 1px dashed #2a333c;
    border-radius: 6px;
    padding: 36px 20px;
    text-align: center;
    color: #8e95a2;
    font-size: 14px;
}

.tenbit-faq-empty-state strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

/* ==========================================================================
   LIGHT MODE OVERRIDE (theme-light)
   ========================================================================== */
.tenbit-faq-wrapper.theme-light {
    color: #0f172a;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-title {
    color: #0f172a;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-desc {
    color: #475569;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-cta-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.tenbit-faq-wrapper.theme-light .tenbit-cta-title {
    color: #0f172a;
}

.tenbit-faq-wrapper.theme-light .tenbit-cta-text {
    color: #64748b;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-search-input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-filter-btn {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-filter-btn.active {
    background: #ff5500;
    border-color: #ff5500;
    color: #ffffff;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-item {
    background: #ffffff;
    border-color: #e2e8f0;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-question-text {
    color: #0f172a;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-category-tag {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-icon-box {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

.tenbit-faq-wrapper.theme-light .tenbit-faq-panel {
    color: #334155;
}
