/* ============================================
   Table Styles — TopCasinoLibya
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(35,158,70,0.2);
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
}

.comparison-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--color-dark-card);
}

.comparison-table thead tr {
  background: linear-gradient(135deg, #239E46 0%, #1a7a35 100%);
}

.comparison-table th {
  padding: 1rem 1.25rem;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  white-space: nowrap;
  border-bottom: 2px solid rgba(35,158,70,0.3);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: center;
}

.comparison-table tbody tr {
  border-bottom: 1px solid rgba(35,158,70,0.08);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.comparison-table tbody tr:hover {
  background: rgba(35,158,70,0.06) !important;
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(13,20,13,0.6);
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(5,5,5,0.8);
}

.comparison-table td {
  padding: 0.875rem 1.25rem;
  vertical-align: middle;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  text-align: right;
}

/* === RANK CELL === */
.rank-cell {
  text-align: center !important;
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-accent);
  min-width: 55px;
}

.comparison-table tbody tr:nth-child(1) .rank-cell { color: #FFD700; font-size: 1.1rem; }
.comparison-table tbody tr:nth-child(2) .rank-cell { color: #C0C0C0; }
.comparison-table tbody tr:nth-child(3) .rank-cell { color: #CD7F32; }

/* === BRAND CELL === */
.brand-cell { min-width: 200px; }
.brand-name-cell {
  display: flex; align-items: center; gap: 0.75rem;
}
.brand-logo-sm {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, #239E46, #1a7a35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: white; flex-shrink: 0;
}
.brand-name-cell strong { font-size: 0.95rem; color: white; display: block; }
.brand-type-sm { font-size: 0.75rem; color: rgba(255,255,255,0.45); }

/* === RATING CELL === */
.rating-cell { min-width: 90px; text-align: center !important; }
.rating-badge {
  display: inline-block;
  background: linear-gradient(135deg, #239E46, #1a7a35);
  color: white; font-weight: 700; padding: 0.3rem 0.75rem;
  border-radius: 9999px; font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(35,158,70,0.3);
}

/* === BONUS CELL === */
.bonus-cell { min-width: 200px; font-size: 0.875rem; }

/* === PAYMENT CELL === */
.payment-cell {
  min-width: 160px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

/* === ACTIONS CELL === */
.actions-cell {
  min-width: 185px;
  white-space: nowrap;
}
.actions-cell .btn { margin-right: 0.3rem; }
.actions-cell .btn:last-child { margin-right: 0; }

/* Scrollbar styling */
.table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: var(--color-dark-lighter);
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(35,158,70,0.4);
  border-radius: 3px;
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(35,158,70,0.6);
}
