/* Základní styly a reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

h1, h2, h3 {
  margin-bottom: 20px;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Úvodní sekce - Hero */
.hero-section {
  position: relative;
  height: 70vh;
  background-image: url(obrazky/blog-thumb1.jpg); /* Změň za svůj obrázek */
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-attachment: fixed;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.10); /* Tmavý překryv pro lepší čitelnost */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.btn-primary {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 25px;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
  background-color: #fff;
  color: #333;
}

/* Sekce "O klubu" */
.about-section {
  background-color: #f7f7f7;
  padding: 80px 20px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .about-container {
      flex-direction: row;
      justify-content: space-between;
      gap: 50px;
  }

  .about-image {
      flex: 1;
  }
  .about-text {
      flex: 1;
      text-align: left;
  }
}

.about-text h2 {
  font-size: 2.5rem;
  margin-top: 0;
}

.btn-secondary {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #333;
  padding: 12px 25px;
  font-weight: 700;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background-color: #ddd;
}

/* Sekce "Naši trenéři" */
.trainers-section {
  text-align: center;
  padding: 80px 20px;
}

.trainers-section h2 {
  font-size: 2.5rem;
}

.trainers-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.trainer-card {
  flex-basis: 100%;
  max-width: 350px;
  text-align: center;
  margin-bottom: 20px;
}

.trainer-card img {
  border-radius: 5px;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .trainer-card {
      flex-basis: calc(33.333% - 20px);
  }
}

/* Sekce "Přihlášení" */
.login-section {
  background-color: purple;
  background-image: url('https://via.placeholder.com/1920x1080.png?text=Pozadí+pro+přihlášení'); /* Změň za svůj obrázek */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.login-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(62, 53, 65, 0.7); /* Tmavý překryv */
}

.login-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.login-form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-form button {
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 15px 40px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.login-form button:hover {
  background-color: #fff;
  color: #333;
}

/* Sekce - Patička (Footer) */
footer {
  background-color: purple;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}


/* Styly pro vyskakovací okno (modal) */
.modal-overlay {
    /* Skrýt okno a pozadí */
    display: none; 
    position: fixed;
    z-index: 1000; /* Ujistí se, že je nad vším ostatním */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Tmavé, průhledné pozadí */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out; /* Přidání animace */
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    margin: 20px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

.modal-button {
    background-color: #333;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.modal-button:hover {
    background-color: #555;
}

/* Animace */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}