@font-face {
  font-family: "ProtestStrike";
  src: url("souborykaktus/PROTESTSTRIKEFONT.ttf");
  font-weight: normal;
  font-style: normal;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: linear-gradient(135deg, #068000 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Modern Header */
.modern-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 4.5rem;
  height: 3rem;
  border-radius: 0.375rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-title {
  font-family: "ProtestStrike", Arial, sans-serif;
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 1rem;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-button.primary {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.nav-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.nav-icon {
  font-size: 1.1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-family: "ProtestStrike", Arial, sans-serif;
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stats Wrapper */
.stats-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.table-container {
  margin-bottom: 2rem;
}

.table-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.table-title {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.table-subtitle {
  color: #718096;
  font-size: 1rem;
}

/* Modern Table */
.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: white;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.modern-table thead {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.modern-table th {
  padding: 1rem 0.75rem;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modern-table th.sortable {
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.modern-table th.sortable:hover,
.modern-table th.sortable.hover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
}

.th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sort-icon {
  font-size: 0.8rem;
  color: #718096;
  transition: color 0.3s ease;
}

.modern-table th.sortable:hover .sort-icon {
  color: #4a5568;
}

.modern-table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f1f5f9;
}

.modern-table tbody tr:hover {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-table td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

/* Player Info */
.player-name {
  font-weight: 500;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.name {
  font-weight: 600;
  color: #2d3748;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.active {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
}

.status-badge.inactive {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  color: white;
}

/* Stat Values */
.stat-value {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  display: inline-block;
  min-width: 2rem;
  text-align: center;
}

.stat-value.highlight {
  background: linear-gradient(135deg, #ffd89b, #19547b);
  color: white;
}

.stat-value.success {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  color: #2d3748;
}

.stat-value.warning {
  background: linear-gradient(135deg, #ffeaa7, #fab1a0);
  color: #2d3748;
}

.stat-value.danger {
  background: linear-gradient(135deg, #ff7675, #fd79a8);
  color: white;
}

.stat-value.star {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
  color: white;
}

/* Player Status Colors (preserved from original) */
.neaktivni-hrac .name {
  color: #e53e3e !important;
}

.aktivni-hrac .name {
  color: #2d3748 !important;
}

/* Legend */
.legend-container {
  margin-top: 2rem;
}

.legend-card {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.legend-title {
  font-size: 1.2rem;
  color: #2d3748;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legend-items {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legend-note {
  color: #718096;
  font-size: 0.9rem;
  font-style: italic;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .title-icon {
    font-size: 2rem;
  }

  .content-container {
    padding: 0 1rem;
  }

  .stats-wrapper {
    padding: 1rem;
  }

  .modern-table {
    font-size: 0.8rem;
  }

  .modern-table th,
  .modern-table td {
    padding: 0.5rem 0.25rem;
  }

  .th-content {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .player-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .legend-items {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-value {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    min-width: 1.5rem;
  }

  .logo-image {
    width: 3rem;
    height: 2rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .modern-table {
    font-size: 0.7rem;
  }

  .modern-table th,
  .modern-table td {
    padding: 0.4rem 0.2rem;
  }

  .table-title {
    font-size: 1.2rem;
  }

  .table-subtitle {
    font-size: 0.9rem;
  }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.player-row {
  animation: fadeIn 0.6s ease forwards;
}

.player-row:nth-child(even) {
  animation-delay: 0.1s;
}

.player-row:nth-child(3n) {
  animation-delay: 0.2s;
}
