@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;
}

/* 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-icon {
  display: flex;
  align-items: center;
}

.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;
}

.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);
}

/* Stats Wrapper */
.stats-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stats-section {
  animation: fadeIn 0.6s ease forwards;
}

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

.section-header {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.section-title {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.section-icon {
  font-size: 1.5rem;
}

.section-subtitle {
  color: #718096;
  font-size: 1rem;
}

.section-content {
  padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stats-grid-extended {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

@media (min-width: 900px) {
  .stats-grid-extended {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat-value-sm {
  font-size: 1.35rem;
  line-height: 1.25;
  word-break: break-word;
}

.stat-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #718096;
  font-weight: 500;
  line-height: 1.35;
}

.ucast-hidden {
  display: none !important;
}

.prehled-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.stat-card.ucast-card {
  align-content: start;
}

.stat-card.ucast-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.stat-card.ucast-card .stat-label {
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.stat-card.ucast-card .ucast-display {
  margin-top: 0;
  width: 100%;
}

.stat-card.ucast-card .ucast-pct {
  font-size: 1.65rem;
  line-height: 1.1;
  margin-bottom: 0.1rem;
}

.ucast-micro {
  font-size: 0.7rem;
  color: #4a5568;
  line-height: 1.25;
  margin-top: 0.15rem;
}

.ucast-micro-muted {
  color: #718096;
  font-size: 0.65rem;
  margin-top: 0.1rem;
}

.section-header-with-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.section-header-with-filter > div:first-child {
  flex: 1 1 220px;
  text-align: center;
}

.section-header-with-filter .section-title,
.section-header-with-filter .section-subtitle {
  justify-content: center;
}

.sezona-filter-form {
  flex: 0 1 280px;
  min-width: min(100%, 260px);
  margin-left: auto;
}

.sezona-filter-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.35rem;
  text-align: left;
}

.section-header-with-filter .modern-select {
  width: 100%;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
  border: 2px solid rgba(76, 175, 80, 0.15);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.3);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  font-family: "ProtestStrike";
}

/* Chart Controls */
.chart-controls {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.modern-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: "ProtestStrike";
  transition: all 0.3s ease;
  background-color: #f8fafc;
  cursor: pointer;
}

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

/* Chart Container */
.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@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;
  }

  .section-header,
  .section-content {
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .chart-container {
    height: 300px;
  }

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

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

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

  .section-title {
    font-size: 1.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    height: 250px;
  }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-section:nth-child(1) {
  animation-delay: 0.1s;
}

.stats-section:nth-child(2) {
  animation-delay: 0.2s;
}

.stats-section:nth-child(3) {
  animation-delay: 0.3s;
}

.stats-section:nth-child(4) {
  animation-delay: 0.4s;
}

