/* ==========================================================================
   Trendy FAQ Section — Styles
   ========================================================================== */

.tfaq-wrapper {
    --tfaq-accent: #6c5ce7;
    --tfaq-accent-light: #a29bfe;
    --tfaq-bg: #ffffff;
    --tfaq-item-bg: #f8f7ff;
    --tfaq-text: #1e1e2f;
    --tfaq-answer-text: #52526a;
    --tfaq-border: #ece9ff;
    --tfaq-shadow: 0 6px 20px rgba(108, 92, 231, 0.08);

    max-width: 780px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* -------- Theme variants -------- */
.tfaq-theme-dark {
    --tfaq-accent: #7c5cff;
    --tfaq-accent-light: #a78bfa;
    --tfaq-bg: #14141f;
    --tfaq-item-bg: #1c1c2b;
    --tfaq-text: #f4f4f8;
    --tfaq-answer-text: #b7b7c9;
    --tfaq-border: #2c2c40;
    --tfaq-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.tfaq-theme-mint {
    --tfaq-accent: #00b894;
    --tfaq-accent-light: #55efc4;
    --tfaq-bg: #ffffff;
    --tfaq-item-bg: #f1fffb;
    --tfaq-text: #063f34;
    --tfaq-answer-text: #3c6d63;
    --tfaq-border: #d3f8ee;
    --tfaq-shadow: 0 6px 20px rgba(0, 184, 148, 0.1);
}

.tfaq-theme-sunset {
    --tfaq-accent: #ff6b6b;
    --tfaq-accent-light: #ffa36c;
    --tfaq-bg: #ffffff;
    --tfaq-item-bg: #fff6f2;
    --tfaq-text: #3d1f16;
    --tfaq-answer-text: #7a5548;
    --tfaq-border: #ffe4d6;
    --tfaq-shadow: 0 6px 20px rgba(255, 107, 107, 0.1);
}

/* -------- Item card -------- */
.tfaq-item {
    background: var(--tfaq-item-bg);
    border: 1px solid var(--tfaq-border);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.tfaq-item:hover {
    box-shadow: var(--tfaq-shadow);
    border-color: var(--tfaq-accent-light);
}

.tfaq-item.tfaq-active {
    box-shadow: var(--tfaq-shadow);
    border-color: var(--tfaq-accent);
}

/* -------- Question button -------- */
.tfaq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 20px 22px;
    font-size: 17px;
    font-weight: 600;
    color: var(--tfaq-text);
    transition: color 0.2s ease;
}

.tfaq-question:hover .tfaq-q-text {
    color: var(--tfaq-accent);
}

.tfaq-q-text {
    transition: color 0.2s ease;
    line-height: 1.4;
}

/* -------- Plus/Minus icon -------- */
.tfaq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tfaq-accent), var(--tfaq-accent-light));
    color: #fff;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.tfaq-item.tfaq-active .tfaq-icon {
    transform: rotate(135deg);
}

/* -------- Answer panel (smooth collapse/expand) -------- */
.tfaq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tfaq-answer-inner {
    padding: 0 22px 20px 22px;
    color: var(--tfaq-answer-text);
    font-size: 15.5px;
    line-height: 1.7;
}

.tfaq-answer-inner p:first-child {
    margin-top: 0;
}

.tfaq-answer-inner p:last-child {
    margin-bottom: 0;
}

.tfaq-answer-inner code {
    background: rgba(108, 92, 231, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

/* -------- Responsive -------- */
@media (max-width: 600px) {
    .tfaq-question {
        padding: 16px;
        font-size: 15.5px;
    }
    .tfaq-answer-inner {
        padding: 0 16px 16px 16px;
        font-size: 14.5px;
    }
    .tfaq-icon {
        width: 28px;
        height: 28px;
    }
}
