html {
  scroll-behavior: smooth;
}

body {
  background-color: #0d0d0d;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

main.content {
  padding-top: 80px; /* nebo více podle výšky menu */
  margin-top: -10%;
}

.menu-toggle {
  display: none;
  background-color: #111; /* pro jistotu */
  padding: 0.3rem 0.8rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  margin-right: 2.5rem;  /* přidáme trochu prostoru od kraje */
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.shrink {
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.nav-links {
  display: flex;
  gap: 2.5rem; /* Větší mezery mezi odkazy */
  margin-left: 9rem; /* Přiblížení k logu */
}

.nav-links li {
  list-style: none;
  padding: 5px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ff8800;
}

.logo-img {
  height: 50px;
  transition: height 0.3s ease;
}

.navbar.shrink {
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.navbar.shrink .logo-img {
  height: 42px;
}

nav {
  position: relative; /* nebo fixed, pokud je nahoře pořád */
  z-index: 1000; /* vysoké číslo zajistí, že bude navrchu */
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  background-color: #222;
  padding: 0.5rem 0;
  list-style: none;
  border-radius: 5px;
}

.dropdown-content li a {
  padding: 0.5rem 1rem;
  display: block;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.players-box {
  background: rgba(255, 215, 0, 0.1); /* zlatavé průhledné pozadí */
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ff8800;
  font-weight: 500;
  font-size: 16px;
  display: inline-block;
  transition: all 0.3s ease;
  margin-right: 6rem;
}

.players-box:hover {
  box-shadow: 0 10px 14px rgba(107, 66, 11, 0.2);
  background: rgba(255, 145, 0, 0.15);
}


.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background-color: #4b4b4b; /* tmavě šedé pozadí */
  color: #ffffff;            /* bílé písmo */
  transition: transform 0.2s ease, background-color 0.3s ease;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hover efekt – lehké zesvětlení + zvýraznění */
.btn:hover {
  background-color: #5c5c5c;
  transform: translateY(-2px);
}

/* Kliknutí – animace stisknutí dolů */
.btn:active {
  transform: scale(0.95);
}

/* Aktivní stav – zvýraznění pomocí jemné modré */
.btn.active {
  background-color: #f38d3a;
  color: #ffffff;
}


.section-options {
  padding: 100px 20px 60px; /* větší horní mezera */
  background-color: transparent; /* přebírá barvu pozadí stránky */
  text-align: center;
}

.section-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.nadpis {
  font-size: 3.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.neutral-intro {
  font-size: 1rem;
  color: #f0f0f0;
  background-color: #2f2f2f9d;
  padding: 1.2rem 1.6rem;
  border-radius: 10px;
  text-align: center;
  margin: 1.5rem auto 2rem;
  max-width: 800px;
  line-height: 1.6;
}

.neutral-intro2 {
  font-size: 1rem;
  color: #f0f0f0b4;
  background-color: #2f2f2f38;
  padding: 1.2rem 1.6rem;
  border-radius: 10px;
  text-align: left;
  margin: 1.5rem auto 2rem;
  max-width: 800px;
  line-height: 1.6;
}

.neutral-subheading {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border-bottom: 1px solid #555;
  padding-bottom: 0.3rem;
}

.center {
  text-align: center;
  display: block;
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: 28px;
  color: #e79141;
  margin-bottom: 30px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.job-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px; /* tak, aby se vešly 3 karty */
  margin: 0 auto;
  margin-bottom: 2rem;
}

.card {
  background-color: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card-header {
  padding: 40px;
  text-align: center;
  font-size: 48px;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-body h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.badge.difficulty {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 9999px;
  background-color: #f59e0b;
  color: white;
  align-self: flex-start;
}

.badge.easy {
  background-color: #10b981;
}

.desc {
  color: #e2e8f0;
  font-size: 14px;
}

.info-btn {
  margin-top: auto;
  padding: 10px;
  text-align: center;
  background-color: #3b82f6;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.info-btn:hover {
  background-color: #2563eb;
}

.cards-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 40px 20px;
}

.job-card {
  background-color: #1a1f2b;
  border-radius: 12px;
  width: 380px;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
}

.job-card.highlight {
  border: 2px solid #facc15; /* zlatý rámeček */
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.5);
  position: relative;
}

.job-card.highlight::before {
  content: "★ Nejvyužívanější  brigáda";
  position: absolute;
  top: 10px;
  left: 10px;
  background: #facc15;
  color: #1a1f2b;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 8px;
}

.image-wrapper {
  height: 150px;
  background-color: #2c2f3f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #fff;
}

.salary {
  color: #22c55e;
  font-weight: bold;
  margin: 5px 0 10px;
}

.card-content p {
  color: #cbd5e1;
  margin: 0 0 12px;
  font-size: 15px;
}

.info-btn {
  margin-top: auto;
  text-align: center;
  background-color: #2563eb;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.info-btn:hover {
  background-color: #1e40af;
}

.difficulty {
  font-size: 12px;
  color: white;
  background-color: gray;
  padding: 4px 8px;
  border-radius: 12px;
  align-self: flex-start;
  margin-bottom: 5px;
}

.difficulty.low {
  background-color: #10b981;
}

.difficulty.medium {
  background-color: #f59e0b;
}

.difficulty.high {
  background-color: #ef4444;
}

.description {
  flex: 1;
  color: #222;
}

.description h2 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: 700;
}

.description ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.description ul li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  padding-left: 26px;
  color: #444;
}

.description ul li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  line-height: 1;
}

.description p {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  display: none; /* Bude zobrazeno přes JS */
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Modal container */
.modal-content {
  position: relative;
  background: #1f1f1fc0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  max-width: 1000px;
  max-height: 90vh;
  width: 100%;
  height: 650px;
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Scrollable area */
.modal-scroll {
  overflow-y: auto;
  max-height: 90vh;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: orange #2e2e2e;
}
.modal-scroll::-webkit-scrollbar {
  width: 10px;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background-color: orange;
  border-radius: 8px;
}
.modal-scroll::-webkit-scrollbar-track {
  background: #2e2e2e;
  border-radius: 8px;
}

.modal-scroll p {
  text-align: center;
  color: #ddd;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Nadpisy */
.modal-scroll h1,
.modal-scroll h2,
.modal-scroll h3,
.modal-scroll h4 {
  font-weight: bold;
  line-height: 1.3;
  margin: 24px 0 12px;
  color: #fff;
  background: linear-gradient(to right, orange, #ffce6f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-scroll h1 { font-size: 32px; }
.modal-scroll h2 { font-size: 28px; }
.modal-scroll h3 { font-size: 24px; }
.modal-scroll h4 { font-size: 20px; }

/* Seznamy */
.modal-scroll ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.modal-scroll li {
  color: #ccc;
  font-size: 15.5px;
  margin-bottom: 8px;
  list-style-type: disc;
}

/* Emoji-friendly mezery a zarovnání */
.modal-scroll li,
.modal-scroll p {
  word-break: break-word;
}


.modal-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.modal-row-text {

  flex: 1;
  color: #ddd;
  font-size: 15.5px;
  line-height: 1.55;
}

.modal-row-image {
  flex-shrink: 0;
  width: 240px;
}

.modal-row-image img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #444;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Responsivita */
@media (max-width: 768px) {
  .modal-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-row-image {
    width: 100%;
  }
}


/* Close button */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 10px;
  font-size: 30px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #ff6666;
}

/* Responsive */
@media (max-width: 850px) {
  .modal-scroll {
    flex-direction: column;
  }

  .modal-image-gallery {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
  }

  .modal-image-gallery img {
    width: 32%;
    max-height: 100px;
  }
}

@media (max-width: 768px) {
  .modal-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-row-image {
    width: 100%;
  }
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.96);}
  to {opacity: 1; transform: scale(1);}
}
.footer {
  position: relative;  /* nebo fixed, pokud chceš footer stále vidět */
  z-index: 10;        /* vyšší index, aby byl nad canvas */
  background-color: #111;
  color: #ccc;
  padding: 3rem 2rem 1rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h3 {
  color: orange;
  margin-bottom: 1rem;
}

.footer-column p {
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
}

.footer-column a:hover {
  color: orange;
}

.social-icons a {
  margin-right: 0.8rem;
  display: inline-block;
}

.social-icons img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(0.6);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

@media (max-width: 600px) {
  .server-stats {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 1200px) {
  .job-cards {
    max-width: 100%;
    justify-content: center;
  }
  .job-card {
    width: 100%;
    max-width: 380px;
  }
}

@media (max-width: 600px) {
  .job-cards {
    flex-direction: column;
    align-items: center;
  }
  .job-card {
    width: 90%;
    max-width: none;
  }
}

/* Responzivní navigace */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .login-button {
    display: none;
  }

  .login-mobile {
    display: block;
    padding-top: 0.5rem;
  }
}

@media (min-width: 769px) {
  .login-mobile {
    display: none;
  }
}