/* ==========================================================================
   ANA SAYFA MIMARI - YONETICI EDITORU (HB)
   ========================================================================== */
#tab-pane-sections { display: flex; flex-direction: column; gap: 16px; }
#hb-editor { display: flex; flex-direction: column; gap: 22px; }
.hb-list { display: flex; flex-direction: column; gap: 10px; }

.hb-card { background: #fff; border: 1.5px solid #e6e1f0; border-radius: 18px; transition: box-shadow .25s, border-color .25s; overflow: hidden; }
.hb-card:hover { box-shadow: 0 8px 22px rgba(70,40,110,.08); }
.hb-card.hb-open { border-color: #8c6bff; box-shadow: 0 10px 28px rgba(140,107,255,.16); }
.hb-card.hb-off { opacity: .55; background: #f7f5fb; }
.hb-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.hb-num { width: 28px; height: 28px; border-radius: 50%; background: #14224f; color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; flex: 0 0 auto; }
.hb-ico { font-size: 1.5rem; flex: 0 0 auto; }
.hb-name-wrap { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 150px; }
.hb-name { border: 0; background: transparent; font-weight: 800; font-size: 1rem; color: #14224f; padding: 2px 4px; border-radius: 6px; width: 100%; }
.hb-name:focus { outline: 2px solid #c9b8ff; background: #faf8ff; }
.hb-type { font-size: .72rem; color: #8a8aa3; padding-left: 4px; }
.hb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hb-btn { border: 1px solid #e0daee; background: #fff; border-radius: 10px; padding: 7px 11px; font-weight: 700; cursor: pointer; font-size: .85rem; transition: all .2s; color: #14224f; }
.hb-btn:hover:not(:disabled) { background: #f3effa; transform: translateY(-1px); }
.hb-btn:disabled { opacity: .35; cursor: not-allowed; }
.hb-btn.hb-del:hover { background: #ffe5e5; }
.hb-btn.hb-edit { background: #14224f; color: #fff; border-color: #14224f; }
.hb-btn.hb-edit:hover { background: #d43326; border-color: #d43326; }
.hb-card-body { border-top: 1px dashed #ddd6ee; padding: 18px; display: flex; flex-direction: column; gap: 16px; background: #fcfbff; }

.hb-field { display: flex; flex-direction: column; gap: 6px; }
.hb-field.hb-inline { flex-direction: row; align-items: center; gap: 12px; }
.hb-label { font-weight: 700; font-size: .82rem; color: #3a4160; }
.hb-check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.hb-help, .hb-note { font-size: .78rem; color: #7a7f99; }
.hb-note { background: #f3effa; border-radius: 10px; padding: 8px 12px; }

.hb-imgrow { display: flex; gap: 12px; align-items: center; }
.hb-thumb { width: 92px; height: 92px; border-radius: 14px; background: #efeaf8; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #e0daee; }
.hb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hb-imgctl { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.hb-imgbtns { display: flex; gap: 8px; flex-wrap: wrap; }

.hb-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.hb-imgcell { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #efeaf8; border: 1px solid #e0daee; }
.hb-imgcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-imgcell-btns { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transition: opacity .2s; }
.hb-imgcell:hover .hb-imgcell-btns { opacity: 1; }
.hb-imgcell-btns button { border: 0; background: rgba(255,255,255,.92); border-radius: 8px; width: 26px; height: 26px; cursor: pointer; font-size: .75rem; }
.hb-imgcell-btns button:disabled { opacity: .3; }
.hb-imgcell-btns button.hb-danger { background: #ffdede; color: #c0261c; }
.hb-imgadd { aspect-ratio: 1; border: 2px dashed #c9b8ff; border-radius: 14px; background: #faf8ff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 1.6rem; color: #8c6bff; font-weight: 800; transition: all .2s; }
.hb-imgadd span { font-size: .7rem; font-weight: 700; }
.hb-imgadd:hover { background: #f0eaff; transform: translateY(-2px); }

.hb-list-items { display: flex; flex-direction: column; gap: 10px; }
.hb-item { border: 1px solid #e6e1f0; border-radius: 14px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.hb-item-head { display: flex; justify-content: space-between; align-items: center; }
.hb-item-head span { display: flex; gap: 6px; }
.hb-small { border: 1px solid #e0daee; background: #fff; border-radius: 9px; padding: 5px 10px; font-weight: 700; font-size: .78rem; cursor: pointer; color: #14224f; transition: all .2s; }
.hb-small:hover:not(:disabled) { background: #f3effa; }
.hb-small:disabled { opacity: .35; cursor: not-allowed; }
.hb-small.hb-danger { color: #c0261c; border-color: #f3c9c6; }
.hb-small.hb-danger:hover { background: #ffe5e5; }
.hb-small.hb-addbtn { align-self: flex-start; background: #14224f; color: #fff; border-color: #14224f; }
.hb-small.hb-addbtn:hover { background: #8c6bff; border-color: #8c6bff; }

.hb-plist, .hb-presults { display: flex; flex-direction: column; gap: 6px; }
.hb-prow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid #ece8f5; border-radius: 12px; background: #fff; }
.hb-prow img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.hb-pname { flex: 1; min-width: 0; font-size: .82rem; font-weight: 600; color: #14224f; display: flex; flex-direction: column; }
.hb-pname small { color: #8a8aa3; font-weight: 600; }
.hb-prow span { display: flex; gap: 4px; }

/* Yeni bolum ekleme */
.hb-add-wrap { border: 2px dashed #c9b8ff; border-radius: 22px; padding: 18px; background: #faf8ff; }
.hb-add-title { font-weight: 900; color: #14224f; margin-bottom: 12px; font-size: 1.05rem; }
.hb-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.hb-type-tile { text-align: left; border: 1.5px solid #e6e1f0; background: #fff; border-radius: 16px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: all .25s cubic-bezier(.16,1,.3,1); }
.hb-type-tile:hover:not(:disabled) { transform: translateY(-3px); border-color: #8c6bff; box-shadow: 0 10px 22px rgba(140,107,255,.18); }
.hb-type-tile:disabled { opacity: .4; cursor: not-allowed; }
.hb-type-ico { font-size: 1.7rem; }
.hb-type-tile b { color: #14224f; font-size: .92rem; }
.hb-type-tile small { color: #7a7f99; font-size: .74rem; line-height: 1.35; }

/* Gorsel secici */
.hb-picker { position: fixed; inset: 0; z-index: 10000; background: rgba(15,10,40,.62); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.hb-picker-box { width: min(920px, 100%); max-height: 88vh; background: #fff; border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.hb-picker-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.hb-picker-tabs { display: flex; gap: 6px; padding: 10px 16px 0; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.hb-picker-tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; color: #7a7f99; }
.hb-picker-tabs button.active { color: #14224f; border-bottom-color: #8c6bff; }
.hb-picker-body { padding: 16px 20px 22px; overflow-y: auto; }
.hb-lib-title { font-weight: 800; font-size: .85rem; color: #3a4160; margin: 14px 0 8px; }
.hb-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.hb-lib-item { aspect-ratio: 1; border: 2px solid transparent; border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; background: #efeaf8; transition: all .2s; }
.hb-lib-item:hover { border-color: #8c6bff; transform: scale(1.04); }
.hb-lib-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-stock-search { margin-bottom: 12px; }
.hb-upload { padding: 30px; text-align: center; border: 2px dashed #c9b8ff; border-radius: 18px; background: #faf8ff; }

@media (max-width: 700px) {
  .hb-imgrow { flex-direction: column; align-items: stretch; }
  .hb-card-head { gap: 8px; }
}

/* Hero secimi */
.hb-hero-pick { border: 2px solid #8c6bff; border-radius: 22px; padding: 18px; background: linear-gradient(135deg, #faf8ff, #fff); }
.hb-hero-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.hb-hero-opt { position: relative; text-align: left; border: 2px solid #e6e1f0; background: #fff; border-radius: 18px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: all .25s cubic-bezier(.16,1,.3,1); }
.hb-hero-opt:hover { transform: translateY(-3px); border-color: #8c6bff; }
.hb-hero-opt.on { border-color: #14224f; background: #f3f0ff; box-shadow: 0 10px 24px rgba(20,34,79,.14); }
.hb-hero-ico { font-size: 1.9rem; }
.hb-hero-opt b { color: #14224f; }
.hb-hero-opt small { color: #7a7f99; font-size: .76rem; }
.hb-hero-opt em { position: absolute; top: 12px; right: 14px; font-style: normal; font-weight: 800; font-size: .72rem; color: #fff; background: #14224f; border-radius: 99px; padding: 3px 9px; }