* {
    font-family: "Montserrat", sans-serif;
}

body {
  background-color: #000;
}

/* Navigace */

.Habet-logo {
    padding-left: 80px;
}

nav {
    margin-left: 1rem;
    margin-right: 1rem;
    display: flex;
    justify-content: space-between;
}

.Navigace ul {
    display: flex;
    list-style: none;
}

.Navigace ul li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid white;
}

.Navigace ul a {
    text-decoration: none;
    color: #ffffff;
    text-transform: uppercase;
}

.Navigace ul li:hover {
  display: inline-block;
}

.Navigace ul li:after {
  content: '';
  width: 0px;
  height: 1px;
  display: block;
  background: #ffffff;
  transition: 300ms;
}

.Navigace ul li:hover:after {
  width: 100%;
}

/* Hlavní sekce */
.hero {
  background-image: url('img/background/03_statistiky.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain; /* ZACHOVÁ CELÝ OBRÁZEK */
  background-color: black; /* pro případ, že obrázek nezabere celou plochu */
  height: 100vh; /* nebo více – viz níže */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  background-size: cover; /* vyplní šířku a výšku */
  gap: 20px; /* mezera mezi tabulkami */
  flex-wrap: wrap; /* ✅ aby na mobilech šly pod sebe */
  padding-top: 120px; /* aby se nevešly pod navigaci */
}


.hero img {
    width: 100%;
}

.season-bar {
    position: absolute; /* ✅ nad tabulkou a nad obrázkem */
    top: 120px;          /* posun pod navigaci, uprav podle potřeby */
    left: 1rem;
    right: 1rem;
    width: 98%;
    height: 80px;
    background-color: #507c5b93; /* pruh s průhledností */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* aby byl nad obsahem */
    transform: skew(-3deg); /* Zkosení doprava */
    text-align: center;
}


/* Menu pro volbu sezony */

.season-selector {
    position: relative;
    display: inline-block;
}

.season-button {
    background-color: transparent;
    border: none;
    color: #fff;
    height: 80px; /* ✅ vyplní výšku pruhu */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 400px;
}

.season-button:hover {
    background-color: rgba(106, 204, 136, 0.76);
}

.season-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 50%;
    background-color: rgba(30, 30, 30, 0.95);;
    min-width: 110px;
    width: auto;          /* šířka podle obsahu */
    z-index: 10;
    opacity: 0;
    transform: translateX(-50%) translateY(10px); /* posun zpět na střed + dolů */
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: right;
    flex-direction: column-reverse; /* obrátí pořadí položek */
    display: none;          /* ⬅️ místo původního display:flex */
    pointer-events: none;   /* ⬅️ ať nechytá kliky, když je skryté */
}

.season-menu.show {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* jen svislý posun při otevření */
    pointer-events: auto;   /* ⬅️ znovu povolit kliky */
}

.season-menu li {
    padding: 10px 16px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.season-menu li:hover {
    background-color: #81d19e;
    color: #000;
}


/* Tabulka hráčů */
.statistiky-tabulka {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  padding: 1em;                /* zachováno */
  margin: 1em auto;            /* centrování */
  margin-top: 5px;
  width: 48%; /* každá zabere cca polovinu */
  max-width: 880px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;      /* pro responsivní padding */
}

.statistiky-tabulka table {
  width: 100%;
  border-collapse: collapse;
}

.statistiky-tabulka th,
.statistiky-tabulka td {
  border-bottom: 1px solid white;
  padding: 0.75em;
  text-align: center;
}

.statistiky-tabulka thead th {
  font-size: 1.1em;
  text-transform: uppercase;
  border-bottom: 2px solid white;
}

th {
  cursor: pointer;
}

/* Sloupce - nové rozměry */
.statistiky-tabulka table th:nth-child(1),
.statistiky-tabulka table td:nth-child(1) {
  width: 17%;  /* Číslo dresu */
}

.statistiky-tabulka table th:nth-child(2),
.statistiky-tabulka table td:nth-child(2) {
  width: 20%;  /* Jméno */
  text-align: left;
}

.statistiky-tabulka table th:nth-child(3),
.statistiky-tabulka table td:nth-child(3),
.statistiky-tabulka table th:nth-child(4),
.statistiky-tabulka table td:nth-child(4) {
  width: 10%;  /* Zápasy a Góly */
}

.statistiky-tabulka table td:nth-child(5) {
  width: 20%;  /* Průměr */
}


/* Tabulky týmů */

.statistiky-tabulka-teams {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  padding: 1em;                /* zachováno */
  margin: 1em auto;            /* centrování */
  margin-top: 5px;
  width: 48%; /* každá zabere cca polovinu */
  max-width: 880px;
  backdrop-filter: blur(5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;      /* pro responsivní padding */
}

.statistiky-tabulka-teams table {
  width: 100%;
  border-collapse: collapse;
}

.statistiky-tabulka-teams th,
.statistiky-tabulka-teams td {
  border-bottom: 1px solid white;
  padding: 0.3em;
  text-align: center;
}

.statistiky-tabulka-teams thead th {
  font-size: 1.1em;
  text-transform: uppercase;
  border-bottom: 2px solid white;
}

th {
  cursor: pointer;
}

/* Obrázek loga */
.team-logo {
  width: auto;
  height: 35px;
  object-fit: contain;
}

/* Tabulka týmů JARO 2025*/
#teams-2025_01 table th:nth-child(1),
#teams-2025_01 table td:nth-child(1) {
  width: 6%; /* Pořadí */
}

#teams-2025_01 table th:nth-child(2),
#teams-2025_01 table td:nth-child(2) {
  width: 5%; /* Logo */
}

#teams-2025_01 table th:nth-child(3),
#teams-2025_01 table td:nth-child(3) {
  width: 20%; /* Tým */
  text-align: left;
}

#teams-2025_01 table th:nth-child(4),
#teams-2025_01 table td:nth-child(4),
#teams-2025_01 table th:nth-child(5),
#teams-2025_01 table td:nth-child(5),
#teams-2025_01 table th:nth-child(6),
#teams-2025_01 table td:nth-child(6),
#teams-2025_01 table th:nth-child(7),
#teams-2025_01 table td:nth-child(7) {
  width: 7%;
}

#teams-2025_01 table th:nth-child(8),
#teams-2025_01 table td:nth-child(8) {
  width: 15%; /* Skóre */
}

#teams-2025_01 table th:nth-child(9),
#teams-2025_01 table td:nth-child(9) {
  width: 8%; /* Body */
}

/* Tabulka týmů PODZIM 2024*/
#teams-2024_02 table th:nth-child(1),
#teams-2024_02 table td:nth-child(1) {
  width: 6%; /* Pořadí */
}

#teams-2024_02 table th:nth-child(2),
#teams-2024_02 table td:nth-child(2) {
  width: 5%; /* Logo */
}

#teams-2024_02 table th:nth-child(3),
#teams-2024_02 table td:nth-child(3) {
  width: 20%; /* Tým */
  text-align: left;
}

#teams-2024_02 table th:nth-child(4),
#teams-2024_02 table td:nth-child(4),
#teams-2024_02 table th:nth-child(5),
#teams-2024_02 table td:nth-child(5),
#teams-2024_02 table th:nth-child(6),
#teams-2024_02 table td:nth-child(6),
#teams-2024_02 table th:nth-child(7),
#teams-2024_02 table td:nth-child(7) {
  width: 7%;
}

#teams-2024_02 table th:nth-child(8),
#teams-2024_02 table td:nth-child(8) {
  width: 15%; /* Skóre */
}

#teams-2024_02 table th:nth-child(9),
#teams-2024_02 table td:nth-child(9) {
  width: 8%; /* Body */
}

/* Tabulka týmů JARO 2024*/
#teams-2024_01 table th:nth-child(1),
#teams-2024_01 table td:nth-child(1) {
  width: 6%; /* Pořadí */
}

#teams-2024_01 table th:nth-child(2),
#teams-2024_01 table td:nth-child(2) {
  width: 5%; /* Logo */
}

#teams-2024_01 table th:nth-child(3),
#teams-2024_01 table td:nth-child(3) {
  width: 20%; /* Tým */
  text-align: left;
}

#teams-2024_01 table th:nth-child(4),
#teams-2024_01 table td:nth-child(4),
#teams-2024_01 table th:nth-child(5),
#teams-2024_01 table td:nth-child(5),
#teams-2024_01 table th:nth-child(6),
#teams-2024_01 table td:nth-child(6),
#teams-2024_01 table th:nth-child(7),
#teams-2024_01 table td:nth-child(7) {
  width: 7%;
}

#teams-2024_01 table th:nth-child(8),
#teams-2024_01 table td:nth-child(8) {
  width: 15%; /* Skóre */
}

#teams-2024_01 table th:nth-child(9),
#teams-2024_01 table td:nth-child(9) {
  width: 8%; /* Body */
}

/* === HAMBURGER IKONA === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.season-dropdown {
    position: relative;
    display: inline-block;
    margin: 10px;
    margin-left: 5%;

}

.dropdown-btn {
    background: none;        /* žádné pozadí */
    border: none;           /* odstranění rámečku */
    color: white;           /* barva textu */
    font-size: 1.2rem;      /* přizpůsob velikost */
    cursor: pointer;        /* stále funguje jako tlačítko */
    font-weight: bold;      /* volitelně tučné písmo */
    padding: 0;             /* odstraníme výplně */
    align-items: center;
    gap: 20px; /* mezera mezi ikonou a textem */
}


.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2b2b2b;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 999;
    text-align: right;
}

.dropdown-content a {
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #17a74773;
}

.show { display: block; }

/* --- Klikatelné názvy týmů v tabulce PODZIM 2025 --- */
.statistiky-tabulka-teams a.team-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  cursor: pointer;
}

.statistiky-tabulka-teams a.team-link:hover {
  color: #00ff88; /* stejná zelená jako na homepage */
  text-decoration: underline;
}

/* Zvýraznění řádku Habet Praha FŇ */
.habet-row td {
  font-weight: bold;
}



@media (max-width: 900px) {
    .hamburger { display: flex; }
    .Navigace ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 220px;
        background-color: #000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0 10px 0;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.5);
    }
    .Navigace ul.show { right: 0; }
    .Navigace ul li { padding: 1rem; width: 100%; text-align: center; }
    .Navigace ul li a { color: white; font-size: 18px; }
}

@media (max-width: 500px) {
  
  body {
    background: linear-gradient(to bottom, #000000, #34c26fc9);
}

/* Navigace - hamburger menu */
  .hamburger {
    transform: scale(0.8);
  }

  #nav-menu li a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .Navigace ul li {
    border-bottom: 1px solid white;
    margin: 0 auto;
    width: calc(100% - 20px);
  }

    .Habet-logo {
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

  .Habet-logo img {
    width: 70px !important;
    height: auto !important;
    margin-left: 20px;
    text-align: center !important;
    justify-content: center;   /* ✅ zarovnání na střed vodorovně */
    align-items: center; 
  }

  .hero {
    flex-direction: column;
    gap: 10px; /* menší mezera mezi tabulkami */
    padding: 100px 10px 20px 10px;
    align-items: stretch;
    background: transparent;
    min-height: 90vh; /* zabere alespoň celou výšku okna, ale i víc, pokud je potřeba */
    height: auto;       /* výška podle obsahu */
  }

  .statistiky-tabulka,
  .statistiky-tabulka-teams {
    width: 100% !important;              /* plná šířka */
    max-width: none;
    font-size: 0.8em;
    padding: 0.5em;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .statistiky-tabulka th,
  .statistiky-tabulka td,
  .statistiky-tabulka-teams th,
  .statistiky-tabulka-teams td {
    padding: 0.3em;
    font-size: 0.75em;
    border-bottom: 0.2px solid white;
  }

  .team-logo {
    width: 14px;
    height: 14px;
  }

  .statistiky-tabulka thead th,
  .statistiky-tabulka-teams thead th {
    font-size: 0.6em !important;
    padding: 0.2em !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid white;
}

.season-bar {
  width: 88%;
  height: 50px !important;
  top: 110px !important;              /* sníží pozici pod navigací */
  font-size: 0.8em !important;
  padding: 0 10px !important;
  transform: skew(-2deg);
  display: flex;
  justify-content: center;
  align-items: center; /* ✅ zarovná tlačítko vertikálně doprostřed */
}

    .season-selector {
    width: 50%;
    font-size: 0.8em !important;
    padding: 4px 10px !important;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    }

    .season-dropdown {
    font-size: 0.8em !important;
    }

    #selected-season {
    top: 110px;
    font-size: 1.2em;
    padding: 0 10px !important;
    }
    
    .season-button {
    top: 110px !important;
    width: 90%;
    height: 30px;
    padding: 0 10px !important;
    }
}
