@charset "UTF-8";

/* GENEL TEMA */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f8f9fa;
  color: #2d3748;
  margin: 0;
  padding: 20px;
}

/* FİLTRE ALANI İYİLEŞTİRMELERİ */
.aff-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  align-items: center; /* Dikey ortala */
}

.aff-select {
  flex: 1;
  min-width: 200px;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: #4a5568;
  appearance: none;
  transition: all 0.3s ease;
  height: auto; /* Yüksekliği yazıya uyumlu */
  line-height: 1.5;
  display: flex;
  align-items: center; /* İçerik dikey ortala */
}

/* TABLO ALANI İYİLEŞTİRMELERİ */
.tarife-basamak {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px; /* Hücre arası çizgi efekti için */
  padding: 0;
}

.tarife-basamak > div {
  padding: 15px 20px;
  text-align: center; /* Yatay ortala */
  display: flex;
  align-items: center; /* Dikey ortala */
  justify-content: center;
  min-height: 50px;
}

/* Zebra efekti ve renkler */
.tarife-basamak:nth-child(odd) > div {
  background: #fff;
}

.tarife-basamak:nth-child(even) > div {
  background: #f8fafc;
}

/* Başlık stilleri */
.basamak-header {
  grid-column: span 2;
  background: #4299e1 !important;
  color: white !important;
  font-weight: 600;
  padding: 12px 20px !important;
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
  .aff-filters {
    gap: 10px;
  }
  
  .aff-select {
    flex: 1 1 100%;
    justify-content: center; /* Mobilde metni ortala */
  }

  .tarife-basamak > div {
    padding: 12px 15px;
    flex-direction: column; /* Mobilde içerik düzeni */
  }
}

/* YÜKLEME VE MESAJ ALANI */
.aff-loading {
  display: none;
  padding: 20px;
  text-align: center;
}

.aff-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(66,153,225,0.2);
  border-top-color: #4299e1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}