/**
 * Archív hírlevél gate — beige kinézet + stacked form.
 * Tipográfia px-ben (a téma root rem ≈ 10px).
 */

.macske-nl-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.macske-nl-gate {
  position: fixed;
  z-index: 1001;
  display: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 28px);
  max-width: 540px;
  max-height: calc(100vh - 28px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 24px 22px;
  background-image: linear-gradient(45deg, #ceb189, #ebdac2e6);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Locked article → gate azonnal látszik (nincs üres flash jQuery ready előtt). */
.main-article.macske-nl-gate-locked ~ .macske-nl-gate-overlay,
.main-article.macske-nl-gate-locked ~ .macske-nl-gate {
  display: block;
}

.macske-nl-gate__close {
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 2;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: #a31b5a;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.macske-nl-gate__close:hover,
.macske-nl-gate__close:focus {
  color: #7a1849;
  outline: none;
}

.macske-nl-gate__title {
  margin: 0 2.5rem 14px 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: #3a3a3a;
  text-align: center;
  text-transform: uppercase;
}

.macske-nl-gate__lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: #3a3a3a;
  text-align: center;
}

.macske-nl-gate__panel {
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(163, 27, 90, 0.12);
  border-radius: 10px;
}

.macske-nl-gate__section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #a31b5a;
  text-align: left;
}

.macske-nl-gate__form label {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #3a3a3a;
}

.macske-nl-gate__form .form-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.4;
  border: 1px solid #c9b49a;
  border-radius: 6px;
  background: #fff;
}

.macske-nl-gate__form .form-control:focus {
  outline: 2px solid rgba(163, 27, 90, 0.35);
  outline-offset: 1px;
  border-color: #a31b5a;
}

.macske-nl-gate__error {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #7a1849;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 6px;
}

.macske-nl-gate__error a {
  color: #a31b5a;
  font-weight: 700;
}

.macske-nl-gate__submit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #a31b5a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.macske-nl-gate__submit:hover,
.macske-nl-gate__submit:focus {
  background: #7a1849;
}

.macske-nl-gate__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #7a6a5a;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.macske-nl-gate__divider::before,
.macske-nl-gate__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(122, 106, 90, 0.35);
}

.macske-nl-gate__cta,
button.macske-nl-gate__cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #a31b5a;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid #a31b5a;
  border-radius: 8px;
  cursor: pointer;
}

.macske-nl-gate__cta:hover,
.macske-nl-gate__cta:focus,
button.macske-nl-gate__cta:hover,
button.macske-nl-gate__cta:focus {
  color: #fff;
  background: #a31b5a;
  text-decoration: none;
}

/*
 * Locked: ne tűnjön el a tartalom (üres flash), hanem elhomályosított
 * „dummy” háttér maradjon a gate alatt.
 */
.main-article.macske-nl-gate-locked {
  position: relative;
  max-height: min(72vh, 680px);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.main-article.macske-nl-gate-locked > .container {
  filter: blur(7px);
  opacity: 0.72;
  transform: scale(1.01);
  transform-origin: top center;
}

.main-article.macske-nl-gate-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(235, 218, 194, 0.12) 0%,
    rgba(235, 218, 194, 0.45) 45%,
    rgba(235, 218, 194, 0.92) 100%
  );
  pointer-events: none;
}

@media (min-width: 600px) {
  .macske-nl-gate {
    padding: 32px 28px 24px;
  }

  .macske-nl-gate__title {
    font-size: 24px;
  }

  .macske-nl-gate__lead {
    font-size: 17px;
  }
}
