/*
 * Bileşen: İçerik Bloğu Sarmalayıcısı
 * Amaç: Dinamik Kartlar gibi Gutenberg blokları için başlık ve container stilleri.
 * Bu, deal stillerinden bağımsızdır.
 */

.bfwt-content-block-outer:not(.bf-gradient-border) {
    background: var(--color-background-soft);
}

.bfwt-content-block-outer {
    border-radius: var(--border-radius-base);
    padding: 2px;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow-base);
}

.bfwt-content-block-inner {
    border-radius: 10px;
    padding: clamp(15px, 3vw, 25px);
    background-color: var(--color-background);
    min-width: 0;
}

/* --- Başlık Stilleri --- */
.bfwt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, var(--color-text-base), var(--color-primary), var(--color-secondary), var(--color-background));
}

.bfwt-content-block-inner .bfwt-section-header .bfwt-section-header__title {
    margin-block-end: 0 !important;
}

.bfwt-section-header__content {
    flex-grow: 1;
}

.bfwt-section-header__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--color-text-base);
}

.bfwt-section-header__subtitle {
    font-size: var(--font-size-base);
    font-style: italic;
    color: var(--color-text-muted);
    margin: 0;
}

.bfwt-section-header__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.bfwt-section-header__link:hover {
    color: var(--color-text-base);
}

.bfwt-section-header__link .material-symbols-rounded {
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.bfwt-section-header__link:hover .material-symbols-rounded {
    transform: translateX(3px);
}

/* --- Kategori Sayfası Başlığı İyileştirmeleri --- */
.bfwt-category-header .bfwt-content-block-inner {
    position: relative;
    overflow: hidden;
}

.bfwt-category-header .bfwt-category-header-inner::before {
    content: attr(data-icon);
    font-family: 'Material Symbols Rounded';
    font-weight: 300;
    position: absolute;
    top: -20px;
    right: -15px;
    z-index: 1;
    font-size: 180px;
    line-height: 1;
    opacity: 0.08;
    color: var(--color-text-subtle);
    transform: rotate(-15deg);
    pointer-events: none;
}

.bfwt-category-header .bfwt-category-header-inner {
    position: relative;
    z-index: 2;
}

.bfwt-category-header .bfwt-section-header {
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.bfwt-category-header .bfwt-section-header__content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.bfwt-category-header__icon {
    flex-shrink: 0;
}

.bfwt-category-header__icon .material-symbols-rounded {
    font-size: 1.5em;
    color: var(--color-primary);
    background-color: var(--color-background-soft);
    padding: 10px;
    border-radius: 50%;
    display: block;
}

.bfwt-category-header__text {
    flex-grow: 1;
}

.bfwt-category-header__text .bfwt-section-header__title {
    font-size: var(--font-size-xl);
    margin-top: 0;
}

.bfwt-category-header__text .bfwt-section-header__subtitle {
    max-width: 800px;
    margin-top: 15px;
    font-size: var(--font-size-base);
}