/*
 * Bileşen: Akordiyon (Accordion/Toggle)
 * Amaç: SSS gibi açılır/kapanır içerik alanları için evrensel stil.
 * GÜNCELLEME: Arka plan ikonu ve başlık boşluğu eklendi.
 */

/* Arka plan ikonu için sarmalayıcıyı hazırlama */
.bfwt-faq-widget .bfwt-content-block-inner {
    position: relative;
    overflow: hidden;
}

/* Arka plan ikonunu ekleme */
.bfwt-faq-widget .bfwt-content-block-inner::before {
    content: 'question_mark'; /* İkonun adı */
    font-family: 'Material Symbols Rounded';
    font-weight: 300;
    position: absolute;
    top: -10px;
    right: -25px;
    z-index: 1;
    font-size: 180px; /* İkonun boyutu */
    line-height: 1;
    opacity: 0.08; /* İkonun şeffaflığı */
    color: var(--color-text-subtle);
    transform: rotate(-15deg); /* İkonun açısı */
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
}

/* Başlık ve içerik arasına daha fazla boşluk ekleme */
.bfwt-faq-widget .bfwt-section-header {
    margin-bottom: 30px; /* Boşluk artırıldı */
    position: relative;
    z-index: 2; /* İkonun üzerinde kalmasını sağlar */
}

.bfwt-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2; /* İkonun üzerinde kalmasını sağlar */
}

.bfwt-accordion-item {
    background-color: var(--color-background-soft);
    border-radius: var(--border-radius-base);
    border: 1px solid var(--color-border-light);
    transition: background-color 0.2s ease;
}

.bfwt-accordion-item.active {
    background-color: var(--color-background);
}

.bfwt-accordion-title {
    margin: 0;
    font-size: var(--font-size-md);
}

.bfwt-accordion-title button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    color: var(--color-text-base);
    font-size: inherit;
    font-family: inherit;
}

.bfwt-accordion-title button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--border-radius-base);
}

.bfwt-accordion-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 15px;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.bfwt-accordion-icon::before,
.bfwt-accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-text-muted);
    transition: all 0.3s ease-in-out;
}

/* Artı (+) ikonu oluşturma */
.bfwt-accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}
.bfwt-accordion-icon::after {
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    margin-left: -1px;
}

/* Aktif olduğunda ikonu eksiye (-) çevirme */
.bfwt-accordion-item.active .bfwt-accordion-icon {
    transform: rotate(180deg);
}

.bfwt-accordion-item.active .bfwt-accordion-icon::after {
    transform: rotate(90deg);
}

.bfwt-accordion-content {
    padding: 0 20px 20px 20px;
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    overflow: hidden;
}

.bfwt-accordion-content p:first-child { margin-top: 0; }
.bfwt-accordion-content p:last-child { margin-bottom: 0; }