/* ==========================================================================
   COOKIE CONSENT OVERLAY — BLOCKING VERSION (v1)
   ========================================================================== */

#cookie-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#cookie-modal {
  position: relative;
  background: #111;
  color: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  border: 1px solid #caa74e33;
  z-index: 1000000 !important;
}

#cookie-modal h2 {
  color: #caa74e;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#cookie-modal p {
  font-size: 0.95rem;
  line-height: 1.5;
}

button#cookie-all {
  background-color: #0E3B2D;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cookie-buttons .btn {
  cursor: pointer;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.cookie-buttons .btn.btn-green {
  background: #098600;
  color: #FFF;
  border: none;
}

.cookie-buttons .btn.btn-outline {
  background: transparent;
  color: #F5EEDC;
  border: 1px solid #F5EEDC;
}

.btn-gold:hover {
  background: #d8b85a;
}

.btn-outline:hover {
  background: #caa74e;
  color: #000;
}

.cookie-privacy {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.cookie-privacy a {
  color: #caa74e;
  text-decoration: none;
}

.cookie-privacy a:hover {
  text-decoration: underline;
}

/* Cookie overlay alapértelmezetten rejtve, hogy ne villanjon be */
#cookie-overlay {
    display: none; /* <- csak JS kapcsolja be, ha szükséges */
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }

/* Fade-out effect when accepted */
#cookie-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#cookie-overlay,
#cookie-modal,
#cookie-modal .btn {
  pointer-events: auto !important;
}

  /* === MOBILE FIX: Cookie Consent tap not working (v1.1) === */
@media (max-width: 1024px) {
  #cookie-overlay {
    position: fixed;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important; /* minden fölé kerül */
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-backdrop-filter: none !important; /* iOS bug fix */
    backdrop-filter: none !important;         /* tiltja a blur-t mobilon */
  }

  #cookie-modal,
  #cookie-modal * {
    pointer-events: auto !important;
    touch-action: manipulation; /* gyors tap iOS-en */
    -webkit-tap-highlight-color: transparent;
  }

  #cookie-overlay::before {
    pointer-events: none !important;
  }

  /* kis vizuális kompenzáció blur hiánya miatt */
  #cookie-modal {
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
  }
}
