/* ============================================================
   TRANSFER MARKET — Additional CSS
   ============================================================ */
.tm-hero {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a6b3c 100%);
  padding: 100px 0 60px;
}
.tm-search-bar {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 6px;
}
.tm-search-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 10px 16px;
  flex: 1;
  outline: none;
}
.tm-search-input::placeholder { color: rgba(255,255,255,0.5); }
.tm-search-btn {
  background: linear-gradient(135deg, #1a6b3c, #134f2c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}
.tm-search-btn:hover { background: linear-gradient(135deg, #134f2c, #0d3a20); transform: translateY(-1px); }

.tm-filter-pill {
  padding: 6px 16px;
  border-radius: 99px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #4b5563;
  font-family: 'Inter', sans-serif;
}
.tm-filter-pill:hover, .tm-filter-pill.active {
  border-color: #1a6b3c;
  color: #1a6b3c;
  background: #e8f5ee;
}

.player-table-wrap { overflow-x: auto; }
.player-table { width: 100%; border-collapse: collapse; }
.player-table th {
  background: #f9fafb;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.player-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: #374151;
  vertical-align: middle;
}
.player-table tbody tr {
  transition: background 0.2s;
  cursor: pointer;
}
.player-table tbody tr:hover { background: #f0fdf4; }

.player-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}
.player-avatar-placeholder {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a6b3c, #0f1f3d);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}
.position-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Transfer history row styling */
.transfer-row-from { color: #dc2626; font-weight: 500; }
.transfer-row-to   { color: #166534; font-weight: 500; }
.transfer-arrow    { color: #9ca3af; }

/* Player detail modal */
.player-detail-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(15,31,61,0.6);
  backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}
.player-detail-panel {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 420px; max-width: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  animation: slideInRight .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.player-detail-header {
  background: linear-gradient(135deg, #0f1f3d 0%, #1a6b3c 100%);
  padding: 24px;
  color: #fff;
}
.close-panel-btn {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border: none; border-radius: 50%;
  color: #fff; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.close-panel-btn:hover { background: rgba(255,255,255,0.3); }

/* Stat grid in detail */
.detail-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail-stat-item { background: #f9fafb; border-radius: 10px; padding: 10px; text-align: center; }
.detail-stat-val { font-family: 'Syne', sans-serif; font-weight: 700; color: #1a6b3c; font-size: 1.2rem; }
.detail-stat-lbl { font-size: 0.7rem; color: #9ca3af; margin-top: 2px; }

/* Transfermarkt-style club badge */
.club-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #1a6b3c);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}
