/* <================= CSS Reset =================> */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* color: white; */
  font-family: "Outfit", sans-serif;
}

body {
  line-height: 1.7;
  /* background-color: rgb(36, 80, 30); */
  /* min-height: 200vh; */
}

html {
  scroll-behavior: smooth;
}

::selection {
  color: white;
  background-color: var(--main-color);
}

/* <================= Scroll Bar =================> */
::-webkit-scrollbar {
  width: 10px;
  background-color: black;
}

::-webkit-scrollbar-thumb {
  background-color: #bfbfbf;
  border-radius: 10px;
}

/* <================= CSS Variables =================> */
:root {
  --font-large-color: rgb(0, 0, 0);
  --font-small-color: #9f9f9f;
  --main-color: #157735;
  --bg-color-1: #131416;
  --bg-color-2: #191a20;
}

h1 {
  font-size: 90px;
  color: var(--font-large-color);
}

h2 {
  font-size: 46px;
  color: var(--font-large-color);
}

h3 {
  font-size: 34px;
}

h4 {
  font-size: 30px;
}

h5 {
  font-size: 20px;
}

p,
span {
  font-size: 17px;
  color: #3b3b3b;
}
/* <================= Navbar =================> */
#navbar {
  height: 5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

#navbar.fixed {
  position: fixed;
  background-color: white;
}

#navbar .logo {
  width: 5rem;
  margin-left: 5rem;
  margin-top: 0.4rem;
  z-index: 5;
}

#navbar .logo img {
  width: 90%;
}

#navbar .nav-items {
  display: flex;
  align-items: center;
  list-style: none;
  margin-right: 5rem;
}

#navbar .nav-items li {
  margin: 0 1rem;
}

#navbar .nav-items li a {
  position: relative;
  text-decoration: none;
  color: #3b3b3b;
  font-size: 17px;
  cursor: pointer;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
}

#navbar .nav-items li a::after {
  content: "";
  position: absolute;
  background-color: #157735;
  height: 3px;
  width: 0;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

#navbar .nav-items li a:hover {
  color: #157735;
}

#navbar .nav-items li a:hover::after {
  width: 100%;
}

#navbar .nav-items .dropdown {
  position: relative;
  display: inline-block;
}

#navbar .nav-items li {
  list-style-type: none;
}

#navbar .nav-items .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 170px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2s);
  padding: 12px 0;
  z-index: 1;
  margin-top: 1px;
}

#navbar .nav-items .dropdown-content li:not(:last-child) {
  margin-bottom: 10px;
}

#navbar .nav-items .dropdown:hover .dropdown-content {
  display: block;
}

.text-holder {
  z-index: 2;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 120px;
}
.text-holder h1 {
  font-weight: 600;
  text-align: center;
}

.text-holder h1 span {
  font-size: 90px;
  color: var(--main-color);
}

/* Grid kontejner */
.hraci {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 120px;
  margin-bottom: 120px;
}

.hrac-card {
  display: flex;
  align-items: center;
  background: #f3f3f3;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.25s ease;
}

.hrac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

/* SVG dres */
.hrac-card .dres-svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-right: 16px;
}

/* Info vpravo */
.hrac-card .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Jméno */
.hrac-card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 3px;
}

/* Pozice */
.hrac-card .pozice {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* Mobilní úpravy */
@media (max-width: 450px) {
  .hrac-card {
    padding: 10px 14px;
  }
  .hrac-card h3 {
    font-size: 1.4rem;
  }
  .hrac-card .dres-svg {
    width: 60px;
    height: 60px;
    margin-right: 12px;
  }
}

/* --- LOGIN TLAČÍTKO (Nepřihlášený) --- */
.nav-login-btn {
  background-color: var(--main-color);
  color: white !important;
  padding: 10px 22px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0 !important; /* Zrušení tvého globálního marginu */
}

.nav-login-btn:hover {
  background-color: #0f5a27;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(21, 119, 53, 0.3);
}

/* --- PROFILOVÁ ČÁST (Přihlášený) --- */
.user-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 5px 0;
  transition: 0.3s;
}

.user-nav-wrapper:hover span {
  color: var(--main-color);
}

.nav-pfp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--main-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-nav-wrapper span {
  font-weight: 700;
  font-size: 16px;
  color: #3b3b3b;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Dropdown šipka */
.user-nav-wrapper span::after {
  content: "\f107"; /* FontAwesome šipka dolů */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
}

/* Responzivita pro mobilní menu (950px) */
@media (max-width: 950px) {
  .nav-login-btn {
    margin-top: 15px !important;
  }
  .user-nav-wrapper span {
    color: #bdbdbd;
  }
  .user-nav-wrapper {
    margin-top: 10px;
  }
}

/* <================= Responsive =================> */

/* Hamburger */
#navbar .checkbox {
  position: absolute;
  width: 32px;
  height: 26px;
  right: 2.5rem;
  opacity: 0;
  display: none;
}

.hamburger-lines {
  position: absolute;
  width: 32px;
  height: 26px;
  right: 2.5rem;
  pointer-events: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  display: none;
}

.hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border: 10px;
  background-color: #3b3b3b;
}

.hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.hamburger-lines .line2 {
  transition: transform 0.2s ease-in-out;
}

.hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scale(0);
}

input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

@media (max-width: 1050px) {
  body {
    overflow-x: hidden;
  }
  #kontakty .sub-heading {
    max-width: 45rem;
  }
  .contacts-desktop {
    display: none;
  }
  .contacts-phone {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-content: center;
    margin-left: -100px;
    gap: 20px;
  }

  #aktuality .textovy p {
    font-size: 20px;
  }

  #aktuality .textovy img {
    height: 150px;
  }
}

@media (max-width: 950px) {
  html,
  body {
    overflow-x: hidden;
  }

  #navbar .nav-items {
    position: fixed;
    align-items: start;
    flex-direction: column;
    gap: 20px;
    top: 0;
    left: -100%;
    background-color: #131416;
    width: 300px;
    height: 100%;
    padding-top: 8rem;
    padding-left: 2rem;
    transition: all 0.5s ease-in-out;
  }

  #navbar .nav-items .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 170px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2s);
    padding: 12px 0;
    z-index: 1;
    margin-top: 1px;
    right: 5px;
    top: -14px;
  }

  #navbar .nav-items li a {
    color: #bdbdbd;
  }

  #navbar .nav-items .dropdown-text {
    color: #131416;
  }

  input[type="checkbox"]:checked ~ .nav-items {
    left: 0% !important;
  }

  #navbar .checkbox {
    display: block;
  }

  .hamburger-lines {
    display: flex;
  }

  #navbar .logo {
    margin-left: 1.5rem;
  }

  /* #mladez .cards-hd {
        display: none;
    }

    #mladez .cards-fhd {
        display: flex;
        flex-wrap: wrap;
    } */
}

@media (max-width: 850px) {
  #navbar .checkbox {
    right: 2.5rem;
  }
}
