/* ============================================================
   iBeeQ Megamenu – ibeeq-menu.css
   Wgraj do: /wp-content/themes/TWOJ-MOTYW/ibeeq-menu/
   ============================================================ */

/* ── RESET & VARS ── */
.ibeeq-nav *, .ibeeq-nav *::before, .ibeeq-nav *::after {
  box-sizing: border-box;
}

:root {
  --ibeeq-blue:      #1A4FBF;
  --ibeeq-blue-dark: #0f3080;
  --ibeeq-accent:    #F4A40A;
  --ibeeq-text:      #0D1B2A;
  --ibeeq-muted:     #6B7A8D;
  --ibeeq-border:    #E4EAF3;
  --ibeeq-hover-bg:  #F0F5FF;
  --ibeeq-nav-h:     68px;
}

/* ── WRAPPER – ukrywa oryginalne menu Elementora ── */
.ibeeq-nav-wrapper {
  position: relative;
  z-index: 500;
}

/* ── BLUR OVERLAY ── */
.ibeeq-blur {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 18, 42, 0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 490;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
body.ibeeq-menu-open .ibeeq-blur {
  opacity: 1;
  pointer-events: auto;
}

/* ── NAV LIST ── */
.ibeeq-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
  height: var(--ibeeq-nav-h);
  gap: 0;
}

.ibeeq-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ── NAV BUTTON / LINK ── */
.ibeeq-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ibeeq-text);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
  line-height: 1;
}
.ibeeq-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ibeeq-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.ibeeq-item.open > .ibeeq-btn,
.ibeeq-item:hover > .ibeeq-btn { color: var(--ibeeq-blue); }
.ibeeq-item.open > .ibeeq-btn::after { transform: scaleX(1); }

/* ── CHEVRON ── */
.ibeeq-chevron {
  width: 13px; height: 13px;
  transition: transform 0.2s ease;
  opacity: 0.55;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  flex-shrink: 0;
}
.ibeeq-item.open .ibeeq-chevron { transform: rotate(180deg); opacity: 1; }

/* ── FLYOUT PANEL ── */
.ibeeq-flyout {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-top: 3px solid var(--ibeeq-blue);
  box-shadow: 0 28px 70px rgba(26,79,191,0.14), 0 6px 24px rgba(0,0,0,0.08);
  border-radius: 0 0 14px 14px;
  display: grid;
  grid-template-columns: 240px 1fr;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 600;
  overflow: hidden;
  min-height: 340px;
}
.ibeeq-flyout.ibeeq-full-width {
  grid-template-columns: 1fr;
}
.ibeeq-item.open .ibeeq-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── LEFT SIDEBAR ── */
.ibeeq-left {
  background: #F7F9FF;
  border-right: 1px solid var(--ibeeq-border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.ibeeq-left-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ibeeq-muted);
  padding: 0 22px 12px;
  border-bottom: 1px solid var(--ibeeq-border);
  margin-bottom: 8px;
}

/* ── CATEGORY BUTTON ── */
.ibeeq-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  position: relative;
  width: 100%;
}
.ibeeq-cat::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--ibeeq-blue);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.15s ease;
}
.ibeeq-cat.active,
.ibeeq-cat:hover { background: #EBF1FF; }
.ibeeq-cat.active::before { transform: scaleY(1); }

.ibeeq-cat-icon {
  width: 36px; height: 36px;
  background: #DDE8FF;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ibeeq-cat.active .ibeeq-cat-icon,
.ibeeq-cat:hover .ibeeq-cat-icon { background: var(--ibeeq-blue); }
.ibeeq-cat-icon svg {
  width: 17px; height: 17px;
  fill: var(--ibeeq-blue);
  transition: fill 0.15s;
}
.ibeeq-cat.active .ibeeq-cat-icon svg,
.ibeeq-cat:hover .ibeeq-cat-icon svg { fill: #fff; }

.ibeeq-cat-text { flex: 1; }
.ibeeq-cat-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ibeeq-text);
  line-height: 1.3;
  margin-bottom: 2px;
  display: block;
}
.ibeeq-cat-desc {
  font-size: 11px;
  color: var(--ibeeq-muted);
  font-weight: 300;
  display: block;
}
.ibeeq-cat-arrow {
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--ibeeq-blue);
  stroke-width: 2.5;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.ibeeq-cat.active .ibeeq-cat-arrow,
.ibeeq-cat:hover .ibeeq-cat-arrow { opacity: 1; transform: translateX(3px); }

/* ── RIGHT PANELS ── */
.ibeeq-right {
  position: relative;
  overflow: hidden;
}
.ibeeq-panel {
  position: absolute;
  inset: 0;
  padding: 24px 28px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ibeeq-panel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ── PANEL LABEL ── */
.ibeeq-panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ibeeq-muted);
  flex-shrink: 0;
}

/* ── CARD GRID ── */
.ibeeq-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ibeeq-card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.ibeeq-card {
  display: flex;
  flex-direction: column;
  background: #F7F9FF;
  border: 1px solid var(--ibeeq-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.ibeeq-card:hover {
  box-shadow: 0 6px 24px rgba(26,79,191,0.12);
  border-color: #c0d0f0;
  transform: translateY(-2px);
}
.ibeeq-card-img {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A4FBF, #2d6be4);
}
.ibeeq-card-img-label {
  background: rgba(10,22,50,0.7);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  width: 100%;
}
.ibeeq-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ibeeq-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ibeeq-text);
  line-height: 1.3;
}
.ibeeq-card-text {
  font-size: 11.5px;
  color: var(--ibeeq-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* ── LINK LIST ── */
.ibeeq-links { display: flex; flex-direction: column; gap: 3px; }
.ibeeq-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.ibeeq-link-item:hover { background: var(--ibeeq-hover-bg); }
.ibeeq-link-item:hover .ibeeq-link-arrow { opacity: 1; transform: translateX(3px); }
.ibeeq-link-icon {
  width: 32px; height: 32px;
  background: #EBF1FF;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ibeeq-link-icon svg { width: 15px; height: 15px; fill: var(--ibeeq-blue); }
.ibeeq-link-text { flex: 1; }
.ibeeq-link-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ibeeq-text);
  display: block;
}
.ibeeq-link-sub {
  font-size: 11px;
  color: var(--ibeeq-muted);
  display: block;
}
.ibeeq-link-arrow {
  width: 13px; height: 13px;
  fill: none;
  stroke: var(--ibeeq-blue);
  stroke-width: 2.5;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}

/* ── PANEL FOOTER ── */
.ibeeq-panel-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ibeeq-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ibeeq-footer-txt { font-size: 11.5px; color: var(--ibeeq-muted); }
.ibeeq-footer-link {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ibeeq-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
  white-space: nowrap;
}
.ibeeq-footer-link:hover { gap: 9px; }

/* ── RESOURCE GRID (Wiedza) ── */
.ibeeq-res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 24px 28px;
}
.ibeeq-res-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #F7F9FF;
  border: 1px solid var(--ibeeq-border);
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.ibeeq-res-card:hover {
  box-shadow: 0 6px 20px rgba(26,79,191,0.1);
  border-color: #bdd0f5;
  transform: translateY(-2px);
}
.ibeeq-res-card:hover .ibeeq-res-icon { background: var(--ibeeq-blue); }
.ibeeq-res-card:hover .ibeeq-res-icon svg { fill: #fff; }
.ibeeq-res-icon {
  width: 44px; height: 44px;
  background: #DDE8FF;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}
.ibeeq-res-icon svg { width: 22px; height: 22px; fill: var(--ibeeq-blue); transition: fill 0.18s; }
.ibeeq-res-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ibeeq-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  display: block;
}
.ibeeq-res-desc {
  font-size: 12px;
  color: var(--ibeeq-muted);
  line-height: 1.55;
  font-weight: 300;
}

/* ── FEATURED STRIP ── */
.ibeeq-strip {
  background: linear-gradient(135deg, #0D1B2A, var(--ibeeq-blue));
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
}
.ibeeq-strip-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3px;
  display: block;
}
.ibeeq-strip-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.ibeeq-strip-cta {
  background: var(--ibeeq-accent);
  color: #111;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.ibeeq-strip-cta:hover { transform: translateY(-1px); }

/* ── MOBILNE UKRYCIE ── */
@media (max-width: 1024px) {
  .ibeeq-nav-wrapper { display: none; }
}
