@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;700&family=Inter:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #f5f5f5;
  background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1b1b2f);
  background-size: 400% 400%;
  animation: backgroundShift 20s ease infinite;
  min-height: 100vh;
}

/* Animate background gradient */
@keyframes backgroundShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== HEADER SECTION ===== */
.sciverse-header {
  padding: 90px 20px 30px;
  margin-top: 80px;
  text-align: center;
  background: rgba(20, 20, 35, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sciverse-header .logo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.sciverse-header .logo-bar img {
  height: 60px;
  transition: transform 0.3s ease;
}

.sciverse-header .logo-bar img:hover {
  transform: scale(1.07);
}

.sciverse-header h1 {
  font-size: 3rem;
  color: #e0e0ff;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sciverse-header h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #aaa;
}

/* ===== TABLE SECTION ===== */
.table-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 60px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

thead {
  background-color: rgba(50, 50, 70, 0.8);
}

th, td {
  padding: 16px 14px;
  text-align: left;
  font-size: 1rem;
  color: #f0f0f0;
}

th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #27274f;
  color: #fff;
}

/* Table rows */
tr {
  transition: background 0.3s ease;
}

tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Club cell with logo */
.club-cell {
  display: flex;
  align-items: center;
}

.club-cell img {
  width: 36px;
  height: 36px;
  margin-right: 12px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid #444;
}

/* Highlight top 2 rows differently */
tbody tr:nth-child(1) {
  background: rgba(71, 124, 255, 0.1);
  border-left: 4px solid #4788ff;
}

tbody tr:nth-child(2) {
  background: rgba(142, 71, 255, 0.1);
  border-left: 4px solid #9147ff;
}

/* Remove hover color for top 2 */
tbody tr:nth-child(-n+2):hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sciverse-header h1 {
    font-size: 2.2rem;
  }

  .sciverse-header h2 {
    font-size: 1rem;
  }

  .sciverse-header .logo-bar img {
    height: 48px;
  }

  th, td {
    font-size: 0.95rem;
    padding: 12px;
  }

  .club-cell img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 480px) {
  .sciverse-header .logo-bar {
    gap: 20px;
  }

  .sciverse-header h1 {
    font-size: 1.6rem;
  }

  .sciverse-header h2 {
    font-size: 0.9rem;
  }
}
