/* ═══════════════════════════════════════════════════════════════
   YBS-Entegrasyon – Public CSS
   ═══════════════════════════════════════════════════════════════ */

/* ── Dosya / Görsel Input ── */
.ybs-file-input {
  display:       block;
  width:         100%;
  padding:       8px 12px;
  border:        1px dashed var(--ybs-border, #e2e8f0);
  border-radius: var(--ybs-radius, 8px);
  background:    var(--ybs-light, #f5f7fa);
  color:         var(--ybs-text, #2d3748);
  font-size:     .875rem;
  cursor:        pointer;
  transition:    border-color .2s ease, background .2s ease;
}
.ybs-file-input:hover,
.ybs-file-input:focus {
  border-color:  var(--ybs-primary, #00b4c8);
  background:    #fff;
  outline:       none;
}
.ybs-file-hint {
  display:     block;
  margin-top:  4px;
  font-size:   .78rem;
  color:       #718096;
  line-height: 1.4;
}

/* ── CSS Değişkenleri ── */
:root {
  --ybs-primary:      #00b4c8;   /* Turkuaz */
  --ybs-secondary:    #ff6600;   /* Turuncu */
  --ybs-dark:         #1a1a2e;
  --ybs-light:        #f5f7fa;
  --ybs-white:        #ffffff;
  --ybs-border:       #e2e8f0;
  --ybs-radius:       8px;
  --ybs-radius-lg:    12px;
  --ybs-shadow:       0 2px 12px rgba(0,0,0,.08);
  --ybs-shadow-hover: 0 6px 24px rgba(0,0,0,.14);
  --ybs-transition:   all .25s ease;
  --ybs-font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Temalar ── */
.ybs-theme-dark {
  --ybs-bg:    #1a1a2e;
  --ybs-text:  #e2e8f0;
  --ybs-card-bg: #16213e;
  --ybs-border: #2d3748;
}
.ybs-theme-light,
.ybs-theme-default {
  --ybs-bg:    var(--ybs-light);
  --ybs-text:  #2d3748;
  --ybs-card-bg: var(--ybs-white);
  --ybs-border: #e2e8f0;
}
.ybs-theme-ybs {
  --ybs-bg:      #0d1b2a;
  --ybs-text:    #ffffff;
  --ybs-card-bg: #16213e;
  --ybs-border:  #00b4c8;
}

/* ═══ Butonlar ═══════════════════════════════════════════════════ */
.ybs-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  padding:         10px 22px;
  border-radius:   var(--ybs-radius);
  font-size:       .9rem;
  font-weight:     600;
  cursor:          pointer;
  text-decoration: none;
  border:          2px solid transparent;
  transition:      var(--ybs-transition);
}
.ybs-btn-primary  { background:var(--ybs-primary); color:#fff; border-color:var(--ybs-primary); }
.ybs-btn-primary:hover { background:var(--ybs-primary-dark,#14a5a9); color:#fff; border-color:var(--ybs-primary-dark,#14a5a9); }
.ybs-btn-outline  { background:transparent; color:var(--ybs-primary); border-color:var(--ybs-primary); }
.ybs-btn-outline:hover { background:var(--ybs-primary); color:#fff; }
.ybs-btn-sm       { padding:6px 14px; font-size:.8rem; }

/* ═══ Veri Grid/Card/List ════════════════════════════════════════ */
.ybs-data-wrapper {
  font-family: var(--ybs-font);
  color: var(--ybs-text, #2d3748);
}

/* Card */
.ybs-view-card,
.ybs-view-grid,
.ybs-view-slider .swiper-wrapper {
  display: grid;
  gap: 24px;
}
.ybs-view-card.ybs-cols-1  { grid-template-columns: 1fr; }
.ybs-view-card.ybs-cols-2  { grid-template-columns: repeat(2, 1fr); }
.ybs-view-card.ybs-cols-3  { grid-template-columns: repeat(3, 1fr); }
.ybs-view-card.ybs-cols-4  { grid-template-columns: repeat(4, 1fr); }
.ybs-view-card.ybs-cols-5  { grid-template-columns: repeat(5, 1fr); }
.ybs-view-card.ybs-cols-6  { grid-template-columns: repeat(6, 1fr); }
.ybs-view-grid.ybs-cols-1  { grid-template-columns: 1fr; }
.ybs-view-grid.ybs-cols-2  { grid-template-columns: repeat(2, 1fr); }
.ybs-view-grid.ybs-cols-3  { grid-template-columns: repeat(3, 1fr); }
.ybs-view-grid.ybs-cols-4  { grid-template-columns: repeat(4, 1fr); }
.ybs-view-grid.ybs-cols-5  { grid-template-columns: repeat(5, 1fr); }
.ybs-view-grid.ybs-cols-6  { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
  .ybs-view-card,
  .ybs-view-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .ybs-view-card,
  .ybs-view-grid { grid-template-columns: 1fr !important; }
}

/* Card Item */
.ybs-card-item {
  background:    var(--ybs-card-bg, #fff);
  border:        1px solid var(--ybs-border, #e2e8f0);
  border-radius: var(--ybs-radius-lg);
  overflow:      hidden;
  box-shadow:    var(--ybs-shadow);
  transition:    var(--ybs-transition);
  display:       flex;
  flex-direction: column;
}
.ybs-card-item:hover {
  box-shadow:    var(--ybs-shadow-hover);
  transform:     translateY(-3px);
}
.ybs-card-image img {
  width:      100%;
  height:     200px;
  object-fit: cover;
  display:    block;
}
.ybs-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ybs-card-title { font-size: 1rem; font-weight: 700; margin: 0; }
.ybs-card-title a { text-decoration: none; color: inherit; }
.ybs-card-title a:hover { color: var(--ybs-primary); }
.ybs-card-desc { font-size: .88rem; margin: 0; opacity: .8; flex: 1; }
.ybs-card-body .ybs-btn { margin-top: auto; align-self: flex-start; }

/* Grid Item */
.ybs-grid-item {
  background:    var(--ybs-card-bg, #fff);
  border:        1px solid var(--ybs-border, #e2e8f0);
  border-radius: var(--ybs-radius);
  padding:       16px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  aspect-ratio:  3/2;
  transition:    var(--ybs-transition);
  box-shadow:    var(--ybs-shadow);
}
.ybs-grid-item:hover { box-shadow:var(--ybs-shadow-hover); transform:scale(1.03); }
.ybs-grid-item img   { max-width:100%; max-height:100%; object-fit:contain; }
.ybs-grid-label      { font-size:.85rem; font-weight:600; text-align:center; }

/* List */
.ybs-list { display: flex; flex-direction: column; gap: 12px; }
.ybs-list-item {
  display:       flex;
  align-items:   center;
  gap:           16px;
  background:    var(--ybs-card-bg, #fff);
  border:        1px solid var(--ybs-border, #e2e8f0);
  border-radius: var(--ybs-radius);
  padding:       14px 16px;
  box-shadow:    var(--ybs-shadow);
  transition:    var(--ybs-transition);
}
.ybs-list-item:hover { box-shadow:var(--ybs-shadow-hover); }
.ybs-list-thumb img  { width:60px; height:60px; object-fit:cover; border-radius:6px; }
.ybs-list-content    { flex:1; }
.ybs-list-title      { font-weight:700; }
.ybs-list-title a    { text-decoration:none; color:inherit; }
.ybs-list-title a:hover { color:var(--ybs-primary); }
.ybs-list-desc       { font-size:.85rem; opacity:.75; margin-top:4px; }
.ybs-list-action     { flex-shrink:0; }

/* ═══ Slider ════════════════════════════════════════════════════ */
.ybs-slider { width:100%; overflow:hidden; }
.ybs-view-slider .swiper-button-next,
.ybs-view-slider .swiper-button-prev { color:var(--ybs-primary); }
.ybs-view-slider .swiper-pagination-bullet-active { background:var(--ybs-primary); }

/* ═══ Form ══════════════════════════════════════════════════════ */
.ybs-form-wrapper {
  background:    var(--ybs-card-bg, #fff);
  border:        1px solid var(--ybs-border, #e2e8f0);
  border-radius: var(--ybs-radius-lg);
  padding:       32px;
  box-shadow:    var(--ybs-shadow);
  font-family:   var(--ybs-font);
  max-width:     860px;
}
.ybs-form-title { font-size:1.4rem; font-weight:700; margin:0 0 6px; color:var(--ybs-text,#2d3748); }
.ybs-form-description { opacity:.7; margin:0 0 24px; }

.ybs-fields-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ybs-field-width-full  { grid-column: span 2; }
.ybs-field-width-half  { grid-column: span 1; }
@media (max-width:600px) {
  .ybs-fields-grid { grid-template-columns: 1fr; }
  .ybs-field-width-full,
  .ybs-field-width-half { grid-column: span 1; }
}

.ybs-field-wrap { display:flex; flex-direction:column; gap:5px; }
.ybs-label      { font-size:.88rem; font-weight:600; color:var(--ybs-text,#2d3748); }
.ybs-required   { color:#e53e3e; }
.ybs-field-desc { font-size:.78rem; opacity:.65; }

.ybs-input,
.ybs-select,
.ybs-textarea {
  width:         100%;
  padding:       10px 14px;
  border:        1.5px solid var(--ybs-border, #e2e8f0);
  border-radius: var(--ybs-radius);
  font-size:     .9rem;
  font-family:   var(--ybs-font);
  background:    var(--ybs-white, #fff);
  color:         var(--ybs-text, #2d3748);
  transition:    border-color .2s, box-shadow .2s;
  box-sizing:    border-box;
}
.ybs-input:focus,
.ybs-select:focus,
.ybs-textarea:focus {
  outline:      none;
  border-color: var(--ybs-primary);
  box-shadow:   0 0 0 3px rgba(0,180,200,.15);
}
.ybs-textarea { resize:vertical; min-height:100px; }

.ybs-checkbox-label,
.ybs-radio-label { font-size:.88rem; display:flex; align-items:center; gap:8px; cursor:pointer; }
.ybs-radio-group  { display:flex; flex-wrap:wrap; gap:12px; }

.ybs-form-footer { margin-top:20px; }

/* Mesajlar */
.ybs-form-messages { margin-top:14px; min-height:20px; font-size:.9rem; }
.ybs-form-messages.success { color:#276749; background:#f0fff4; border:1px solid #9ae6b4; padding:10px 14px; border-radius:6px; }
.ybs-form-messages.error   { color:#742a2a; background:#fff5f5; border:1px solid #fc8181; padding:10px 14px; border-radius:6px; }
.ybs-form-messages.loading { color:#2b6cb0; }

/* Form submit düğmesi yükleniyor durumu */
.ybs-form .ybs-btn[disabled] { opacity:.6; cursor:not-allowed; }

/* ═══ Modal ═════════════════════════════════════════════════════ */
.ybs-modal-overlay {
  display:    none;
  position:   fixed;
  inset:      0;
  background: rgba(0,0,0,.55);
  z-index:    9998;
  backdrop-filter: blur(2px);
}
.ybs-modal-overlay.active { display:block; }

.ybs-form-wrapper[role="dialog"] {
  display:    none;
  position:   fixed;
  top:        50%;
  left:       50%;
  transform:  translate(-50%, -50%);
  z-index:    9999;
  max-width:  860px;
  width:      92vw;
  max-height: 88vh;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .ybs-form-wrapper[role="dialog"] {
    width:      96vw;
    max-height: 92vh;
    top:        50%;
  }
}
@media (max-width: 480px) {
  .ybs-form-wrapper[role="dialog"] {
    width:      100vw;
    max-height: 95vh;
    top:        50%;
    border-radius: 12px 12px 0 0;
    transform:  translateX(-50%) translateY(-50%);
  }
}
.ybs-form-wrapper[role="dialog"].active { display:block; }

.ybs-modal-close {
  position:     absolute;
  top:          12px;
  right:        14px;
  background:   transparent;
  border:       none;
  font-size:    1.4rem;
  cursor:       pointer;
  color:        #718096;
  line-height:  1;
}
.ybs-modal-close:hover { color:#e53e3e; }

/* ═══ Bölüm Başlığı ══════════════════════════════════════════════ */
.ybs-section-header { text-align:center; margin-bottom:28px; }
.ybs-section-title  { font-size:1.8rem; font-weight:800; color:var(--ybs-dark,#1a1a2e); margin:0 0 8px; }
.ybs-section-subtitle { color:#718096; margin:0; }

/* ═══ Filtre Bar ═════════════════════════════════════════════════
   Yüksek özgüllük: tema override'larını kırmak için .ybs-filter-bar prefix'i
   ══════════════════════════════════════════════════════════════ */
.ybs-filter-bar {
  display:       flex !important;
  flex-wrap:     wrap !important;
  align-items:   center !important;
  gap:           8px !important;
  margin-bottom: 20px !important;
  padding:       0 !important;
  background:    transparent !important;
  border:        none !important;
  box-shadow:    none !important;
}

/* Arama */
.ybs-filter-bar .ybs-filter-search-wrap {
  position:  relative;
  flex:      0 0 auto;
  min-width: 160px;
}
.ybs-filter-bar .ybs-filter-search-icon {
  position:       absolute;
  left:           10px;
  top:            50%;
  transform:      translateY(-50%);
  color:          #a0aec0;
  display:        flex;
  align-items:    center;
  pointer-events: none;
  z-index:        1;
}
.ybs-filter-bar .ybs-filter-search {
  display:       block !important;
  width:         160px !important;
  padding:       7px 12px 7px 32px !important;
  border:        1.5px solid #e2e8f0 !important;
  border-radius: 999px !important;
  font-size:     .85rem !important;
  font-family:   var(--ybs-font, sans-serif) !important;
  background:    #fff !important;
  color:         #2d3748 !important;
  transition:    border-color .2s, box-shadow .2s !important;
  box-sizing:    border-box !important;
  box-shadow:    none !important;
  outline:       none !important;
  margin:        0 !important;
  height:        auto !important;
}
.ybs-filter-bar .ybs-filter-search:focus {
  border-color: var(--ybs-primary, #00b4c8) !important;
  box-shadow:   0 0 0 3px rgba(0,180,200,.12) !important;
}

/* Dropdown pill */
.ybs-filter-bar .ybs-filter-select-wrap {
  position: relative;
  flex:     0 0 auto;
}
.ybs-filter-bar .ybs-filter-select {
  display:        block !important;
  appearance:     none !important;
  -webkit-appearance: none !important;
  padding:        7px 30px 7px 14px !important;
  border:         1.5px solid #e2e8f0 !important;
  border-radius:  999px !important;
  font-size:      .85rem !important;
  font-weight:    500 !important;
  font-family:    var(--ybs-font, sans-serif) !important;
  background:     #fff !important;
  color:          #2d3748 !important;
  cursor:         pointer !important;
  transition:     border-color .2s, background .2s, color .2s !important;
  white-space:    nowrap !important;
  height:         auto !important;
  margin:         0 !important;
  box-shadow:     none !important;
  outline:        none !important;
  line-height:    1.4 !important;
}
.ybs-filter-bar .ybs-filter-select:focus {
  border-color: var(--ybs-primary, #00b4c8) !important;
  box-shadow:   0 0 0 3px rgba(0,180,200,.12) !important;
}
.ybs-filter-bar .ybs-filter-select.is-active {
  background:   var(--ybs-primary, #00b4c8) !important;
  color:        #fff !important;
  border-color: var(--ybs-primary, #00b4c8) !important;
}
.ybs-filter-bar .ybs-filter-chevron {
  position:       absolute;
  right:          10px;
  top:            50%;
  transform:      translateY(-50%);
  pointer-events: none;
  color:          #a0aec0;
  display:        flex;
  align-items:    center;
  transition:     color .2s;
}
.ybs-filter-bar .ybs-filter-select.is-active + .ybs-filter-chevron { color: #fff; }

/* Reset */
.ybs-filter-bar .ybs-filter-reset {
  display:       inline-flex !important;
  align-items:   center !important;
  gap:           4px !important;
  padding:       6px 14px !important;
  border:        1.5px solid #fc8181 !important;
  border-radius: 999px !important;
  background:    transparent !important;
  color:         #e53e3e !important;
  font-size:     .82rem !important;
  font-weight:   600 !important;
  cursor:        pointer !important;
  white-space:   nowrap !important;
  transition:    background .2s !important;
  line-height:   1.4 !important;
  height:        auto !important;
  margin:        0 !important;
  box-shadow:    none !important;
  text-shadow:   none !important;
}
.ybs-filter-bar .ybs-filter-reset:hover { background: #fff5f5 !important; }

/* Sonuç sayacı */
.ybs-filter-bar .ybs-filter-count {
  margin-left: auto !important;
  font-size:   .80rem !important;
  color:       #a0aec0 !important;
  white-space: nowrap !important;
}

/* Filtre sonuç yok */
.ybs-no-filter-result {
  text-align:  center;
  padding:     40px 20px;
  color:       #718096;
  font-size:   .95rem;
  grid-column: 1 / -1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ybs-filter-bar { gap: 6px !important; }
  .ybs-filter-bar .ybs-filter-search { width: 140px !important; }
}
@media (max-width: 480px) {
  .ybs-filter-bar { gap: 6px !important; }
  .ybs-filter-bar .ybs-filter-search-wrap { flex: 1 1 100% !important; }
  .ybs-filter-bar .ybs-filter-search { width: 100% !important; }
  .ybs-filter-bar .ybs-filter-select-wrap { flex: 1 1 calc(50% - 6px) !important; }
  .ybs-filter-bar .ybs-filter-select { width: 100% !important; }
  .ybs-filter-bar .ybs-filter-count { margin-left: 0 !important; width: 100%; text-align: right; }
}

/* ═══ Hata/Bilgi Kutuları ════════════════════════════════════════ */
.ybs-error-notice {
  background:#fff5f5; border:1px solid #fc8181; border-radius:6px;
  padding:12px 16px; color:#742a2a; font-size:.9rem;
}
.ybs-no-data { text-align:center; padding:32px; opacity:.6; }

/* Honeypot gizle */
.ybs-hp { display:none !important; }

/* ═══ Referans Kartı ════════════════════════════════════════════ */
.ybs-ref-card {
  text-align: center;
  padding: 0;
}
.ybs-ref-logo {
  height:          120px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         20px;
  background:      #f8fafc;
  border-bottom:   1px solid var(--ybs-border, #e2e8f0);
}
.ybs-ref-logo img {
  max-height: 80px;
  max-width:  140px;
  object-fit: contain;
  width:      auto;
  height:     auto;
}
.ybs-ref-logo-fallback {
  width:           60px;
  height:          60px;
  border-radius:   50%;
  background:      linear-gradient(135deg, var(--ybs-primary), #0f172a);
  color:           #fff;
  font-size:       1.3rem;
  font-weight:     800;
  display:         flex;
  align-items:     center;
  justify-content: center;
  text-transform:  uppercase;
}
.ybs-ref-name {
  font-size:   .88rem !important;
  font-weight: 700 !important;
  line-height: 1.35;
  margin:      0 0 8px !important;
}
.ybs-ref-meta {
  display:     flex;
  flex-wrap:   wrap;
  gap:         5px;
  justify-content: center;
  margin-bottom: 8px;
}
.ybs-ref-tag {
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
  font-size:     .72rem;
  font-weight:   600;
  padding:       3px 8px;
  border-radius: 20px;
}
.ybs-ref-sektor { background: #ebf8ff; color: #2b6cb0; }
.ybs-ref-il     { background: #f0fff4; color: #276749; }
.ybs-ref-hizmet {
  font-size:    .75rem;
  color:        #718096;
  margin:       0 0 6px;
  display:      -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:     hidden;
}
.ybs-ref-no {
  font-size:   .68rem;
  color:       #a0aec0;
  font-family: monospace;
}

/* ═══ CAPTCHA ════════════════════════════════════════════════════ */
.ybs-captcha-wrap {
  margin: 12px 0;
}
.ybs-captcha-v3-notice {
  display:     flex;
  align-items: center;
  gap:         5px;
  font-size:   .72rem;
  color:       #a0aec0;
  margin:      10px 0 6px;
}
.ybs-captcha-v3-notice svg { flex-shrink: 0; color: #68d391; }
.ybs-captcha-v3-notice a   { color: #a0aec0; }

/* Beyaz buton (hero section için) */
.ybs-btn-white {
  background:   #fff !important;
  color:        #00b4c8 !important;
  border:       2px solid #fff !important;
  font-size:    1rem !important;
  padding:      12px 32px !important;
  border-radius: 999px !important;
  font-weight:  700 !important;
  transition:   all .2s !important;
  box-shadow:   0 4px 20px rgba(0,0,0,.12) !important;
}
.ybs-btn-white:hover {
  background:   rgba(255,255,255,.15) !important;
  color:        #fff !important;
  border-color: #fff !important;
}

/* ═══ Form Rating Widget ════════════════════════════════════════ */
.ybs-rating-group {
  display:     flex;
  flex-wrap:   wrap;
  gap:         8px;
  margin-top:  6px;
}
.ybs-rating-pill {
  cursor:   pointer;
  position: relative;
}
.ybs-rating-pill input[type="radio"] {
  position: absolute;
  opacity:  0;
  width:    0;
  height:   0;
}
.ybs-rating-pill span {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           42px;
  height:          42px;
  border-radius:   50%;
  border:          2px solid var(--ybs-border, #e2e8f0);
  font-size:       1rem;
  font-weight:     700;
  color:           #718096;
  transition:      all .2s ease;
  background:      #fff;
}
.ybs-rating-pill:hover span {
  border-color: var(--ybs-primary, #00b4c8);
  color:        var(--ybs-primary, #00b4c8);
  background:   rgba(0,180,200,.06);
}
.ybs-rating-pill input:checked + span {
  background:   var(--ybs-primary, #00b4c8);
  border-color: var(--ybs-primary, #00b4c8);
  color:        #fff;
  box-shadow:   0 3px 10px rgba(0,180,200,.35);
}

/* Form bölüm başlığı */
.ybs-form-section-header {
  padding:       18px 0 8px;
  border-bottom: 2px solid var(--ybs-primary, #00b4c8);
  margin-bottom: 4px;
}
.ybs-form-section-title {
  font-size:   1.05rem;
  font-weight: 700;
  color:       var(--ybs-dark, #1a1a2e);
  margin:      0 0 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ybs-form-section-sub {
  font-size: .82rem;
  color:     #718096;
  margin:    0;
}
.ybs-section-wrap {
  padding-top: 8px;
}

/* Form 2-kolon grid */
.ybs-fields-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px 20px;
}
.ybs-field-width-full  { grid-column: 1 / -1; }
.ybs-field-width-half  { grid-column: span 1; }

@media (max-width: 600px) {
  .ybs-fields-grid { grid-template-columns: 1fr; }
  .ybs-field-width-half { grid-column: 1 / -1; }
}

/* Referans section başlığı */
.ybs-ref-section-header {
  text-align:    center;
  margin-bottom: 32px;
}
.ybs-ref-section-header h2 {
  font-size:   1.8rem;
  font-weight: 800;
  color:       var(--ybs-dark, #1a1a2e);
  margin:      0 0 8px;
}
.ybs-ref-section-header p {
  color:   #718096;
  margin:  0;
}
