* {
    font-family: "Montserrat", sans-serif;
}

body {
  background: linear-gradient(to bottom, #000000, #34c26fc9);
}

/* 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%;
}

/* === 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);
}


/* Hlavní sekce */
/* ===== HERO oblast (stejné rozvržení jako na sponzoři) ===== */
.spr-hero {
  position: relative;
  width: 100%;
  min-height: 80px;          /* výška hero, aby byl prostor pro pilulku */
  z-index: 0;                 /* pod navigací, ať se nav nikdy nedeformuje */
}

/* desktop pruh */
.spr-bar {
  position: absolute;
  top: 10px;
  left: 1rem;
  right: 1rem;
  width: 98%;
  height: 80px;
  display: flex;
  justify-content: center;    /* pilulka doprostřed */
  align-items: center;
  transform: skew(-3deg);
  z-index: 10;                 /* nad pozadím hero, pod navigací */
}

.spr-pill {
  background-color: rgba(80,124,91,0.58); /* stejně jako sponzoři */
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  padding: 18px 24px;
  width: 100%;
  max-width: 420px;           /* rozumná šířka jedné pilulky */
  border: 0;
}

/* mobilní pruh – jako na sponzoři */
.spr-bar--mobile { display: none; }

.spr-pill--mobile {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9em;
}

/* stejná mezera nad obsahem jako na sponzoři */
.admin-card {
  position: relative;
  margin-top: 50px;          /* desktop offset */
}



/* Bílé pozadí jen za vybrané nadpisy */

button {
  background: rgba(173, 173, 173, 0.719);
  color: #fff;            /* bílý text */
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: rgba(173, 173, 173, 0.719);
  transform: scale(1.05);
}

#insert-match {
  color: #fff;
}

/* Zarovnání formuláře pro zápasy */
#form-match {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;           /* mezera mezi bloky */
  max-width: 480px;
}

#form-match .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;              /* mezera mezi poli vedle sebe */
}

#form-match label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

#form-match input,
#form-match select {
  width: 100%;
  padding: .4rem .5rem;
  box-sizing: border-box;
  border: none;
  border-radius: 4px;
}

#form-match button {
  width: 100%;
  padding: .45rem;
  border: none;
  border-radius: 6px;
  background: #888;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}

#form-match button:hover {
  background: #6a6a6a;
}

/* === Uprava nadpisů (bílé písmo, průhledné pozadí) === */
h2 {
  background: transparent !important;
  color: white !important;
  font-size: 20px;
  font-weight: 500;
  padding: 0;               /* žádný podklad ani polštář */
  border-radius: 0;
  display: block;           /* aby se zarovnal nad formulářem */
  margin-bottom: 0.5em;
}

/* === Větší mezera mezi tlačítkem a sekcí "Přidat událost" === */
#form-match button {
  margin-bottom: 100px;     /* přesně 100px mezera */
}

hr {
  margin-top: 50px;
  margin-bottom: 50px;
  border: none;
  border-top: 1px solid white;
}


/* TABLETY */
@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; }
}


/* MOBILY */
@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; 
  }

  .spr-hero {
    position: relative;
    width: 100%;
    min-height: 100px;          /* výška hero, aby byl prostor pro pilulku */
    z-index: 0;                 /* pod navigací, ať se nav nikdy nedeformuje */
  }

  .spr-bar { display: none; }                 /* skryj desktop pilulku */
  .spr-bar--mobile {
    display: flex;
    justify-content: center;
    height: 50px;
    width: 90%;
    margin: 0 auto;
    transform: skew(-3deg);
  }
  .admin-card { margin-top: 20px; }           /* obsah přesně jako na sponzoři */

}