/**
 * TrackBans Steam Profiles - Archive Styles v2 (Cyan Theme)
 */

/* ========== ARCHIVE CONTAINER ========== */
.trackbans-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  padding: 20px;
  color: #CBD5E1;
}

/* ========== SEARCH ========== */
.search-section {
  background: #0a1225;
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid rgba(0,212,255,0.12);
}
.search-section h2 {
  margin: 0 0 18px 0;
  font-size: 24px;
  color: #FFFFFF;
  text-align: center;
  font-weight: 700;
}
.steam-search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.steam-search-form input[type="text"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(0,212,255,0.15);
  background: rgba(0,212,255,0.04);
  color: #FFFFFF;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}
.steam-search-form input[type="text"]::placeholder {
  color: #475569;
}
.steam-search-form input[type="text"]:focus {
  outline: none;
  border-color: #00D4FF;
  background: rgba(0,212,255,0.06);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}
.steam-search-form button {
  padding: 14px 28px;
  background: linear-gradient(135deg, #00B4D8, #0077B6);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.steam-search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,212,255,0.3);
}

/* ========== GRID ========== */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.profiles-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.profiles-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.profiles-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

/* ========== CARDS ========== */
.profile-card {
  background: #0a1225 !important;
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(0,212,255,0.1) !important;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,212,255,0.12) !important;
  border-color: rgba(0,212,255,0.25) !important;
}
.profile-card * {
  background-color: transparent;
}
.profile-card.vac-banned {
  border: 1px solid rgba(244,67,54,0.4) !important;
}
.profile-card.high-risk {
  border-color: rgba(244,67,54,0.3) !important;
}
.profile-card.medium-risk {
  border-color: rgba(255,152,0,0.3) !important;
}
.profile-card.low-risk {
  border-color: rgba(0,212,255,0.15) !important;
}

/* Avatar */
.profile-card .profile-avatar {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #060B18 !important;
}
.profile-card .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.profile-card:hover .profile-avatar img {
  transform: scale(1.05);
}
.vac-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(244,67,54,0.9) !important;
  color: white !important;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Info */
.profile-info {
  padding: 18px;
  background-color: #0a1225 !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.profile-info h3.player-name {
  margin: 0 0 10px 0;
  font-size: 17px;
  font-weight: 700;
}
.profile-info h3 a {
  color: #00D4FF !important;
  text-decoration: none;
  transition: color 0.2s;
}
.profile-info h3 a:hover {
  color: #38BDF8 !important;
}
.profile-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748B !important;
  margin-bottom: 14px;
  font-family: 'Space Mono', monospace;
}
.steam-id, .cs2-hours {
  color: #64748B !important;
}

/* Probability meter */
.profile-card .cheat-probability {
  position: relative;
  margin-bottom: 16px;
}
.profile-card .meter-container {
  position: relative;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
}
.profile-card .meter-gradient {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #00D4FF, #ffc107, #f44336) !important;
  border-radius: 6px;
  z-index: 1;
}
.profile-card .meter-fill {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  background: #0a1225 !important;
  border-radius: 0 6px 6px 0;
  z-index: 2;
}
.profile-card .percent-label {
  display: block;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF !important;
  font-family: 'Space Mono', monospace;
  margin-bottom: 6px;
}

/* View button */
.view-profile {
  display: block;
  text-align: center;
  padding: 11px;
  background: linear-gradient(135deg, #00B4D8, #0077B6) !important;
  color: #FFFFFF !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}
.view-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,212,255,0.25);
  color: #FFFFFF !important;
}

/* ========== PAGINATION ========== */
.profiles-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.profiles-pagination a,
.profiles-pagination span {
  display: inline-block;
  padding: 10px 16px;
  background: #0a1225 !important;
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 10px;
  color: #94A3B8 !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.profiles-pagination a:hover {
  border-color: #00D4FF;
  color: #00D4FF !important;
  background: rgba(0,212,255,0.06) !important;
}
.profiles-pagination span.current {
  background: linear-gradient(135deg, #00B4D8, #0077B6) !important;
  color: #FFFFFF !important;
  border-color: transparent;
  font-weight: 700;
}

/* ========== NO RESULTS ========== */
.no-profiles {
  text-align: center;
  padding: 60px 20px;
  color: #64748B;
  background: #0a1225;
  border-radius: 16px;
  border: 1px solid rgba(0,212,255,0.1);
}
.no-profiles p { color: #94A3B8; }
.clear-search {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #00B4D8, #0077B6);
  color: #FFFFFF !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}
.clear-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,212,255,0.25);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .profiles-grid,
  .profiles-grid.columns-4,
  .profiles-grid.columns-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .profiles-grid,
  .profiles-grid.columns-2,
  .profiles-grid.columns-3,
  .profiles-grid.columns-4 {
    grid-template-columns: 1fr;
  }
  .steam-search-form {
    flex-direction: column;
  }
  .steam-search-form button {
    width: 100%;
  }
}