/* Modern History Page Styles */
@font-face {
  font-family: "ProtestStrike";
  src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf");
  font-display: swap;
}

/* 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 {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* 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: 1000;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
  transition: all 0.3s ease;
}


.header-content {
  max-width: 1400px;
  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;
  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-left {
  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));
}

/* page-header a page-title pro nadpis pod hlavičkou (jako soupiska) */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.page-title {
  font-family: "ProtestStrike";
  font-size: 2rem;
  color: #2d3748;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

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

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

.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-button.danger {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.nav-button.danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 101, 101, 0.4);
}

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

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

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

/* Filters */
.filters-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);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}


.form-group {
  display: flex;
  flex-direction: column;
}

.form-label, label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

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

.form-select {
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-select:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

.form-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Stats Display */
#stats-display-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);
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}


.stats-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.stats-header h2 {
    font-family: "ProtestStrike";
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.stats-header p {
    color: #718096;
    font-size: 1rem;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

thead th {
    font-size: 0.85rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8f9fa;
}

tbody tr:nth-child(even) {
    background-color: #fdfdff;
}

tbody tr:hover {
    background-color: #f7f7ff;
}

td[data-label="Góly"], td[data-label="Asistence"] {
    font-weight: 600;
}

.has-card {
    font-weight: bold;
    font-size: 1.2rem;
}

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


.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: #718096;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.empty-state p {
  font-size: 1.1rem;
  color: #4a5568;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
    }

    .logo-image {
        width: 3.75rem;
        height: 2.5rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .page-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .filters-wrapper {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 0.75rem;
    }

    /* Responsive table */
    table {
        border: 0;
    }
    table thead {
        display: none;
    }
    table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #f1f1f1;
        position: relative;
        padding-left: 50%;
    }
    table td:last-child {
        border-bottom: 0;
    }
    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        font-weight: bold;
        text-align: left;
    }
}