/* ═══════════════════════════════════════════════════════════
   Farada — FAQ Page Styles
   Prefix: ffq-
   ═══════════════════════════════════════════════════════════ */


/* ═══ 1. HERO ═══ */

.ffq-hero {
    padding-bottom: 32px !important;
}


/* ═══ 2. VISUAL SECTION ═══ */

.ffq-visual-section {
    padding: 40px 0 48px;
    background: var(--bg);
    overflow: hidden;
}

.ffq-visual-head {
    text-align: center;
    margin-bottom: 36px;
}

.ffq-visual-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--heading);
    letter-spacing: -0.02em;
    margin-top: 14px;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .ffq-visual-title {
        font-size: 26px;
    }
}

/* Hexagon Grid Layout */
.ffq-visual-wrapper {
    max-width: 700px;
    margin: 0 auto 40px;
}

.ffq-hexagon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 10px;
}

.ffq-hex-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    min-width: 110px;
    flex: 0 0 auto;
    transition: transform 400ms cubic-bezier(0.34, 1.4, 0.64, 1),
        border-color 300ms ease,
        box-shadow 300ms ease;
}

.ffq-hex-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.ffq-hex-item.ffq-hex-active {
    border-color: var(--hex-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.ffq-hex-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    flex-shrink: 0;
}

.ffq-hex-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--heading);
    text-align: center;
    letter-spacing: -0.01em;
}

.ffq-hex-count {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 640px) {
    .ffq-hexagon-grid {
        gap: 10px;
    }

    .ffq-hex-item {
        min-width: 90px;
        padding: 16px 12px;
    }

    .ffq-hex-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .ffq-hex-label {
        font-size: 11px;
    }
}


/* ═══ 3. SEARCH (زیر دایره) ═══ */

.ffq-search-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.ffq-search {
    position: relative;
    width: 100%;
}

.ffq-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
    pointer-events: none;
}

.ffq-search-input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--heading);
    outline: none;
    transition: border-color 300ms ease, box-shadow 300ms ease;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(99, 102, 241, .04);
}

.ffq-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1);
}

.ffq-search-input::placeholder {
    color: var(--muted);
}

.ffq-search-clear {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--bg);
    border: none;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 250ms ease, color 250ms ease;
}

.ffq-search-clear:hover {
    background: #ef4444;
    color: #fff;
}


/* ═══ 4. CONTENT SECTION ═══ */

.ffq-content-section {
    padding: 48px 0 80px;
    background: var(--surface);
}


/* ═══ 5. TABS ═══ */

.ffq-tabs-wrap {
    margin-bottom: 24px;
    overflow: hidden;
}

.ffq-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
}

.ffq-tabs::-webkit-scrollbar {
    display: none;
}

.ffq-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    color: var(--body);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 300ms ease, color 300ms ease;
    font-family: inherit;
}

.ffq-tab i {
    font-size: 11px;
}

.ffq-tab:hover {
    border-color: rgba(99, 102, 241, .3);
    color: #6366f1;
}

.ffq-tab-active {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .3);
}

.ffq-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    background: rgba(99, 102, 241, .1);
    color: #6366f1;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.ffq-tab-active .ffq-tab-count {
    background: rgba(255, 255, 255, .2) !important;
    color: #fff !important;
}


/* ═══ 6. ACTIVE INFO BAR ═══ */

.ffq-active-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .06), rgba(168, 85, 247, .04));
    border: 1px solid rgba(99, 102, 241, .15);
    border-radius: 12px;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.ffq-active-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ffq-active-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.ffq-active-left strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--heading);
    display: block;
    margin-bottom: 2px;
}

.ffq-active-left span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.ffq-active-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 300ms ease, color 300ms ease;
}

.ffq-active-clear:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.ffq-active-clear i {
    font-size: 10px;
}


/* ═══ 7. FAQ ITEMS ═══ */

.ffq-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

/* Category Header */
.ffq-cat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    margin-top: 24px;
}

.ffq-cat-header:first-child {
    margin-top: 0;
}

.ffq-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .1);
}

.ffq-cat-info h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.ffq-cat-info p {
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}

/* Question Item */
.ffq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 300ms ease;
}

.ffq-item.open {
    border-color: rgba(99, 102, 241, .3);
}

.ffq-item-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
    transition: background 250ms ease;
    line-height: 1.6;
}

.ffq-item-q:hover {
    background: var(--bg);
}

.ffq-item-icon {
    width: 28px;
    height: 28px;
    background: rgba(99, 102, 241, .08);
    color: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: transform 400ms cubic-bezier(0.34, 1.4, 0.64, 1), background 300ms ease;
}

.ffq-item.open .ffq-item-icon {
    transform: rotate(45deg);
    background: #6366f1;
    color: #fff;
}

.ffq-item-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ffq-item.open .ffq-item-a {
    max-height: 500px;
}

.ffq-item-a-inner {
    padding: 0 20px 18px 20px;
    font-size: 13.5px;
    line-height: 2;
    color: var(--body);
}

/* Search highlight */
.ffq-highlight {
    background: rgba(99, 102, 241, .15);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
}


/* ═══ 8. NO RESULTS ═══ */

.ffq-no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 400px;
    margin: 0 auto;
}

.ffq-no-icon {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: rgba(99, 102, 241, .08);
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.ffq-no-results :is(h2, h3) {
    font-size: 20px;
    font-weight: 800;
    color: var(--heading);
    margin-bottom: 8px;
}

.ffq-no-results p {
    font-size: 13.5px;
    color: var(--body);
    line-height: 1.8;
    margin-bottom: 20px;
}

.ffq-no-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.ffq-no-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, .35);
}

.ffq-no-btn i {
    font-size: 11px;
}