/**
 * BadPress CoinGem temasıyla uyumluluk için özelleştirilmiş CSS
 * 
 * Bu CSS dosyası, Coin-Table-eski-1 eklentisini BadPress CoinGem temasıyla 
 * uyumlu çalışacak şekilde düzenler.
 */

/* Ana konteyner - tema renkleriyle uyumlu hale getirme */
.crypto-coin-table-wrap {
  background-color: transparent !important;
  box-shadow: none !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 20px 0 !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

/* Tüm tablo arka planını opak yapma */
.crypto-coin-table-wrap,
.crypto-coin-table-wrap .table-responsive {
  background-color: #121a33 !important;
}

/* Tablo stilleri */
.crypto-coin-table-wrap table {
  background-color: #121a33 !important;
  box-shadow: none !important;
  border-color: var(--astra-border-color, #272e48) !important;
  color: var(--astra-text-color, #fff) !important;
  width: 100% !important;
  border-collapse: collapse !important;
}

/* Tüm hücreleri opak yapma */
.crypto-coin-table-wrap th, 
.crypto-coin-table-wrap td {
  background-color: #121a33 !important;
  position: relative !important;
  z-index: 5 !important;
  border-width: 0 !important;
}

/* Başlık hücreleri */
.crypto-coin-table-wrap thead th {
  background-color: #0d1226 !important;
  color: #8b93a7 !important;
  font-weight: 600 !important;
  z-index: 10 !important;
}

/* Alternatif satır stilleri */
.crypto-coin-table-wrap tr:nth-child(2n) td {
  background-color: #131c38 !important;
}

/* 24H Change ve Actions sütunları */
.crypto-coin-table-wrap th:nth-child(8),
.crypto-coin-table-wrap td:nth-child(8),
.crypto-coin-table-wrap th.actions-column,
.crypto-coin-table-wrap td.actions-column,
.crypto-coin-table-wrap th:last-child,
.crypto-coin-table-wrap td:last-child {
  background-color: #131c38 !important;
  position: relative !important;
  z-index: 5 !important;
}

/* Tüm kenar çizgilerini sıfırla */
.crypto-coin-table-wrap tr,
.crypto-coin-table-wrap th, 
.crypto-coin-table-wrap td {
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  background-color: transparent !important;
}

/* Satır seviyesinde alt çizgi uygula */
.crypto-coin-table-wrap tr {
  border-bottom: 1px solid #272e48 !important;
}

.crypto-coin-table-wrap th {
  background-color: #161c35 !important; /* Tema card-bg-color değişkeni */
  color: #8b93a7 !important; /* Tema secondary-text-color değişkeni */
  padding: 12px !important;
}

/* Hover stilleri */
.crypto-coin-table-wrap tr:hover {
  background-color: #1e274a !important; /* Tema hover-bg değişkeni */
}

/* Satır içi yapışkan sütunlar */
.crypto-coin-table-wrap .sticky-column {
  background-color: #0d1226 !important;
  position: sticky !important;
  left: 0 !important;
  z-index: 100 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

/* Yapışkan başlık hücresi */
.crypto-coin-table-wrap th.sticky-column {
  background-color: #0a0f1e !important;
  z-index: 101 !important;
}

/* Hover satırları için stil */
.crypto-coin-table-wrap tr:hover td {
  background-color: #1a2542 !important;
}

/* Buton stilleri tema butonlarına uygun hale getirme */
.crypto-coin-table-wrap .btn-primary,
.crypto-coin-table-wrap .vote-button {
  background: linear-gradient(to right, #2c5ef4, #5433ed) !important; /* Tema gradient değişkenleri */
  border: none !important;
  color: #fff !important;
  transition: all 0.3s !important;
}

.crypto-coin-table-wrap .btn-primary:hover,
.crypto-coin-table-wrap .vote-button:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

/* Favoriler ve grafik butonları */
.crypto-coin-table-wrap .favorite-toggle {
  color: #ffc107 !important;
  margin-right: 10px !important;
}

.crypto-coin-table-wrap .chart-toggle {
  color: #2c5ef4 !important; /* Tema primary-color değişkeni */
}

/* Filtre bölümü */
.crypto-coin-table-wrap .filter-container {
  background-color: #161c35 !important; /* Tema card-bg-color değişkeni */
  border-radius: 8px !important;
  border: 1px solid #272e48 !important; /* Tema border-color değişkeni */
}

/* Form elemanları */
.crypto-coin-table-wrap .form-control,
.crypto-coin-table-wrap .custom-select {
  background-color: #1e274a !important; /* Tema hover-bg değişkeni */
  color: #fff !important;
  border-color: #272e48 !important; /* Tema border-color değişkeni */
}

.crypto-coin-table-wrap .form-control:focus,
.crypto-coin-table-wrap .custom-select:focus {
  background-color: #272e48 !important;
  box-shadow: 0 0 0 0.2rem rgba(44, 94, 244, 0.25) !important; /* Tema primary-color ile uyumlu */
}

/* Oy butonları */
.crypto-coin-table-wrap .vote-button {
  padding: 6px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.crypto-coin-table-wrap .vote-button.voted {
  background-color: #0ecb81 !important; /* Tema success-color değişkeni */
  border-color: #0ecb81 !important; /* Tema success-color değişkeni */
}

/* Artış/azalış değerleri için renk düzeltmeleri */
.crypto-coin-table-wrap .text-success {
  color: #0ecb81 !important; /* Tema success-color değişkeni */
}

.crypto-coin-table-wrap .text-danger {
  color: #f6465d !important; /* Tema danger-color değişkeni */
}

/* Coin sembolü renk düzeltmeleri */
.crypto-coin-table-wrap .coin-symbol {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  letter-spacing: 0.8px !important;
  position: relative !important;
  display: block !important;
  transition: all 0.3s ease !important;
  margin-bottom: 2px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  background: linear-gradient(135deg, #1a56db, #1e40af) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.crypto-coin-table-wrap .coin-info-container:hover .coin-symbol {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4) !important;
  background: linear-gradient(135deg, #1e40af, #1a56db) !important;
}

.crypto-coin-table-wrap .coin-info-container:hover .coin-name {
  color: #a0aec0 !important;
}

/* Pagination stilleri */
.crypto-coin-table-wrap .pagination .page-link {
  background-color: #1e274a !important; /* Tema hover-bg değişkeni */
  color: #2c5ef4 !important; /* Tema primary-color değişkeni */
  border-color: #272e48 !important; /* Tema border-color değişkeni */
}

.crypto-coin-table-wrap .pagination .page-item.active .page-link {
  background: linear-gradient(to right, #2c5ef4, #5433ed) !important; /* Tema gradient değişkenleri */
  border-color: #2c5ef4 !important; /* Tema primary-color değişkeni */
  color: #fff !important;
}

/* Tablo başlıkları ve hücrelerinde tutarlı stil */
.crypto-coin-table-wrap .table-bordered th,
.crypto-coin-table-wrap .table-bordered td {
  border-width: 1px !important;
  border-color: #272e48 !important; /* Tema border-color değişkeni */
  box-shadow: none !important;
}

/* Grafik konteyner stilleri */
.crypto-coin-table-wrap .chart-container {
  background-color: #161c35 !important; /* Tema card-bg-color değişkeni */
  border-radius: 8px !important;
  padding: 15px !important;
  margin: 15px 0 !important;
}

/* Mobil görünüm için düzeltmeler */
@media (max-width: 768px) {
  .crypto-coin-table-wrap .filter-container {
    padding: 10px !important;
  }
  
  .crypto-coin-table-wrap th, 
  .crypto-coin-table-wrap td {
    padding: 10px 8px !important;
  }
  
  .crypto-coin-table-wrap .coin-symbol {
    font-size: 14px !important;
    padding: 2px 4px !important;
  }
  
  .crypto-coin-table-wrap .coin-name {
    font-size: 12px !important;
  }
  
  .crypto-coin-table-wrap .coin-info-text {
    padding: 3px 6px !important;
  }
}

@media (max-width: 576px) {
  .crypto-coin-table-wrap .coin-logo {
    width: 32px;
    height: 32px;
  }
  
  .crypto-coin-table-wrap .coin-symbol {
    font-size: 12px !important;
    padding: 1px 3px !important;
  }
  
  .crypto-coin-table-wrap .coin-name {
    font-size: 11px !important;
  }
  
  .crypto-coin-table-wrap .coin-info-text {
    padding: 2px 4px !important;
  }
}

/* Toggle search butonu düzeltmeleri */
.crypto-coin-table-wrap .toggle-search-btn {
  background: linear-gradient(to right, #2c5ef4, #5433ed) !important; /* Tema gradient değişkenleri */
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
}

.crypto-coin-table-wrap .toggle-search-btn:hover {
  opacity: 0.9 !important;
  transform: translateY(-1px) !important;
}

/* Coin simgesi ve isim düzenleme */
.crypto-coin-table-wrap .coin-name {
  color: #8b93a7 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 2px !important;
  position: relative !important;
  padding-left: 2px !important;
  display: block !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

/* Placeholder renk düzeltmeleri */
.crypto-coin-table-wrap input::placeholder {
  color: #8b93a7 !important; /* Tema secondary-text-color değişkeni */
  opacity: 0.7 !important;
}

/* Yeni eklenen sınıflar için stiller */
.crypto-coin-table-wrap .coin-info-container {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, rgba(13, 18, 38, 0.7), rgba(29, 41, 74, 0.7)) !important;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2), 
              -5px -5px 10px rgba(255, 255, 255, 0.02) !important;
  transition: all 0.3s ease !important;
  margin: 5px 0 !important;
}

.crypto-coin-table-wrap .coin-info-container:hover {
  transform: translateY(-2px) !important;
  box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.3), 
              -5px -5px 10px rgba(255, 255, 255, 0.05) !important;
}

.crypto-coin-table-wrap .rank-number {
  min-width: 28px !important;
  min-height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  font-weight: bold !important;
  background: linear-gradient(145deg, rgba(29, 41, 74, 0.8), rgba(13, 18, 38, 0.8)) !important;
  color: #8b93a7 !important;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.25), 
              -3px -3px 6px rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s ease !important;
}

/* Logo görünümü iyileştirme */
.crypto-coin-table-wrap .coin-logo {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    margin: 0 auto;
    display: block;
    object-fit: contain !important;
    background-color: transparent;
    border: none;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: none;
    aspect-ratio: 1/1 !important;
}

.crypto-coin-table-wrap .coin-logo:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4), 
                -3px -3px 8px rgba(255, 255, 255, 0.07),
                inset 2px 2px 6px rgba(0, 0, 0, 0.4), 
                inset -2px -2px 6px rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .crypto-coin-table-wrap .coin-logo {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 992px) {
    .crypto-coin-table-wrap .coin-logo {
        width: 60px;
        height: 60px;
    }
}

.crypto-coin-table-wrap .coin-info-text {
  display: flex !important;
  flex-direction: column !important;
  padding-left: 3px !important;
  min-width: 0;
  position: relative;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  margin-left: 5px;
}

/* Favoriler renk ve stil düzeltmeleri */
.crypto-coin-table-wrap .is-favorite {
  background-color: rgba(44, 94, 244, 0.08) !important;
}

.crypto-coin-table-wrap .is-favorite:hover {
  background-color: rgba(44, 94, 244, 0.15) !important;
}

/* 24 saat değişim renkleri */
.crypto-coin-table-wrap [style*="color: #00C853"] {
  color: #0ecb81 !important; /* Tema success-color değişkeni */
}

.crypto-coin-table-wrap [style*="color: #FF3D00"] {
  color: #f6465d !important; /* Tema danger-color değişkeni */
}

/* Badge stilleri */
.crypto-coin-table-wrap .badge.bg-info {
  background-color: #2c5ef4 !important; /* Tema primary-color değişkeni */
  color: #fff !important;
} 