@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-dark: #232428;
  --bg-darker: #2c2d31;
  --bg-header: #33343a;
  --text-light: #f2f2f2;
  --text-muted: #d0d0d0;
  --accent: #ff5a00;
}

.rankings-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto 40px auto; /* odstęp 20px POD kontenerem */

}


.tabele-pvp-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto 40px auto; /* odstęp 20px POD kontenerem */

}

  
/* MINI TABELA – wersja kompaktowa dla strony głównej */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  border-left: 4px solid var(--accent); /* neonowa linia po lewej */
  box-shadow: 6px 0 15px rgba(0, 0, 0, 0.35),
              0 0 25px rgba(0, 208, 255, 0.12);
  font-size: 0.9rem; /* mniejszy font */
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInMiniTable 0.5s ease forwards;
  position: relative; /* konieczne dla pseudo-elementu */
  
      background-color: transparent;
  backdrop-filter: blur(8px);
}

/* Neonowy pasek po lewej */
.styled-table::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.8);
}

/* Nagłówek */
.styled-table thead tr {
    background: linear-gradient(
    180deg,
    rgba(60, 0, 10, 0.90),
    rgba(35, 0, 5, 0.85)
  );
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

.styled-table th {
  padding: 10px 16px; /* ciaśniej */
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  
      color: #f7f7f7;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(255, 90, 0, 0.4);
}

/* Wiersze */
.styled-table td {
  padding: 10px 16px; /* ciaśniej */
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Kolory naprzemienne */
.styled-table tbody tr:nth-of-type(odd) {
  /*background-color: var(--bg-dark);*/

	
	  background: linear-gradient(
    180deg,
    rgba(25, 0, 0, 0.75),
    rgba(10, 0, 0, 0.85)
  );
}
.styled-table tbody tr:nth-of-type(even) {
  /*background-color: var(--bg-darker);*/

  
  
    background: linear-gradient(
    180deg,
    rgba(20, 0, 0, 0.65),
    rgba(8, 0, 0, 0.75)
  );
}

/* Hover efekt */
.styled-table tbody tr:hover {
  background-color: #3c1b1b;
  color: #fff;
  transform: scale(1.01);
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.2);
  transition: all 0.3s ease;
}

/* Linki */
.styled-table a {
  text-decoration: none;
  font-weight: 600;
  color: #e0e0e0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.styled-table a:hover {
  color: #ff5a00; /* dopasowany do przycisku */
    text-shadow:
    0 0 1px rgba(255, 90, 0, 0.9),
    0 0 2px rgba(255, 90, 0, 0.6),
    0 0 3px rgba(255, 140, 0, 0.4);
	transition: all 0.2s ease-in-out;
}

.hiheader {
  padding: 10px 14px;
  background: url(../img/custom_images/test.png);
  border-radius: 8px 8px 0 0;
  text-align: center;
  color: white;
  font-family: 'Inter', sans-serif;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .32),
    inset 0 0 0 2px rgba(255, 255, 255, .19),
    0 10px 14px rgba(0, 0, 0, 0.25);
  margin-bottom: 0;
  letter-spacing: 0.3px;
}

.hiheader h1 {
  font-size: 1.35em; /* 🔹 trochę większe niż wcześniej */
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 208, 255, 0.5);
}

/* 🔥 Czerwony neon dla TOP1 gracza — subtelniejszy */
.styled-table tbody tr:first-child a {
  color: #ff4a4a; /* lekko jaśniejszy, ale bardziej czytelny */
  text-shadow:
    0 0 3px rgba(255, 60, 60, 0.8),
    0 0 6px rgba(255, 0, 0, 0.5);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* 👇 Hover: pomarańczowy neon w stylu przycisku */
.styled-table tbody tr:first-child a:hover {
  color: #ff5a00; /* dopasowany do przycisku */
}

/* Kontener dla przewijanej tabeli */
.table-scroll-wrapper {
  max-height: 420px; /* wysokość widocznej części, dostosuj wg potrzeb */
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 10px;
  scrollbar-width: thin; /* dla Firefoxa */
  scrollbar-color: rgba(130, 0, 0, 0.85) rgba(15, 0, 0, 0.55);
}

/* Kontener dla przewijanej tabeli */
.table-scroll-wrapper-pvp {
  max-height: 320px; /* wysokość widocznej części, dostosuj wg potrzeb */
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 10px;
  scrollbar-width: thin; /* dla Firefoxa */
  scrollbar-color: rgba(130, 0, 0, 0.85) rgba(15, 0, 0, 0.55);
}



/* Styl scrollbara – Chrome, Edge, Safari */
.table-scroll-wrapper::-webkit-scrollbar {
  width: 8px;
}

/* Pasek tła (track) — dopasowany do tabeli */
.table-scroll-wrapper::-webkit-scrollbar-track {
  background-color: rgba(25,0,0,0.7) !important;
}

/* Uchwyt scrolla */
.table-scroll-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(130, 0, 0, 0.9),
    rgba(90, 0, 0, 0.9)
  );
  border-radius: 10px;
  box-shadow:
    0 0 6px rgba(255, 30, 30, 0.5),
    inset 0 0 4px rgba(255, 60, 60, 0.5);
}

.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(180, 0, 0, 1),
    rgba(120, 0, 0, 1)
  );
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.7),
    inset 0 0 6px rgba(255, 70, 70, 0.7);
	
}


/* Upewnij się, że tabela rozciąga się w wrapperze */
.table-scroll-wrapper .styled-table {
  margin: 0;
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.ostatnie_wyszukiwania {
  margin-top: 60px;
}

.lastjoins {
  margin-top: 30px;
}

/* Efekt pojawienia */
@keyframes fadeInMiniTable {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}