/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  min-height: 100vh;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d0d0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 204, 0, 0.2);
  border-top-color: #ffcc00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-container a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffcc00;
}

.nav-links a.active {
  color: #ffcc00;
}

/* Search box */
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 4px 10px;
  backdrop-filter: blur(8px);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: white;
  padding: 5px;
  width: 150px;
}

.search-box button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.search-box button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Burger Icon */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 25px;
  height: 20px;
  gap: 5px;
}

.burger span {
  background: #ffcc00;
  height: 3px;
  width: 100%;
  border-radius: 5px;
  transition: 0.4s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
  transition: all 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.mobile-menu a {
  color: #ffcc00;
  font-size: 1.4rem;
  text-decoration: none;
}

.mobile-menu a.active {
  text-decoration: underline;
}

.search-box-mobile {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 5px 10px;
}

.search-box-mobile input {
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
}

.search-box-mobile button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.search-box-mobile button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Search Results */
.search-results {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  min-width: 300px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  cursor: pointer;
  transition: background 0.3s;
}

.search-result-item:hover {
  background: rgba(255, 204, 0, 0.1);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h4 {
  color: #ffcc00;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.search-result-item p {
  color: #ddd;
  font-size: 0.85rem;
}

.no-results {
  padding: 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

/* Page Containers */
.content,
.about-container,
.support-container {
  padding: 0 2rem;
  margin: 3rem auto;
}

/* Event Cards */
.content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Event Card */
.event-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: 0.3s;
  text-decoration: none;
  color: #fff;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.event-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.details h2 {
  color: #ffcc00;
  margin-bottom: 8px;
}

.info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #ddd;
}

.info span {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 8px;
}

.info span img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem 0;
  background: rgba(20, 20, 20, 0.9);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 3rem;
}

.footer a {
  color: #ffcc00;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Player Earnings Table */
.earnings-section {
  margin-top: 3rem;
}

.earnings-table-container {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  overflow-x: auto;
}

.earnings-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.earnings-header h2 {
  color: #ffcc00;
  font-size: 1.8rem;
  font-weight: 600;
}

.earnings-table {
  width: 100%;
  border-collapse: collapse;
}

.earnings-table thead tr {
  background: rgba(255, 204, 0, 0.1);
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.earnings-table th {
  color: #ffcc00;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  font-size: 0.95rem;
}

.earnings-table th:first-child {
  border-radius: 8px 0 0 0;
  text-align: center;
  width: 80px;
}

.earnings-table th:last-child {
  border-radius: 0 8px 0 0;
  text-align: right;
}

.earnings-table tbody tr {
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  transition: background 0.3s;
}

.earnings-table tbody tr:hover {
  background: rgba(255, 204, 0, 0.05);
}

.earnings-table tbody tr:last-child {
  border-bottom: none;
}

.earnings-table td {
  padding: 1rem;
  color: #ddd;
  font-size: 0.9rem;
}

.earnings-table td:first-child {
  text-align: center;
  color: #ffcc00;
  font-weight: 600;
}

.earnings-table td:last-child {
  text-align: right;
  font-weight: 500;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.rank-badge.top-3 {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.3), rgba(255, 153, 0, 0.3));
  border-color: rgba(255, 215, 0, 0.5);
}

.loading-message {
  text-align: center;
  padding: 2rem;
  color: #aaa;
}

.error-message {
  text-align: center;
  padding: 2rem;
  color: #ff6b6b;
}

.update-note {
  text-align: right;
  font-size: 0.85rem;
  color: #ff0000;
  margin-top: 6px;
  font-style: italic;
}


/* Responsive - Tablet (iPad) */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    padding: 0 3rem;
  }

  .content,
  .about-container,
  .support-container {
    padding: 0;
    max-width: 100%;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .event-card {
    flex-direction: row;
  }

  .video-card {
    width: 320px;
  }
}

/* Responsive - Desktop */
@media (min-width: 1025px) {
  body {
    padding: 0 300px;
  }

  .content,
  .about-container,
  .support-container {
    padding: 0;
    max-width: 100%;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .event-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-results {
    right: 0;
    left: 0;
    margin: 0.5rem 1rem;
    min-width: auto;
  }

  .earnings-table th,
  .earnings-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .earnings-table th:first-child,
  .earnings-table td:first-child {
    width: 60px;
  }

  .rank-badge {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .video-card {
    width: 280px;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}