/* Website Page Builder — admin modal */

.website-builder-modal .iyzi-modal-content
{
    max-width: 96vw;
    width: 96vw;
    height: 92vh;
    min-height: 600px;
}

.website-builder-wrap
{
    display: flex;
    flex-direction: column;
    height: calc(92vh - 80px);
    min-height: 520px;
    overflow: hidden;
}

.website-builder-header
{
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.website-builder-tabs
{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.website-builder-tabs > div
{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.website-builder-tabs .tab-nav-wrapper
{
    flex-shrink: 0;
}

.website-builder-tabs .tab-content
{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.website-builder-tabs .tab-pane
{
    min-height: 0 !important;
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding-top: 10px !important;
}

.website-builder-tabs .tab-pane.active
{
    display: flex;
}

/* Sayfa yapisi — 3 sutun: bileşenler | agac | ayarlar */
.website-builder-grid-yapi
{
    display: grid;
    grid-template-columns: 200px 1fr 420px;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.website-builder-panel
{
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--bg-light, #f8fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 10px;
}

.website-builder-panel-title
{
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #7f8c8d);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.website-builder-palet
{
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.website-builder-palet-section
{
    margin-bottom: 10px;
}

.website-builder-palet-title
{
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #95a5a6);
    margin-bottom: 6px;
}

.website-builder-palet-item
{
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 8px;
    margin-bottom: 4px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.website-builder-palet-item:hover
{
    border-color: var(--primary, #1780c1);
    background: rgba(23, 128, 193, 0.06);
}

.website-builder-palet-item i
{
    font-size: 16px;
    color: var(--primary, #1780c1);
}

.website-builder-tree
{
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.website-builder-tree-empty
{
    font-size: 13px;
    padding: 8px 4px;
}

.website-builder-tree-list
{
    list-style: none;
    margin: 0;
    padding: 0;
}

.website-builder-tree-list .website-builder-tree-list
{
    margin-left: 14px;
    padding-left: 8px;
    border-left: 2px solid var(--border-color, #e5e7eb);
}

.website-builder-tree-item
{
    margin-bottom: 4px;
}

.website-builder-tree-item.is-selected > .website-builder-tree-item-head
{
    background: rgba(23, 128, 193, 0.12);
    border-color: var(--primary, #1780c1);
}

.website-builder-tree-item-head
{
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
}

.website-builder-tree-drag
{
    cursor: grab;
    color: var(--text-muted, #95a5a6);
    padding: 2px 4px;
    flex-shrink: 0;
}

.website-builder-tree-select
{
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 12px;
    padding: 2px 4px;
    cursor: pointer;
    min-width: 0;
}

.website-builder-tree-select span
{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-builder-tree-delete
{
    flex-shrink: 0;
    padding: 2px 6px;
}

/* Onizleme tab — tam genislik */
.website-builder-preview-tab
{
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.website-builder-preview-wrap
{
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
}

.website-builder-preview-wrap-full
{
    flex: 1;
    min-height: 0;
    height: 100%;
}

.website-builder-preview-iframe
{
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

.website-builder-settings
{
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.website-builder-settings .form-label
{
    font-size: 12px;
    font-weight: 600;
}

/* Ayar paneli mini tab — Ayarlar / Gorseller */
.wb-ayar-tabs
{
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wb-ayar-tab-nav
{
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    flex-shrink: 0;
}

.wb-ayar-tab-btn
{
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted, #7f8c8d);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}

.wb-ayar-tab-btn:hover
{
    color: var(--primary, #1780c1);
}

.wb-ayar-tab-btn.is-active
{
    color: var(--primary, #1780c1);
    border-bottom-color: var(--primary, #1780c1);
}

.wb-ayar-tab-btn .ph
{
    font-size: 14px;
}

.wb-ayar-tab-pane
{
    display: none;
}

.wb-ayar-tab-pane.is-active
{
    display: block;
}

.wb-ayar-kaydet-wrap
{
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: var(--bg-light, #f8fafb);
    border-top: 1px solid var(--border-color, #e5e7eb);
    margin-top: 8px;
    z-index: 2;
}

.wb-ayar-upload-wrap
{
    min-height: 120px;
}

.wb-ayar-upload-title
{
    font-size: 12px;
    font-weight: 600;
}

/* Renk picker */
.wb-color-field
{
    display: flex;
    align-items: center;
    gap: 8px;
}

.wb-color-swatch
{
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.wb-color-field .wb-color-text
{
    flex: 1;
    min-width: 0;
}

/* Gelişmiş ayarlar — details */
.wb-ayar-advanced
{
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: #fff;
    margin-top: 8px;
}

.wb-ayar-advanced-summary
{
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #7f8c8d);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.wb-ayar-advanced-summary::-webkit-details-marker
{
    display: none;
}

.wb-ayar-advanced-body
{
    padding: 0 12px 12px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.wb-textarea-resize
{
    resize: vertical;
    min-height: 72px;
}

/* Onizleme iframe ic */
.website-pb-preview-node
{
    position: relative;
    cursor: pointer;
}

.website-pb-preview-hover
{
    outline: 2px dashed rgba(23, 128, 193, 0.7);
    outline-offset: 2px;
}

.website-pb-preview-selected
{
    outline: 2px solid var(--website-primary, #1780c1);
    outline-offset: 2px;
}

.website-pb-hero1
{
    position: relative;
}

.website-pb-component.website-pb-hero1
{
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.website-pb-hero.website-pb-hero1
{
    width: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.website-pb-hero.website-pb-hero1::before
{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.website-pb-hero.website-pb-hero1 .container
{
    position: relative;
    z-index: 1;
    width: 100%;
}

.website-pb-hero1 .container
{
    position: relative;
    z-index: 1;
}

.website-pb-carousel
{
    display: block;
    width: 100%;
}

.website-pb-carousel .website-pb-swiper
{
    overflow: hidden !important;
    border-radius: 8px;
}

.website-pb-carousel .swiper-wrapper
{
    align-items: stretch !important;
}

.website-pb-carousel .website-pb-carousel-slide,
.website-pb-carousel .swiper-slide
{
    overflow: hidden !important;
    flex-shrink: 0;
    height: var(--wpb-carousel-h, 250px) !important;
}

.website-pb-carousel-img
{
    width: 100% !important;
    height: var(--wpb-carousel-h, 250px) !important;
    display: block !important;
    object-fit: var(--wpb-carousel-fit, cover) !important;
    object-position: center center !important;
    max-width: 100%;
    flex-shrink: 0;
}

.website-pb-carousel-fit-kes .website-pb-carousel-img
{
    object-fit: cover !important;
}

.website-pb-carousel-fit-sigdir .website-pb-carousel-img
{
    object-fit: contain !important;
    background: #f5f5f5;
}

/* CKEditor — ayarlar paneli */
.website-builder-panel-settings .ck-editor__editable
{
    max-height: 280px;
    overflow-y: auto;
}

.website-builder-panel-settings .ck.ck-editor
{
    width: 100%;
}

@media (max-width: 991px)
{
    .website-builder-grid-yapi
    {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        overflow-y: auto;
    }

    .website-builder-panel-palet,
    .website-builder-panel-tree
    {
        max-height: 180px;
    }

    .website-builder-wrap
    {
        height: auto;
        min-height: 70vh;
    }
}

.wb-ayar-grup
{
    margin-top: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: #fafbfc;
}

.wb-ayar-grup-baslik
{
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark, #2c3e50);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.wb-ayar-grup-body
{
    padding: 4px 12px 10px;
}

.wb-galeri-ayar[data-carousel="0"] .wb-galeri-carousel-fields
{
    display: none;
}

.wb-galeri-ayar[data-carousel="1"] .wb-galeri-grid-fields
{
    display: none;
}

.wb-tablo-toolbar
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.wb-tablo-scroll
{
    width: 100%;
    overflow-x: auto;
    margin-top: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: #fff;
}

.wb-tablo-grid
{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.wb-tablo-grid th,
.wb-tablo-grid td
{
    padding: 4px;
    vertical-align: middle;
    background: #fff;
}

.wb-tablo-kose,
.wb-tablo-row-act
{
    width: 36px;
    text-align: center;
}

.wb-tablo-hucre
{
    min-width: 108px;
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
}

.wb-tablo-editor[data-baslik-satir="1"] tbody tr:first-child .wb-tablo-hucre
{
    font-weight: 600;
    background: #f7f8fa;
}

.wb-tablo-ikon-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    background: #fff;
    color: #c0392b;
    cursor: pointer;
    line-height: 1;
}

.wb-tablo-ikon-btn:hover
{
    background: #fdecec;
}
