/* vysledky.css */
@font-face {
  font-family: "ProtestStrike";
  src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf");
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "ProtestStrike";
  line-height: 1.6;
  color: #1a3a1a;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 25%, #e8eaed 50%, #2d7a2d 75%, #E3E3E3 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Kaktusové pozadí */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(102, 187, 106, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(139, 195, 74, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: kaktusFloat 20s ease-in-out infinite;
}

/* Animace */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes kaktusFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Modern Header */
.modern-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(25px);
  border-bottom: 3px solid rgba(76, 175, 80, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
  transition: all 0.3s ease;
}


.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";
  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.875rem 1.75rem;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}


.nav-button.primary {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.nav-button.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.nav-icon {
  font-size: 1.1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
  width: 100%;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-family: "ProtestStrike";
  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);
}

/* Filter Wrapper */
.filter-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15);
  border: 2px solid rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: hidden;
}


.season-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 1.1rem;
}

.filter-icon {
  font-size: 1.2rem;
}

.select-wrapper {
  position: relative;
}

.modern-select {
  appearance: none;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 250px;
}

.modern-select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.modern-select:hover {
  border-color: #cbd5e0;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #718096;
  font-size: 0.8rem;
}

.filter-button {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Results Wrapper */
.results-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15);
  border: 2px solid rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: hidden;
}


/* Results Table */
.results-table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
  scrollbar-width: thin; 
  scrollbar-color: #cbd5e0 #f1f5f9;
}
.results-table-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
.results-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.results-table-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}
.results-table-container::-webkit-scrollbar-thumb:hover {
    background-color: #a0aec0;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: transparent;
}

.results-table thead {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 2;
}

.results-table th {
  padding: 1rem 0.75rem;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  text-align: left;
  white-space: nowrap;
}

.results-table tbody tr {
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.results-table tbody tr:hover {
  background-color: rgba(248, 250, 252, 0.9);
}

.results-table td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

/* Slightly more compact + better emphasis for key cells */
.date-cell {
  font-weight: 600;
  color: #1f2937;
}

/* Match Row Styles */
.match-row.win {
  border-left: 4px solid #48bb78;
}

.match-row.loss {
  border-left: 4px solid #f56565;
}

.match-row.draw {
  border-left: 4px solid #ed8936;
}

/* Team Cell Styles */
.team-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 150px;
}

.team-cell.our-team {
  font-weight: 600;
}

.team-logo-container {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.team-name {
  flex: 1;
}

/* Score Cell Styles */
.score-cell {
  text-align: center;
}

.score-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-weight: 700;
  min-width: 70px;
  text-align: center;
}

.score-badge.win {
  background: linear-gradient(135deg, #c6f6d5, #48bb78);
  color: #22543d;
}

.score-badge.loss {
  background: linear-gradient(135deg, #fed7d7, #f56565);
  color: #742a2a;
}

.score-badge.draw {
  background: linear-gradient(135deg, #feebc8, #ed8936);
  color: #7b341e;
}

/* Date, Season, League, Round Cell Styles */
.date-cell {
  white-space: nowrap;
  font-weight: 500;
}

.season-cell,
.league-cell,
.round-cell {
  color: #718096;
}

/* Legend */
.legend-container {
  margin-top: 2rem;
}

.legend-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid rgba(76, 175, 80, 0.2);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.1);
  position: relative;
  overflow: hidden;
}


.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-balance {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(76, 175, 80, 0.2);
}

.balance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.balance-label {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
}

.balance-value {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.balance-value.win {
  background: linear-gradient(135deg, #c6f6d5, #48bb78);
  color: #22543d;
}

.balance-value.draw {
  background: linear-gradient(135deg, #feebc8, #ed8936);
  color: #7c2d12;
}

.balance-value.loss {
  background: linear-gradient(135deg, #fed7d7, #f56565);
  color: #742a2a;
}

.balance-score {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #e6fffa, #4fd1c7);
  color: #234e52;
  border: 2px solid rgba(76, 175, 80, 0.3);
}

.legend-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.legend-badge.win {
  background: linear-gradient(135deg, #c6f6d5, #48bb78);
}

.legend-badge.loss {
  background: linear-gradient(135deg, #fed7d7, #f56565);
}

.legend-badge.draw {
  background: linear-gradient(135deg, #feebc8, #ed8936);
}

/* Error Message */
.error-message {
  background: linear-gradient(135deg, #fed7d7, #f56565);
  color: #742a2a;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.error-icon {
  font-size: 3rem;
}

/* 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;
  }

  .filter-wrapper,
  .results-wrapper {
    padding: 1.5rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .filter-label {
    justify-content: center;
  }

  .modern-select {
    width: 100%;
    min-width: unset;
  }

  .results-table {
    min-width: 640px;
  }
  
  .results-table td, .results-table th {
    white-space: nowrap;
  }

  .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .results-table th,
  .results-table td {
    padding: 0.85rem 0.65rem;
  }

  .score-badge {
    padding: 0.45rem 0.85rem;
    min-width: 64px;
    border-radius: 999px;
  }

  .legend-items {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-image {
    width: 3rem;
    height: 2rem;
  }
}

/* Phones: focus on essentials, reduce horizontal scroll */
@media (max-width: 560px) {
  /* Hide less important columns: Sezóna, Liga, Kolo */
  .results-table th:nth-child(2),
  .results-table td:nth-child(2),
  .results-table th:nth-child(3),
  .results-table td:nth-child(3),
  .results-table th:nth-child(4),
  .results-table td:nth-child(4) {
    display: none;
  }

  .results-table {
    min-width: 0;
  }

  .team-cell {
    max-width: 42vw;
  }

  .team-name {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .filter-wrapper,
  .results-wrapper {
    padding: 1rem;
  }

  .results-wrapper {
    padding: 1rem;
  }

  .results-table {
    min-width: 0;
  }

  .results-table th,
  .results-table td {
    padding: 0.75rem 0.6rem;
  }

  .score-badge {
    font-size: 0.95rem;
  }
}