@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-base: #121212;
  --bg-panel: #1e1e1e;
  --bg-hover: #2a2a2a;
  --accent: #00b070;
  --accent-hover: #008a57;
  --pending: #f39c12;
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  --border: #333333;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  
  /* Stops the random text selection and Google Search popups */
  -webkit-user-select: none; 
  user-select: none;         
}

/* Navbar */
.navbar {
  background-color: #090909;
  border-bottom: 2px solid var(--accent);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  background-color: var(--accent);
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.tab-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}
.tab-btn.active {
  color: var(--accent);
  background-color: rgba(0, 176, 112, 0.1);
}

.disclaimer-banner {
  background: #1a1a1a;
  color: #888;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.75rem;
  border-bottom: 1px solid #333;
}

.disclaimer-banner a {
  color: #00b070; /* Your green accent color */
  text-decoration: none;
}

.disclaimer-banner a:hover {
  text-decoration: underline;
}

/* Container & Table */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  padding-bottom: 60px;
}
.header-info {
  background: var(--bg-panel);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-info h2 { margin: 0; font-size: 1.2rem; color: var(--accent); }
.header-info p { margin: 5px 0 0 0; color: var(--text-muted); font-size: 0.9rem; }

.table-container {
  background: var(--bg-panel);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow-x: auto;
  /* Smooth scrolling on mobile iOS */
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for table */
.table-container::-webkit-scrollbar {
  height: 8px;
}
.table-container::-webkit-scrollbar-track {
  background: var(--bg-base);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.table-container::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 750px;
}

/* Fade in animation for table rows */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
tbody tr {
  animation: fadeIn 0.3s ease forwards;
}
th, td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
th {
  background-color: #171717;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tr:hover { background-color: var(--bg-hover); }

/* Elements */
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
.status-badge {
  padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.status-verified { background-color: rgba(0, 176, 112, 0.2); color: var(--accent); border: 1px solid var(--accent); }
.status-pending { background-color: rgba(243, 156, 18, 0.2); color: var(--pending); border: 1px solid var(--pending); }

.player-wrapper { display: inline-flex; align-items: center; gap: 8px; }
.player-flag { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; }
.player-flag-empty { display: inline-block; width: 18px; }
.trophy-icon { width: 20px; height: 20px; vertical-align: middle; }
.sortable-th { cursor: pointer; user-select: none; transition: color 0.2s; }
.sortable-th:hover { color: var(--accent); }

/* Loader & Pagination */
#status-container { text-align: center; padding: 50px; color: var(--text-muted); }
.spinner {
  display: inline-block; width: 30px; height: 30px;
  border: 3px solid rgba(0, 176, 112, 0.3); border-radius: 50%;
  border-top-color: var(--accent); animation: spin 1s infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pagination-container {
  display: flex; justify-content: center; gap: 10px; margin-top: 25px; flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-panel);
  border: 2px solid var(--accent); color: var(--text-main); font-weight: 700;
  cursor: pointer; transition: all 0.2s;
}
.page-btn:hover { transform: scale(1.05); }
.page-btn.active { background: var(--accent); color: #000; box-shadow: 0 0 10px rgba(0,176,112,0.4); }

@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 15px; padding: 15px; }
  .container { margin: 20px auto; padding: 0 10px; }
  .header-info { flex-direction: column; text-align: center; gap: 15px; padding: 15px; }
  .header-info div { text-align: center !important; }

  th, td { padding: 10px; font-size: 0.9rem; }
  .status-badge { font-size: 0.7rem; padding: 3px 6px; }

  .pagination-container { gap: 5px; }
  .page-btn { width: 34px; height: 34px; font-size: 0.85rem; }
}

/* SMART TOOLTIP STYLES */
.rank-badge {
    background: #2a2a2a;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    border: 1px solid #444;
    vertical-align: middle;
}

.tooltip {
  position: relative;
  cursor: help;
  display: inline-block;
  user-select: none; 
  -webkit-user-select: none;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #2a2a2a;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 6px;
  position: absolute;
  z-index: 10;
  bottom: 150%; 
  left: 50%;
  margin-left: -70px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
  border: 1px solid #444;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #444 transparent transparent transparent;
}

/* Triggers on mouse hover OR mobile tap */
.tooltip:hover .tooltiptext, .tooltip:active .tooltiptext {
  visibility: visible;
  opacity: 1;
}
