/**
 * SilverTeam/GastRock módosítás – 2026-06-02
 * Nagymama és Bence kalandjai gyűjtőoldal manga/mesekönyv stílus.
 */

.gastrock-story-archive-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 92, 143, .12) 1px, transparent 1px),
    linear-gradient(180deg, #fff8e6 0%, #fffdf7 44%, #fff5df 100%);
  background-size: 13px 13px, auto;
}

.gastrock-story-archive-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 70px;
  border-bottom: 5px solid #111;
  background: #fff4d4;
}

.gastrock-story-archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .72;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 175, 73, .16) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 16% 18%, rgba(255, 76, 134, .24), transparent 0 1px),
    radial-gradient(circle at 86% 20%, rgba(74, 156, 54, .18), transparent 0 1px),
    radial-gradient(circle at 50% 100%, rgba(255, 229, 96, .34), transparent 40%);
  background-size: auto, 15px 15px, 19px 19px, auto;
}

.gastrock-story-archive-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -110px;
  width: 48vw;
  min-width: 520px;
  height: 125%;
  background: linear-gradient(135deg, #ff4c86, #ff7d2d);
  transform: skewX(-12deg) rotate(-1deg);
  border-left: 6px solid #111;
  box-shadow: -12px 0 0 rgba(255, 226, 72, .75);
  pointer-events: none;
}

.gastrock-story-archive-hero .container,
.gastrock-story-archive-list-section .container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
}

.gastrock-story-archive-page .gastrock-breadcrumb,
.gastrock-story-archive-page .breadcrumb,
.gastrock-story-archive-page .woocommerce-breadcrumb {
  position: relative;
  z-index: 6;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: auto;
  margin: 0 0 34px;
  padding: 10px 17px;
  border: 3px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 5px 5px 0 #111;
}

.gastrock-story-archive-page .gastrock-breadcrumb a,
.gastrock-story-archive-page .breadcrumb a,
.gastrock-story-archive-page .woocommerce-breadcrumb a {
  color: #111;
  text-decoration: none;
}

.gastrock-story-archive-hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 36px;
  align-items: center;
}

.gastrock-story-archive-hero-copy {
  position: relative;
  max-width: 640px;
  padding: 34px 38px 36px;
  border: 5px solid #111;
  border-radius: 28px 20px 32px 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,224,.96)),
    radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px);
  background-size: auto, 11px 11px;
  box-shadow: 10px 10px 0 #111;
  transform: rotate(-.6deg);
}

.gastrock-story-archive-hero-copy::before,
.gastrock-story-archive-hero-copy::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 42px;
  background: #ffe64f;
  border: 4px solid #111;
  transform: rotate(8deg);
}

.gastrock-story-archive-hero-copy::before {
  right: -18px;
  top: 24px;
}

.gastrock-story-archive-hero-copy::after {
  left: 38px;
  bottom: -22px;
  background: #ff77a6;
  transform: rotate(-7deg);
}

.gastrock-story-archive-kicker {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 8px 18px;
  border: 3px solid #111;
  border-radius: 999px;
  background: #ffe64f;
  color: #111;
  font-weight: 950;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #ff4c86;
}

.gastrock-story-archive-hero-copy h1 {
  position: relative;
  z-index: 3;
  margin: 0 0 14px;
  color: #111;
  font-size: clamp(40px, 5.1vw, 78px);
  font-weight: 950;
  line-height: .92;
  text-shadow: 4px 4px 0 #ffe64f, 7px 7px 0 rgba(255, 76, 134, .55);
}

.gastrock-story-archive-intro,
.gastrock-story-archive-intro-text {
  position: relative;
  z-index: 3;
  margin: 0;
  max-width: 560px;
  color: #1c1713;
  font-size: var(--gastrock-archive-intro-font-size, 17px);
  font-weight: 700;
  line-height: 1.55;
}

.gastrock-story-archive-intro p {
  margin: 0 0 10px;
}

.gastrock-story-archive-hero-art {
  position: relative;
  z-index: 4;
  justify-self: center;
  width: min(100%, 520px);
  transform: rotate(1.4deg);
  filter: drop-shadow(10px 12px 0 rgba(0,0,0,.20));
}

.gastrock-story-archive-hero-art::before {
  content: "";
  position: absolute;
  inset: 8% -4% -2% 6%;
  z-index: -1;
  border: 5px solid #111;
  border-radius: 36px;
  background:
    radial-gradient(rgba(255,255,255,.32) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255,230,79,.95), rgba(255,119,166,.95));
  background-size: 12px 12px, auto;
  transform: rotate(-3deg);
}

.gastrock-story-archive-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.gastrock-story-archive-bubble {
  position: absolute;
  z-index: 5;
  right: 2%;
  top: -26px;
  max-width: 220px;
  padding: 13px 18px;
  border: 4px solid #111;
  border-radius: 22px 22px 22px 8px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.16;
  text-align: center;
  box-shadow: 6px 6px 0 #111;
  transform: rotate(-3deg);
}

.gastrock-story-archive-bubble::after {
  content: "";
  position: absolute;
  left: 42px;
  bottom: -16px;
  width: 22px;
  height: 22px;
  border-right: 4px solid #111;
  border-bottom: 4px solid #111;
  background: #fff;
  transform: rotate(45deg);
}

.gastrock-story-archive-list-section {
  position: relative;
  padding: 66px 0 98px;
  background:
    radial-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf6, #fff7e7);
  background-size: 12px 12px, auto;
}

.gastrock-story-archive-list-section::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: -22px;
  height: 38px;
  background: #ffe64f;
  border-top: 4px solid #111;
  border-bottom: 4px solid #111;
  transform: rotate(-1deg);
}

.gastrock-story-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.gastrock-story-archive-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 5px solid #111;
  border-radius: 26px;
  background: #fff;
  box-shadow: 10px 10px 0 #111;
  transition: transform .22s ease, box-shadow .22s ease;
}

.gastrock-story-archive-card:nth-child(3n+1) { transform: rotate(-1.1deg); }
.gastrock-story-archive-card:nth-child(3n+2) { transform: rotate(.8deg); }
.gastrock-story-archive-card:nth-child(3n+3) { transform: rotate(-.4deg); }

.gastrock-story-archive-card:hover {
  transform: translateY(-7px) rotate(0deg);
  box-shadow: 14px 14px 0 #111;
}

.gastrock-story-archive-card::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 18px;
  width: 66px;
  height: 42px;
  z-index: 3;
  border: 4px solid #111;
  background: #ffe64f;
  transform: rotate(9deg);
}

.gastrock-story-archive-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  border-bottom: 5px solid #111;
  background: #111;
  color: inherit;
  text-decoration: none !important;
}

.gastrock-story-archive-image::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(118deg, transparent 0 47%, rgba(255,255,255,.65) 48%, transparent 52% 100%),
    radial-gradient(rgba(0,0,0,.52) 1px, transparent 1px);
  background-size: 58px 58px, 9px 9px;
  mix-blend-mode: multiply;
}

.gastrock-story-archive-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}

.gastrock-story-archive-card:hover .gastrock-story-archive-image img {
  transform: scale(1.06);
}

.gastrock-story-archive-episode {
  position: absolute;
  left: 15px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 30px);
  min-height: 34px;
  padding: 6px 13px;
  border: 3px solid #111;
  border-radius: 999px;
  background: #ff4c86;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #111;
}

.gastrock-story-archive-card-content {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 24px 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,246,213,.9)),
    radial-gradient(rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: auto, 12px 12px;
}

.gastrock-story-archive-card-content h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 2px 2px 0 #ffe64f;
}

.gastrock-story-archive-card-content h2 a {
  color: inherit;
  text-decoration: none !important;
}

.gastrock-story-archive-card-content p {
  margin: 0 0 18px;
  color: #2a211b;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.gastrock-story-archive-lesson {
  position: relative;
  margin: auto 0 18px;
  padding: 13px 15px 13px 18px;
  border: 3px solid #111;
  border-radius: 18px;
  background: #fff5c7;
  box-shadow: 5px 5px 0 rgba(0,0,0,.18);
}

.gastrock-story-archive-lesson::before {
  content: "❤";
  position: absolute;
  right: 14px;
  top: -15px;
  color: #ff4c86;
  font-size: 26px;
  text-shadow: 2px 2px 0 #111;
  transform: rotate(12deg);
}

.gastrock-story-archive-lesson span {
  display: block;
  margin: 0 0 4px;
  color: #ff4c86;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gastrock-story-archive-lesson strong {
  display: block;
  color: #111;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.gastrock-story-archive-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 4px solid #111;
  border-radius: 999px;
  background: #ff4c86;
  color: #fff !important;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none !important;
  box-shadow: 5px 5px 0 #111;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.gastrock-story-archive-button:hover,
.gastrock-story-archive-button:focus {
  background: #4a9c36;
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 #111;
}

.gastrock-story-archive-empty {
  max-width: 820px;
  margin: 0 auto;
  padding: 38px;
  border: 5px solid #111;
  border-radius: 26px;
  background: #fff;
  box-shadow: 10px 10px 0 #111;
  text-align: center;
}

.gastrock-story-archive-empty span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 16px;
  border: 3px solid #111;
  border-radius: 999px;
  background: #ffe64f;
  font-weight: 950;
  text-transform: uppercase;
}

.gastrock-story-archive-empty h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 950;
  text-shadow: 3px 3px 0 #ffe64f;
}

.gastrock-story-archive-pagination {
  margin: 50px 0 0;
  text-align: center;
}

.gastrock-story-archive-pagination ul {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gastrock-story-archive-pagination a,
.gastrock-story-archive-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  border: 3px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 950;
  text-decoration: none !important;
  box-shadow: 4px 4px 0 #111;
}

.gastrock-story-archive-pagination .current,
.gastrock-story-archive-pagination a:hover {
  background: #ffe64f;
}

@media (max-width: 1199px) {
  .gastrock-story-archive-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  }

  .gastrock-story-archive-grid {
    gap: 28px;
  }
}

@media (max-width: 991px) {
  .gastrock-story-archive-hero {
    padding: 42px 0 58px;
  }

  .gastrock-story-archive-hero::after {
    width: 70vw;
    min-width: 360px;
    opacity: .8;
  }

  .gastrock-story-archive-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gastrock-story-archive-hero-copy {
    max-width: none;
  }

  .gastrock-story-archive-hero-art {
    width: min(100%, 440px);
  }

  .gastrock-story-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gastrock-story-archive-hero {
    padding: 32px 0 46px;
  }

  .gastrock-story-archive-hero::after {
    right: -210px;
    min-width: 360px;
  }

  .gastrock-story-archive-page .gastrock-breadcrumb,
  .gastrock-story-archive-page .breadcrumb,
  .gastrock-story-archive-page .woocommerce-breadcrumb {
    margin-bottom: 24px;
    font-size: 12px;
    box-shadow: 4px 4px 0 #111;
  }

  .gastrock-story-archive-hero-copy {
    padding: 26px 24px 28px;
    border-width: 4px;
    border-radius: 22px;
    box-shadow: 7px 7px 0 #111;
    transform: none;
  }

  .gastrock-story-archive-hero-copy h1 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .gastrock-story-archive-intro,
  .gastrock-story-archive-intro-text {
    font-size: 15px;
  }

  .gastrock-story-archive-hero-art {
    width: min(100%, 360px);
    transform: rotate(.7deg);
  }

  .gastrock-story-archive-bubble {
    right: 8%;
    top: -18px;
    max-width: 190px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .gastrock-story-archive-list-section {
    padding: 48px 0 72px;
  }

  .gastrock-story-archive-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gastrock-story-archive-card,
  .gastrock-story-archive-card:nth-child(3n+1),
  .gastrock-story-archive-card:nth-child(3n+2),
  .gastrock-story-archive-card:nth-child(3n+3) {
    transform: none;
  }

  .gastrock-story-archive-card-content {
    padding: 22px 20px 24px;
  }
}

@media (max-width: 420px) {
  .gastrock-story-archive-hero-copy {
    padding: 22px 18px 24px;
  }

  .gastrock-story-archive-kicker {
    font-size: 12px;
    padding: 7px 13px;
  }

  .gastrock-story-archive-bubble {
    right: 0;
  }
}
