/* ==========================================================================
   BİLEŞEN: KREATİF VE BANNER YÖNETİMİ (BANNER & CREATIVE SYSTEM)
   ========================================================================== */

/* 1. 2-Satırlı (2-Row) Banner Tablosu */
.banner-row-main td {
  padding: 18px 18px 8px;
  vertical-align: middle;
  border-bottom: none;
  background-color: var(--bg-card);
}

.banner-row-sub td {
  padding: 8px 18px 18px;
  vertical-align: middle;
  border-bottom: 2px solid var(--border-main);
  background-color: var(--bg-card);
}

.banner-row-main:hover td,
.banner-row-sub:hover td {
  background-color: var(--bg-card-subtle);
}

/* 2. Thumbnail Önizleme Kutuları */
.table-banner-thumb-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-banner-previews {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.table-thumb-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-app);
  border: 1px solid var(--border-main);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 3px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.table-thumb-frame:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.table-thumb-frame img {
  display: block;
  max-width: 100%;
  height: 44px;
  object-fit: contain;
  border-radius: 2px;
}

.table-thumb-frame.is-desktop {
  width: 140px;
  height: 50px;
}

.table-thumb-frame.is-mobile {
  width: 78px;
  height: 50px;
}

.table-thumb-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 2px 4px;
  border-radius: 2px;
}

/* 3. Durum Rozetleri */
.banner-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.banner-status-badge.is-active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.banner-status-badge.is-active .status-dot {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.banner-status-badge.is-paused {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.banner-status-badge.is-pending {
  background: rgba(2, 132, 199, 0.12);
  color: var(--color-brand);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.banner-status-badge.is-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 4. Buton Grubu */
.banner-action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.banner-action-btn-group .btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius);
}

/* 5. Alt İstatistik Şeridi */
.banner-metrics-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  padding: 8px 14px;
  background: var(--bg-app);
  border: 1px solid var(--border-main);
  border-radius: var(--radius);
}

.banner-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.banner-metric-item strong {
  color: var(--text-main);
  font-family: var(--font-mono, monospace);
  font-size: 13.5px;
}

/* 6. Form Tıkla-Yükle Kreatif Alanı */
.banner-upload-zone {
  position: relative;
  margin-top: 8px;
}

.banner-file-input {
  display: none;
}

.banner-preview-box {
  border: 2px dashed var(--border-main);
  border-radius: var(--radius);
  background: var(--bg-app);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  min-height: 56px;
}

.banner-preview-box.is-dragover,
.banner-preview-box:hover {
  border-color: var(--color-brand);
  background: var(--bg-card-subtle);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.banner-preview-placeholder {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  width: 100%;
  height: 100%;
  padding: 4px 6px;
}

.banner-preview-placeholder .ph-icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  flex-shrink: 0;
}

.banner-preview-placeholder .ph-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

.banner-preview-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.banner-dimension-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--user-adv-bg);
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  border-radius: 12px;
}
