@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
  position: relative;
  background-image: url('/images/zabavny_kviz_pozadi.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: #f3f4f6;

  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  color: #222; /* tmavší text */
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

#reservations-container {
  max-width: 320px;
  width: 100%;
}

header h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #14b8a6;
  margin: 0 0 20px 0;
  text-align: center;
  cursor: default;
}

header p {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #374151;
  max-width: 100%;
  margin: 0 auto 1.5rem auto;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;

  background: linear-gradient(90deg, #14b8a6 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: default;

  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.privacy-text {
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #555;
  cursor: default;
}

.tile {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: default;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 220px;
}

.tile:hover,
.tile:focus-within {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  outline: none;
}

.tile .pub-name {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  word-break: break-word;
}

.tile .line {
  color: #555;
  margin-bottom: 4px;
  font-size: 1rem;
  word-break: break-word;
}

.btn-reserve {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  white-space: nowrap;
}

.btn-reserve.green {
  background-color: #4caf50;
  color: white;
}
.btn-reserve.green:hover,
.btn-reserve.green:focus {
  background-color: #3a9e3a;
  outline: none;
}

.btn-reserve.yellow {
  background-color: #ffeb3b;
  color: black;
}
.btn-reserve.yellow:hover,
.btn-reserve.yellow:focus {
  background-color: #e6d934;
  outline: none;
}

.btn-reserve.orange {
  background-color: #ff9800;
  color: white;
}
.btn-reserve.orange:hover,
.btn-reserve.orange:focus {
  background-color: #db7d00;
  outline: none;
}

.btn-reserve.red {
  background-color: #f44336;
  color: white;
}
.btn-reserve.red:hover,
.btn-reserve.red:focus {
  background-color: #c53028;
  outline: none;
}

.loading {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  padding: 30px 0;
}

.error-message {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #f87171;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Modal styl */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 10000;
}

.modal h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  cursor: default;
}

.modal label {
  display: block;
  margin: 1rem 0 0.3rem;
  font-weight: 600;
}

.modal input,
.modal textarea,
.modal select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.modal-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* Mobilní přizpůsobení */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  #reservations-container {
    max-width: 100%;
  }
  
  header p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
  }

  .tile {
    padding: 15px;
    min-height: 200px;
  }

  .tile .pub-name {
    font-size: 1.1rem;
  }

  .tile .line {
    font-size: 0.9rem;
  }

  .btn-reserve {
    font-size: 1.1rem;
    padding: 14px 16px;
    white-space: normal;
    width: 50%;
    text-align: center;
  }

  /* Modální okno na mobilu */
  .modal {
    max-width: 95%;
    padding: 1.5rem;
    border-radius: 12px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal button {
    width: 100%;
    padding: 14px 0;
    font-size: 1.1rem;
  }
}
