@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: 0 auto 40px auto; /* odstęp 20px POD kontenerem */
}


/* MINI TABELA – wersja kompaktowa dla strony głównej */
.mini-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 */
.mini-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 */
.mini-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);
}

.mini-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 */
.mini-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 */
.mini-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)
  );
}
.mini-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 */
.mini-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 */
.mini-table a {
  text-decoration: none;
  font-weight: 600;
  color: #e0e0e0;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.mini-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;
}

.mini-header {
  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;
}

.mini-header h2 {
  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 */
.mini-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: klasyczny turkusowy neon */
.mini-table tbody tr:first-child a:hover {
  color: #ff5a00; /* dopasowany do przycisku */
}

/* Efekt pojawienia */
@keyframes fadeInMiniTable {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}