/* =========================
   HEADER – wrapper
   ========================= */
header {
  position: relative;
}
.site-header {
    /* margin-top:10px; */
  position: sticky;
  /* position: fixed; */
  top: 0px;
  left: 0;
  width: 100%;
  height: 72px;

  background: #ffffff90;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  z-index: 1000;

  transform: translateY(0);
  transition: transform 0.35s ease;
}

/* Header ukryty (np. przy scrollu) */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* =========================
   HEADER – inner container
   ========================= */
.header__inner {
/* border-radius: 50px; */
  max-width: var(--container-width);
  height: 100%;
    /* background-color: #ffffff; */
  margin: 0 auto;
  padding: 0 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media(min-width:1024px){
  .header__inner{padding:0 32px;}
}

/* =========================
   LOGO
   ========================= */
.logo{
    text-decoration: none;
    color:black;
    font-weight: bold;
    font-size: 29px;
}
.logo span{display:none !important;}
@media(min-width:1024px){.logo span{display:block !important;}}
.custom-logo-link, .logo {
    width: 100%;
    max-width:200px;
}
.custom-logo-link img, .logo img{width: 100%; height: auto;}

.header__inner .flex{
  display:inline-flex;
  gap:10px;
}

.secondary-color-logo .flex .bg-accent{background: var(--color-secondary);}
.secondary-color-logo .flex .text-accent-foreground{color: var(--color-brand);}
.brand-color-logo .flex .bg-accent{background: var(--color-brand);}
.brand-color-logo .flex .text-accent-foreground{color: var(--color-secondary);}


.w-8, .header__inner .flex .w-8{
  width:3rem;
  height:3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  border-radius:10px;
}
.header__inner .flex .w-4{
  width:1.5rem;
  height:1.5rem;
}

.header__inner .flex .text-lg{
  display:flex;
  align-items: center;
    justify-content: center;
}

/* =========================
   MENU
   ========================= */
/* Kolor przy hover - i na samym linku, i gdy mysz jest na dropdownie */
header .menu > li > a {
  color: inherit;
  transition: color 0.15s ease;
}

header .menu > li:hover > a,
header .menu > li:focus-within > a {
  color: var(--color-brand) !important;
}
/* do usuniecia */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-white, #fff);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 24px 48px rgba(0,0,0,0.10);
  z-index: 999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.menu > li:hover .mega-dropdown,
.menu > li:focus-within .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
.menu > li {
  position: static;
}

.desktop-nav .menu-item{
	height:100%;
	display:flex;
	align-items:center;
	padding:0 20px;
}

.mega-dropdown__inner {
  max-width: var(--container-width, 1260px);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.mega-dropdown__posts {
  flex: 1;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

.mega-dropdown__post {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-dark, #111);
  padding: 10px 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.mega-dropdown__post:hover {
  background: #f5f6f8;
}

.mega-dropdown__post img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mega-dropdown__post span {
  font-size: 14px;
  line-height: 1.35;
}

.mega-dropdown__tags {
  width: 240px;
  flex-shrink: 0;
  border-left: 1px solid #eef0f3;
  padding-left: 32px;
}

.mega-dropdown__tags-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aa4b2;
  margin-bottom: 14px;
}

.mega-dropdown__tags {
  width: 100%;
	max-width:600px;
  flex-shrink: 0;
  border-left: 1px solid #eef0f3;
  padding-left: 32px;
}

.mega-dropdown__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--color-dark, #111);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tag-pill:hover {
  background: var(--color-secondary, #111);
  color: #fff;
  border-color: var(--color-secondary, #111);
}
/* Do usuniecia */

header .menu {
  display: flex;
  /* gap: 2rem; */
	align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
	height:100%;
}

/* Linki w menu */
header .menu a {
  position: relative;

  font-weight: 500;
  text-decoration: none;
  color: inherit;
}

/* Podkreślenie hover */
/* header .menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 2px;
  background: currentColor;

  transition: width 0.25s ease;
}

header .menu a:hover::after {
  width: 100%;
} */

body.menu-open .site-header {
  transform: translateY(-100%);
}


.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: #000;
  display: block;
}

/* mobile menu */
.mobile-nav__header {
  margin-bottom: 2rem;
}

.mobile-nav__header .flex{
  display: flex;
    align-items: center;
    gap: 10px;
}


.mobile-logo {
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: inherit;
}


.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 80%;
  max-width: 320px;

  background: #fff;
  z-index: 999;

  transform: translateX(-100%);
  transition: transform 0.35s ease;

  padding: 2rem 1.5rem;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 1.5rem;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}
/* overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 998;
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* breakpoint */
@media (max-width: 900px) {

  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

}

@media(min-width:901px){
	.desktop-nav{
	    height: 100%;
    display: flex;
    align-items: center;
}
}

/* === HAMBURGER → X === */

body.menu-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger span {
  transition: all 0.3s ease;
}
