:host {
  display: block;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.tespitler-wrapper {
  padding: 0;
}

/* ===== ISTATISTIK KARTLARI ===== */
.stat-kart {
  border-radius: 12px;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  cursor: default;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.stat-kart:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.stat-kart--mavi { border-top: 3px solid #1677ff; }
.stat-kart--yesil { border-top: 3px solid #52c41a; }
.stat-kart--turuncu { border-top: 3px solid #fa8c16; }
.stat-kart--mor { border-top: 3px solid #722ed1; }

.stat-ikon {
  font-size: 20px;
  margin-right: 8px;
}
.stat-ikon--mavi { color: #1677ff; }
.stat-ikon--yesil { color: #52c41a; }
.stat-ikon--turuncu { color: #fa8c16; }
.stat-ikon--mor { color: #722ed1; }

/* ===== PERFORMANS GRAFIGI ===== */
.performans-kart {
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}
.kart-baslik-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kart-baslik {
  font-weight: 600;
  font-size: 14px;
  color: #262626;
}
.performans-grafik {
  display: flex;
  align-items: flex-end;
  height: 80px;
  gap: 3px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.performans-cubuk-alani {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  cursor: pointer;
}
.performans-cubuk {
  width: 100%;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  transition: opacity 0.2s;
}
.performans-cubuk-alani:hover .performans-cubuk {
  opacity: 0.75;
}
.performans-eksen {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
}

/* ===== FILTRE KARTI ===== */
.filtre-kart {
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}
.filtre-satir {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.filtre-sol {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filtre-sag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filtre-baslik {
  font-weight: 600;
  color: #595959;
  white-space: nowrap;
}

/* ===== TABLO GORUNUMU ===== */
.tablo-kart {
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.tablo-satir {
  cursor: pointer;
  transition: background 0.15s;
}
.tablo-satir:hover td {
  background: #fafafa !important;
}
.tablo-satir.acik td {
  background: #e6f4ff !important;
}

/* Thumbnail */
.thumbnail-sarici {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f5f5f5;
}
.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}
.thumbnail-sarici:hover .thumbnail {
  transform: scale(1.08);
}
.thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}
.thumbnail-sarici:hover .thumbnail-overlay {
  background: rgba(0,0,0,0.45);
  opacity: 1;
}
.thumbnail-yuz-sayaci {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #1677ff;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  line-height: 16px;
}
.thumbnail-bos {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 22px;
}

/* Eşleşme etiketleri */
.eslesme-etiketleri {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.eslesme-etiketi {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.guven-yuzde {
  font-size: 10px;
  opacity: 0.75;
  margin-left: 3px;
}
.yuz-yok {
  color: #bbb;
  font-size: 12px;
  font-style: italic;
}

/* Süre */
.sure-alani {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sure-deger {
  font-weight: 600;
  font-size: 13px;
}
.sure-bar {
  height: 3px;
  border-radius: 2px;
  max-width: 80px;
  transition: width 0.3s;
}

/* Boyut ve tarih */
.boyut-metin {
  font-size: 12px;
  color: #595959;
  font-family: monospace;
}
.tarih-metin {
  font-size: 12px;
  color: #8c8c8c;
}

/* ===== DETAY SATIRI ===== */
.detay-satiri td {
  padding: 0 !important;
}
.detay-icerik {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f9f9ff 100%);
  border-top: 2px solid #1677ff22;
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detay-bolum-baslik {
  font-weight: 700;
  font-size: 13px;
  color: #262626;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e8;
}

.detay-yuz-karti {
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #e8e8e8;
}
.detay-yuz-karti.eslesen {
  border-color: #b7eb8f;
}
.detay-yuz-baslik {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.guven-satir {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.guven-etiket {
  font-size: 11px;
  color: #8c8c8c;
  white-space: nowrap;
  min-width: 110px;
}

.eslesme-satir-detay {
  display: flex;
  align-items: center;
  margin: 4px 0;
}
.eslesme-ad-detay {
  font-size: 12px;
  min-width: 90px;
  color: #262626;
}
.eslesme-bar-alani {
  flex: 1;
  display: flex;
  align-items: center;
}
.mesafe-rakam {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Teknik bilgiler */
.teknik-bilgi-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.teknik-satir {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.teknik-etiket {
  font-size: 12px;
  color: #8c8c8c;
  min-width: 110px;
  flex-shrink: 0;
}
.teknik-deger {
  font-size: 12px;
  color: #262626;
  font-weight: 500;
}
.teknik-id {
  font-family: monospace;
  font-size: 11px;
  word-break: break-all;
  color: #595959;
}

/* ===== GALERİ GORUNUMU ===== */
.galeri-wrapper {
  padding: 0;
}
.galeri-karti {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  background: white;
}
.galeri-karti:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}
.galeri-resim-alani {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #f5f5f5;
}
.galeri-resim {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.galeri-karti:hover .galeri-resim {
  transform: scale(1.05);
}
.galeri-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}
.galeri-karti:hover .galeri-overlay {
  background: rgba(0,0,0,0.5);
  opacity: 1;
}
.galeri-resim-bos {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.galeri-yuz-rozet {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(22,119,255,0.9);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.galeri-bilgi {
  padding: 10px 12px;
}
.galeri-eslesme-satiri {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 24px;
}
.galeri-alt-bilgi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.galeri-tarih {
  font-size: 12px;
  color: #8c8c8c;
}
.galeri-sure {
  font-size: 12px;
  font-weight: 600;
}
.galeri-sayfalama {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
}
.sayfa-bilgi {
  font-size: 13px;
  color: #595959;
}


/* Galeri crop seridi */
.galeri-crop-seridi {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: flex;
  gap: 3px;
  align-items: center;
}
.galeri-crop-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d9d9d9;
  backdrop-filter: blur(2px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.galeri-crop-mini-ic {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
}
.galeri-crop-fazla {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.galeri-ratio-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.15);
}
.galeri-ratio-dolgu {
  height: 100%;
  border-radius: 0 2px 0 0;
  transition: width 0.3s;
}


/* Galeri yuz-esleme satirlari */
.galeri-yuz-esleme-satiri {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.galeri-yuz-crop-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d9d9d9;
  flex-shrink: 0;
}
.galeri-yuz-crop-mini-ic {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
}
.galeri-esleme-ok {
  font-size: 11px;
  color: #bbb;
  flex-shrink: 0;
}
.galeri-esleme-tag {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 18px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.galeri-esleme-guven {
  font-size: 10px;
  margin-left: 3px;
  font-weight: 600;
}
.galeri-daha-fazla {
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 2px;
}
.galeri-yuz-yok {
  font-size: 11px;
  color: #bbb;
  font-style: italic;
  padding: 4px 0;
}

/* Tablo esleme hucre karsilastirma */
.tablo-esleme-satiri {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.tablo-yuz-crop-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d9d9d9;
  flex-shrink: 0;
}
.tablo-yuz-crop-mini-ic {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
}
.tablo-esleme-ok {
  font-size: 10px;
  color: #bbb;
  flex-shrink: 0;
}
.tablo-guven-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 0 4px;
  border-radius: 3px;
  line-height: 16px;
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .filtre-satir {
    flex-direction: column;
    align-items: flex-start;
  }
  .filtre-sag {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===== GUVEN SLIDER ===== */
.guven-slider-alani {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guven-slider-deger {
  font-size: 12px;
  font-weight: 500;
  color: #8c8c8c;
  min-width: 40px;
  text-align: center;
}
.guven-slider-deger.aktif {
  color: #1677ff;
  font-weight: 700;
}

/* ===== DONEN IKON ===== */
.donen {
  animation: dondur 1s linear infinite;
}
@keyframes dondur {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
