* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #09090b, #0f0f14);
  color: #f4f4f5;
}

/* ================= ZÁKLAD STRÁNKY ================= */
.clanok-stranka {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #09090b, #0f0f14);
  color: #f4f4f5;
  padding-top: 6rem;
}

/* ================= NAVBAR ================= */
/* ================= ROOT ================= */
:root {
  --primary-color: #34d399;
  --bg-dark: rgba(13, 13, 18, 0.95);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-main: #f3f4f6;
}

/* ================= HLAVIČKA - OSTROVČEK ================= */
.hlavicka {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1300px;
  z-index: 1000;
}

.hlavicka-obsah {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  justify-content: space-between;
  background: var(--bg-dark);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.6rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}
.logo img {
  height: 48px;
  border-radius: 50%;
}

/* Nav links */
.nav-links {
  display: flex !important;
  align-items: center;
  gap: 1.5rem; /* rovnomerné medzery medzi Recepty/Články/Discord */
}
.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s ease;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 1rem !important;
  padding: 0.5rem 1rem; /* štandardné pre Recepty/Články */
  text-decoration: none;
}
.nav-link:hover {
  color: var(--primary-color);
}

.discord-btn {
  background: #57A55C !important;
  color: #fff !important;
  padding: 0.625rem 1.375rem !important; /* 10px 22px */
  border-radius: 999px !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.025em;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin: 0 !important; /* odstráni VŠETKY marginy */
  border: none !important;
  box-shadow: 0 6px 18px rgba(87, 165, 92, 0.35);
  transition: all 0.15s ease;
  line-height: 1.2;
  box-sizing: border-box;
}

.discord-btn:hover {
  transform: translateY(-1px);
  background: #4d8f51 !important;
  box-shadow: 0 10px 30px rgba(87, 165, 92, 0.45);
}

/* Hamburger */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  z-index: 1002;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--primary-color);
  height: 3px;
  width: 28px;
  border-radius: 5px;
  position: relative;
  transition: all 0.3s ease;
}
.nav-toggle-label span::before {
  content: "";
  position: absolute;
  top: -8px;
}
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  top: 8px;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links {
    display: none !important; /* skrýva menu */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav-links.active { /* alebo ako máš class pre otvorené menu */
    display: flex !important;
  }
  
  .nav-toggle:checked ~ .nav-links {
    display: flex !important;
  }
  
  /* hamburger button */
  .nav-toggle-label {
    display: block;
  }
}
/* ================= ÚVOD ČLÁNKU ================= */
.uvod-clanku {
  max-width: 760px;
  margin: 3rem auto 2rem auto;
  padding: 0 2rem;
  text-align: center;
}

.uvod-clanku h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
}

.uvod-clanku .meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #71717a;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.uvod-clanku p {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #d4d4d8;
}

/* ================= BODY ČLÁNKU ================= */
.obsah-clanku {
  max-width: 760px;
  margin: auto;
  padding: 2rem;
}

.obsah-clanku h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #34d399;
}

.obsah-clanku p {
  margin-top: 1rem;
  line-height: 1.7;
  color: #a1a1aa;
}

.obsah-clanku li {
  margin-top: 1rem;
  line-height: 1.7;
  color: #a1a1aa;
}

#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #f4f4f5;
  border-radius: 2px;
  transition: 0.3s;
}

b {
  color: rgba(255, 255, 255, 0.722);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .navbar-clanok {
    flex-direction: column;
    gap: 0.6rem;
  }
  .uvod-clanku {
    padding: 0 1rem;
  }
  .obsah-clanku {
    padding: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .logo {
    display: block;
    margin-right: 14rem;
  }

  .logo img {
    display: none;
  }

  .popis {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #27272a;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

    padding: 2rem 0;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }

  .popis a {
    font-size: 1.1rem;
    margin: 0;
  }

  /* otvorenie menu */
  #menu-toggle:checked ~ .popis {
    transform: translateY(0);
  }

  /* animácia hamburgeru */
  #menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
 
  .stranka-clankov {
    padding-top: 6rem;
  }

  
  .hlavicka-obsah {
    justify-content: flex-end;
  }


}
