/* Additional styles to enhance the overall design */

/* Custom background pattern overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
  }
  
  /* Hero image overlay enhancement */
  .hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
  }
  
  /* Fire animation for hero badge */
  .hero-badge::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: fireFlow 2s linear infinite;
    border-radius: var(--radius-full);
  }
  
  @keyframes fireFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }
  
  /* Enhanced hover effects for buttons */
  .btn:hover {
    box-shadow: 
      0 7px 14px rgba(50, 50, 93, 0.1),
      0 3px 6px rgba(0, 0, 0, 0.08),
      0 0 0 3px rgba(255, 107, 53, 0.2);
    transform: translateY(-3px);
  }
  
  /* Table row hover enhancement */
  .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    transition: background 0.3s ease;
  }
  
  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 12px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--secondary-dark);
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 3px solid var(--secondary-dark);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
  }
  
  /* Trophy card hover augmentation */
  .trophy-card:hover::before {
    animation: pulseBar 1.5s ease infinite;
  }
  
  @keyframes pulseBar {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
  }
  
  /* Enhanced focus styles for better accessibility */
  *:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.5);
  }
  
  /* Flare effect for navbar on scroll */
  .header.scrolled {
    background: linear-gradient(to right, rgba(18, 22, 36, 0.95) 0%, rgba(29, 35, 54, 0.95) 50%, rgba(18, 22, 36, 0.95) 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
  }
  
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Logo glow effect for header */
  .logo-icon {
    filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.5));
  }
  
  /* Countdown number emphasis */
  .countdown-number {
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    background: linear-gradient(to bottom, var(--white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* Footer social links enhancement */
  .social-link:hover {
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* Section divider animation */
  .section-divider {
    background-size: 200% 100%;
    animation: gradientFlow 3s linear infinite;
  }
  
  @keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }
  
  /* Floating animation for hero content */
  .hero-content {
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
  }
  
  /* Top position indicator enhancements */
  .position-1::before {
    box-shadow: 0 0 10px var(--gold);
  }
  
  .position-2::before {
    box-shadow: 0 0 8px var(--silver);
  }
  
  .position-3::before {
    box-shadow: 0 0 6px var(--bronze);
  }
  
  /* Loading spinner enhancement */
  .spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  }
  
  /* First place trophy emphasis */
  .trophy-card:first-child {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 183, 3, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 183, 3, 0.05));
  }
  
  .trophy-card:first-child:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 183, 3, 0.25);
  }
  
  /* Hero badge enhancement */
  .hero-badge {
    position: relative;
    overflow: hidden;
  }
  
  /* Additional font enhancements */
  h1, h2, h3, .countdown-number, .position, .trophy-year {
    letter-spacing: -0.02em;
  }
  
  /* Timeline enhancement */
  .timeline-content::before {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .timeline-item:hover .timeline-content::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.2);
  }
  
  /* Hover effect for info cards */
  .info-card:hover .info-icon {
    animation: bounce 0.5s ease;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  /* Hero subtitle emphasis */
  .hero-subtitle {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.5;
  }
  
  /* Fixed navigation active state enhancement */
  .nav-link.active::after {
    width: 100%;
    height: 3px;
    box-shadow: 0 0 8px var(--primary);
  }
  
  /* Trophy badge shine effect */
  .trophy-badge {
    overflow: hidden;
  }
  
  .trophy-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shine 3s linear infinite;
  }
  
  @keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
  }
  
  /* Section header line animation */
  h2::after {
    animation: expandLine 1s ease-in-out forwards;
    transform-origin: center;
  }
  
  @keyframes expandLine {
    0% { width: 0; }
    100% { width: 80px; }
  }
  
  /* Navbar transitions enhancement */
  .navbar {
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Responsive design enhancements */
  @media (max-width: 768px) {
    .hero-title {
      font-size: clamp(var(--fs-6), 7vw, var(--fs-8));
    }
    
    .rule-card, .info-card {
      transform: none !important;
    }
    
    .hero-content {
      animation: none;
    }
  }

  /* Přidáme odsazení pro první buňku u top 3 týmů */
tr.position-1 td:first-child,
tr.position-2 td:first-child,
tr.position-3 td:first-child {
  position: relative;
  padding-left: 20px; /* vytvoříme místo pro proužek */
}

/* Proužek pro první místo – zlato */
tr.position-1 td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
}

/* Proužek pro druhé místo – stříbro */
tr.position-2 td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
}

/* Proužek pro třetí místo – bronz */
tr.position-3 td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
}

/* Trophy times styling */
.trophy-time {
  font-family: 'Roboto Mono', monospace;
  margin-top: var(--space-2);
  color: var(--accent);
  font-size: var(--fs-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  transition: all var(--trans-normal) ease;
}

.trophy-card:hover .trophy-time {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.trophy-time i {
  color: var(--primary);
}

/* First place trophy time styling */
.trophy-card:first-child .trophy-time {
  background-color: rgba(255, 183, 3, 0.1);
  color: var(--gold);
}

.trophy-card:first-child .trophy-time i {
  color: var(--gold);
}

/* Make trophy cards slightly taller to accommodate time */
.trophy-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Add blinking animation for current year trophy */
@keyframes blink {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.trophy-card:first-child .trophy-time i {
  animation: blink 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .trophy-time {
    font-size: var(--fs-2);
    padding: var(--space-1) var(--space-2);
  }
}

/* Styly pro kontejner tlačítka exportu */
.export-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

/* Styly pro tlačítko exportu */
.export-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.export-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.export-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.export-btn:hover::before {
  left: 100%;
}

.export-btn:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Stylování ikony */
.export-btn i {
  font-size: 1.2rem;
}

/* Animace při načítání */
.export-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.export-btn.loading i {
  animation: spin 1s linear infinite;
}

/* Responsivní design pro tlačítko */
@media (max-width: 576px) {
  .export-btn {
      padding: 10px 16px;
      font-size: 0.9rem;
  }
  
  .export-btn i {
      font-size: 1rem;
  }
}