/* ══════════════════════════════════════════════════════════════
   SÜTI-ABLAK — a navbar üvege, a MENÜ rózsaszínje, az „esetek”
   színátmenete. Jobb alul, a MENÜ gomb vonalában;
   telefonon alul, teljes szélességben.
   ══════════════════════════════════════════════════════════════ */
.cf-cookie {
  position: fixed;
  right: 4rem;
  bottom: 2rem;
  z-index: 998;               /* a teljes képernyős menü (999) eltakarja */
  width: 368px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 4rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.5rem 1.5rem;
  border-radius: 14px;
  background: rgba(10, 10, 24, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  font-family: var(--font, 'Outfit', sans-serif);
  color: var(--text, #f8fafc);

  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.cf-cookie.is-resizing {
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* hajszálnyi színátmenet a felső élen — ugyanaz, mint a VALÓDI SZÁMOK */
.cf-cookie::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(270deg, #ff007f, #8b5cf6, #c026d3, #ff007f);
  background-size: 300% 100%;
  animation: gradientShift 4s ease infinite;
  opacity: 0.9;
}

.cf-cookie.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cf-cookie.is-leaving {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition-duration: 0.35s, 0.45s;
  transition-timing-function: ease, cubic-bezier(0.7, 0, 0.84, 0);
}

/* nézetváltáskor a tartalom puhán beúszik */
.cf-cookie-view.is-active {
  animation: cfCookieIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cfCookieIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── fejléc: süti-ikon a cím színátmenetével + cím ─────────── */
.cf-cookie-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.cf-cookie-icon {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent, #ff007f);
  flex-shrink: 0;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cf-cookie-icon {
    background: linear-gradient(270deg, #ff007f, #8b5cf6, #c026d3, #ff007f);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s ease infinite;
  }
}

.cf-cookie-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.cf-cookie-text {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 1.3rem;
  text-wrap: pretty;          /* ne maradjon egy szó egyedül az utolsó sorban */
}

.cf-cookie-text a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 127, 0.7);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s;
}

.cf-cookie-text a:hover {
  text-decoration-color: #fff;
}

/* ── gombok ─────────────────────────────────────────────── */
.cf-cookie-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.cf-cookie-link {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.4rem 0.2rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 0.25s, text-decoration-color 0.25s;
}

.cf-cookie-link:hover {
  color: #fff;
  text-decoration-color: var(--accent, #ff007f);
}

.cf-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 9999px;
  padding: 0.9rem 1.2rem;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cf-cookie-btn:active {
  transform: scale(0.98);
}

/* Csak a szükségesek / Mentés — üvegpirula, mint a nyelvváltó */
.cf-cookie-btn--ghost {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cf-cookie-btn--ghost:hover {
  border-color: rgba(255, 0, 127, 0.55);
  background: rgba(255, 0, 127, 0.08);
}

/* Összes elfogadása — a nyelvváltó aktív pirulája, teljes szélességben */
.cf-cookie-btn--primary {
  width: 100%;
  padding: 1rem 1.2rem;
  border: none;
  background: var(--accent, #ff007f);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.4);
}

.cf-cookie-btn--primary svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cf-cookie-btn--primary:hover {
  background: var(--accent-dark, #cc0066);
  box-shadow: 0 0 26px rgba(255, 0, 127, 0.55);
}

.cf-cookie-btn--primary:hover svg {
  transform: translateX(4px);
}

.cf-cookie-link:focus-visible,
.cf-cookie-btn:focus-visible,
.cf-cookie-switch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ── beállítások: kategóriák ────────────────────────────── */
.cf-cookie-cats {
  list-style: none;
  margin: 0 0 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cf-cookie-cat {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cf-cookie-cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cf-cookie-cat-name {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cf-cookie-cat-desc {
  margin-top: 0.3rem;
  padding-right: 3.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
}

.cf-cookie-always {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent, #ff007f);
  white-space: nowrap;
}

/* kapcsoló: a MENÜ pöttye fut végig rajta */
.cf-cookie-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.cf-cookie-knob {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.cf-cookie-switch[aria-checked="true"] {
  background: var(--accent, #ff007f);
  border-color: var(--accent, #ff007f);
  box-shadow: 0 0 14px rgba(255, 0, 127, 0.4);
}

.cf-cookie-switch[aria-checked="true"] .cf-cookie-knob {
  transform: translateX(20px);
  background: #fff;
}

/* ── tablet ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cf-cookie {
    right: 2rem;
    bottom: 1.5rem;
  }
}

/* ── telefon: alul, teljes szélességben ─────────────────── */
@media (max-width: 768px) {
  .cf-cookie {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom, 0px));
    padding: 1.25rem 1.2rem 1.2rem;
  }

  .cf-cookie-text {
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
  }

  .cf-cookie-btn {
    padding: 0.95rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-cookie,
  .cf-cookie.is-leaving {
    transform: none;
    transition: opacity 0.3s ease;
  }
  .cf-cookie::before,
  .cf-cookie-icon,
  .cf-cookie-view.is-active {
    animation: none;
  }
}
