/* A Gale Posts bővítmény minden szabálya a .gale-posts névtérben marad. */
.gale-posts {
  --gp-bg: var(--gale-bg, #020b0c);
  --gp-bg-2: var(--gale-bg-2, #030f0f);
  --gp-panel: var(--gale-panel, #071817);
  --gp-panel-2: var(--gale-panel-2, #0a2220);
  --gp-text: var(--gale-text, #eef5f3);
  --gp-muted: var(--gale-muted, #9db5b3);
  --gp-dim: var(--gale-dim, #667e7b);
  --gp-accent: var(--gale-accent, #0f8f86);
  --gp-accent-2: var(--gale-accent-2, #2ecfa4);
  --gp-light: var(--gale-light, #7ff0dc);
  --gp-line: var(--gale-line, rgba(15, 143, 134, 0.28));
  --gp-line-soft: var(--gale-line-soft, rgba(242, 236, 239, 0.1));
  --gp-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(circle at 84% 9%, rgba(46, 207, 164, 0.13), transparent 26rem),
    radial-gradient(circle at 8% 38%, rgba(15, 143, 134, 0.1), transparent 24rem),
    var(--gp-bg);
  color: var(--gp-text);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gale-posts *,
.gale-posts *::before,
.gale-posts *::after { box-sizing: border-box; }

.gale-posts a { color: inherit; }

.gale-posts__wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.gale-posts__hero {
  position: relative;
  padding: clamp(76px, 11vw, 150px) 0 52px;
}

.gale-posts__hero::after {
  position: absolute;
  right: 7%;
  bottom: 20px;
  width: clamp(120px, 18vw, 250px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gp-accent-2));
  box-shadow: 0 0 18px rgba(46, 207, 164, 0.5);
}

.gale-posts__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--gp-light);
  font-family: var(--gp-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gale-posts__eyebrow::before {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
}

.gale-posts__title {
  max-width: 880px;
  margin: 0 0 24px;
  color: var(--gp-text);
  font-size: clamp(2.65rem, 7.2vw, 6.2rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.gale-posts__title span {
  background: linear-gradient(100deg, var(--gp-accent-2), var(--gp-light) 60%, #c8f7ec);
  background-clip: text;
  color: transparent;
}

.gale-posts__intro {
  max-width: 700px;
  margin: 0;
  color: var(--gp-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.gale-posts__search-section { padding: 10px 0 48px; }

.gale-posts__form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) repeat(4, minmax(118px, 0.6fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(127, 240, 220, 0.17);
  border-radius: 22px;
  background: linear-gradient(125deg, rgba(7, 24, 23, 0.96), rgba(4, 18, 17, 0.9));
  box-shadow: 0 26px 60px -35px rgba(0, 0, 0, 0.95), inset 0 1px rgba(255, 255, 255, 0.035);
}

.gale-posts__field { min-width: 0; }

.gale-posts__field label {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--gp-dim);
  font-family: var(--gp-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gale-posts__control {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--gp-line-soft);
  border-radius: 12px;
  outline: 0;
  background: rgba(2, 11, 12, 0.72);
  color: var(--gp-text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gale-posts__control::placeholder { color: var(--gp-dim); }

.gale-posts__control:hover { border-color: rgba(127, 240, 220, 0.3); }

.gale-posts__control:focus {
  border-color: var(--gp-accent-2);
  background: rgba(2, 11, 12, 0.95);
  box-shadow: 0 0 0 3px rgba(46, 207, 164, 0.12);
}

.gale-posts__field--search { position: relative; }

.gale-posts__field--search .gale-posts__control { padding-left: 43px; }

.gale-posts__search-icon {
  position: absolute;
  bottom: 15px;
  left: 16px;
  width: 17px;
  height: 17px;
  border: 1.8px solid var(--gp-muted);
  border-radius: 50%;
  pointer-events: none;
}

.gale-posts__search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
  background: var(--gp-muted);
}

.gale-posts__submit {
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--gp-accent);
  border-radius: 12px;
  background: var(--gp-accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gale-posts__submit:hover {
  transform: translateY(-1px);
  background: #12a097;
  box-shadow: 0 12px 28px -14px rgba(46, 207, 164, 0.8);
}

.gale-posts__submit:disabled { cursor: wait; opacity: 0.72; }

.gale-posts__results-section {
  padding: 10px 0 clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--gp-line);
}

.gale-posts__results-head {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.gale-posts__count {
  margin: 0;
  color: var(--gp-muted);
  font-family: var(--gp-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.gale-posts__count strong { color: var(--gp-light); }

.gale-posts__clear {
  border-bottom: 1px solid rgba(127, 240, 220, 0.38);
  color: var(--gp-light);
  font-size: 13px;
  text-decoration: none;
}

.gale-posts__clear:hover { border-color: var(--gp-light); }

.gale-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.gale-posts__card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gp-line-soft);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(7, 24, 23, 0.97), rgba(3, 15, 15, 0.98));
  box-shadow: 0 24px 50px -38px #000;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gale-posts__card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 240, 220, 0.32);
  box-shadow: 0 30px 64px -40px rgba(46, 207, 164, 0.42);
}

.gale-posts__media {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 143, 134, 0.5), transparent 55%),
    radial-gradient(circle at 72% 35%, rgba(127, 240, 220, 0.23), transparent 28%),
    var(--gp-panel-2);
}

.gale-posts__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  content: "";
  background: linear-gradient(transparent, rgba(3, 15, 15, 0.72));
}

.gale-posts__media img {
  width: 100%;
  height: 100%;
  min-height: 185px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gale-posts__card:hover .gale-posts__media img { transform: scale(1.025); }

.gale-posts__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(127, 240, 220, 0.14);
  font-size: 5.8rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.gale-posts__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 25px;
}

.gale-posts__meta,
.gale-posts__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--gp-dim);
  font-family: var(--gp-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gale-posts__meta span + span::before {
  margin-right: 8px;
  color: var(--gp-accent);
  content: "·";
}

.gale-posts__card-title {
  margin: 16px 0 12px;
  color: var(--gp-text);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.gale-posts__card-title a { text-decoration: none; }
.gale-posts__card-title a::after { position: absolute; inset: 0; content: ""; }

.gale-posts__excerpt {
  margin: 0 0 24px;
  color: var(--gp-muted);
  font-size: 14px;
  line-height: 1.65;
}

.gale-posts__terms { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--gp-line-soft); }

.gale-posts__term {
  position: relative;
  z-index: 1;
  color: var(--gp-light);
  text-decoration: none;
}

.gale-posts__term:hover { color: var(--gp-accent-2); }

.gale-posts__empty {
  padding: clamp(44px, 8vw, 82px) 24px;
  border: 1px dashed rgba(127, 240, 220, 0.24);
  border-radius: 20px;
  background: rgba(7, 24, 23, 0.62);
  text-align: center;
}

.gale-posts__empty-mark { display: block; margin-bottom: 16px; color: var(--gp-light); font: 700 14px var(--gp-mono); letter-spacing: 0.14em; }
.gale-posts__empty h2 { margin: 0 0 10px; color: var(--gp-text); font-size: 1.7rem; }
.gale-posts__empty p { margin: 0; color: var(--gp-muted); }

.gale-posts__pagination { margin-top: 42px; }
.gale-posts__pagination .page-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gale-posts__pagination a,
.gale-posts__pagination span {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--gp-line-soft);
  border-radius: 10px;
  background: var(--gp-panel);
  color: var(--gp-muted);
  text-decoration: none;
}
.gale-posts__pagination a:hover,
.gale-posts__pagination .current { border-color: var(--gp-accent); color: var(--gp-text); }
.gale-posts__pagination .current { background: rgba(15, 143, 134, 0.25); }

.gale-posts__nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(127, 240, 220, 0.12);
  background: rgba(3, 15, 15, 0.88);
  backdrop-filter: blur(18px);
}
.gale-posts__nav-inner { display: flex; min-height: 70px; align-items: center; justify-content: space-between; }
.gale-posts__nav a { color: var(--gp-text); text-decoration: none; }
.gale-posts__nav-brand { display: flex; gap: 11px; align-items: center; font-weight: 750; }
.gale-posts__nav-links { display: flex; gap: 22px; color: var(--gp-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.gale-posts__nav-links .is-active { color: var(--gp-light); }

.gale-posts__nav .gale-point {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 22px rgba(15, 143, 134, 0.34);
  isolation: isolate;
}

.gale-posts__nav .gale-point::before {
  position: absolute;
  z-index: 2;
  inset: 19%;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, #050505 0 39%, #fff 40% 100%);
  content: "";
}

.gale-posts__nav .gale-point::after {
  position: absolute;
  z-index: 1;
  top: 55%;
  left: 9%;
  width: 36%;
  height: 30%;
  background: #fff;
  clip-path: polygon(100% 0, 100% 55%, 0 100%);
  content: "";
}

.gale-posts__footer {
  padding: 30px 0;
  border-top: 1px solid var(--gp-line-soft);
  color: var(--gp-dim);
  font-size: 12px;
}

.gale-posts__footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.gale-posts__footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.gale-posts__footer a { color: var(--gp-muted); text-decoration: none; }
.gale-posts__footer a:hover { color: var(--gp-light); }

@media (max-width: 1080px) {
  .gale-posts__form { grid-template-columns: repeat(4, 1fr); }
  .gale-posts__field--search { grid-column: 1 / -2; }
}

@media (max-width: 720px) {
  .gale-posts__wrap { width: min(100% - 28px, 1180px); }
  .gale-posts__hero { padding-top: 64px; }
  .gale-posts__form { grid-template-columns: 1fr 1fr; padding: 14px; border-radius: 17px; }
  .gale-posts__field--search { grid-column: 1 / -1; }
  .gale-posts__submit { grid-column: 1 / -1; }
  .gale-posts__results-head { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
  .gale-posts__nav-links a:not(.is-active) { display: none; }
}

@media (max-width: 460px) {
  .gale-posts__form { grid-template-columns: 1fr; }
  .gale-posts__field--search,
  .gale-posts__submit { grid-column: auto; }
  .gale-posts__title { font-size: 2.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gale-posts *,
  .gale-posts *::before,
  .gale-posts *::after { scroll-behavior: auto !important; transition: none !important; }
}
