@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;
  width: 100%;
}

/* 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-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
}

.logo-icon img {
  width: 4.5rem;
  height: 3rem;
  border-radius: 0.375rem;
  object-fit: contain;
}

.site-title {
  font-family: "ProtestStrike", Arial, sans-serif;
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.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;
  white-space: nowrap;
}

.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-button.secondary {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.nav-button.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.nav-button.danger {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.nav-button.danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 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);
  flex-wrap: wrap;
}

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

/* Messages */
.success-message,
.error-message {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease;
}

.success-message.fade-out,
.error-message.fade-out {
  opacity: 0;
}

.success-message {
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.error-message {
  border-left: 4px solid #f44336;
  color: #c62828;
}

.success-icon,
.error-icon {
  font-size: 1.2rem;
}

/* Login Wrapper */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 500px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #718096;
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

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

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

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

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

.login-button,
.password-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

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

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

.login-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.info-section {
  margin-bottom: 1.5rem;
}

.info-section h3 {
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-section p {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Admin Wrapper */
.admin-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header {
  margin-bottom: 2rem;
}

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

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

/* Admin Matches */
.admin-matches {
  display: grid;
  gap: 2rem;
}

.admin-match-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.admin-match-card.future {
  border-color: #4caf50;
}

.admin-match-card.past {
  border-color: #9e9e9e;
}

.admin-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.match-date {
  color: #718096;
  font-size: 1rem;
}

.match-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.summary-item {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.summary-item.jdu {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.summary-item.nevim {
  background: rgba(255, 193, 7, 0.1);
  color: #f57c00;
}

.summary-item.nejdu {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

.summary-item.neodpovedeli {
  background: rgba(158, 158, 158, 0.1);
  color: #616161;
}

.response-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.response-group {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

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

.players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-badge.jdu {
  background: rgba(76, 175, 80, 0.2);
  color: #2e7d32;
}

.player-badge.nevim {
  background: rgba(255, 193, 7, 0.2);
  color: #f57c00;
}

.player-badge.nejdu {
  background: rgba(244, 67, 54, 0.2);
  color: #c62828;
}

.player-badge.neodpovedeli {
  background: rgba(158, 158, 158, 0.2);
  color: #616161;
}

.player-badge.neodpovedeli:hover {
  background: rgba(158, 158, 158, 0.3);
  transform: scale(1.05);
}

.match-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: #718096;
  font-size: 0.9rem;
}

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

/* Admin controls */
.admin-controls {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #f44336;
}

.delete-warning {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(244, 67, 54, 0.05);
  border-radius: 12px;
  border-left: 4px solid #f44336;
}

.delete-warning h3 {
  color: #c62828;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.delete-warning p {
  color: #d32f2f;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.delete-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.delete-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

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

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

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

  .admin-wrapper {
    padding: 1.5rem;
  }

  .login-card {
    padding: 2rem;
    margin: 0 1rem;
  }

  .admin-match-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-summary {
    justify-content: flex-start;
  }

  .response-groups {
    grid-template-columns: 1fr;
  }

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

  .header-nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .logo-icon img {
    width: 3rem;
    height: 2rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

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

  .login-card {
    padding: 1.5rem;
  }

  .nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .admin-match-card {
    padding: 1rem;
  }
}

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

.admin-match-card,
.login-card {
  animation: fadeIn 0.6s ease forwards;
}

/* Hover effects */
.admin-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Focus styles for accessibility */
.form-input:focus,
.login-button:focus,
.password-button:focus {
  outline: 2px solid #4caf50;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .modern-header,
  .nav-button {
    display: none;
  }

  .page-wrapper {
    background: white;
  }

  .admin-match-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    break-inside: avoid;
  }
}

/* Clickable player badges */
.player-badge.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-badge.clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Clickable player badges - rozšíření pro všechny typy */
.player-badge.jdu.clickable,
.player-badge.nevim.clickable,
.player-badge.nejdu.clickable,
.player-badge.neodpovedeli.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-badge.jdu.clickable:hover {
  background: rgba(76, 175, 80, 0.4);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.player-badge.nevim.clickable:hover {
  background: rgba(255, 193, 7, 0.4);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.player-badge.nejdu.clickable:hover {
  background: rgba(244, 67, 54, 0.4);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.player-badge.neodpovedeli.clickable:hover {
  background: rgba(158, 158, 158, 0.4);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d3748;
  font-size: 1.5rem;
  margin: 0;
}

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

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #718096;
  transition: color 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.modal-close:hover {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.close-icon {
  display: block;
}

.modal-body {
  margin-bottom: 1rem;
}

.player-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.player-info h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.player-info p {
  color: #718096;
  margin: 0;
}

.response-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.response-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.response-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.response-option.jdu {
  border-color: #4caf50;
  color: #2e7d32;
}

.response-option.jdu:hover {
  background: #4caf50;
  color: white;
}

.response-option.nevim {
  border-color: #ffc107;
  color: #f57c00;
}

.response-option.nevim:hover {
  background: #ffc107;
  color: white;
}

.response-option.nejdu {
  border-color: #f44336;
  color: #c62828;
}

.response-option.nejdu:hover {
  background: #f44336;
  color: white;
}

.response-option.current-response {
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
  background: rgba(76, 175, 80, 0.05);
}

.response-option.current-response::before {
  content: "✓ Aktuální odpověď";
  position: absolute;
  top: -10px;
  right: 10px;
  background: #4caf50;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.option-text {
  font-size: 1.1rem;
}

/* Responsive modal */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .response-option {
    padding: 1rem;
    font-size: 1rem;
  }

  .option-icon {
    font-size: 1.3rem;
  }

  .option-text {
    font-size: 1rem;
  }
}

/* Loading stav pro tlačítka */
.response-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.response-option:disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}
