/**
 * SilverTeam/Gastrock módosítás – 2026-05-29
 * Nagymama és Bence kalandjai főoldali manga történet szekció.
 */

.gastrock-stories-section {
  position: relative;
  overflow: hidden;
  padding: 88px 0 128px;
  background: #f8efde;
  background-size: cover;
  background-position: center;
  --gastrock-stories-wave-fill: #ff4c86;
  --gastrock-stories-wave-highlight: rgba(255, 220, 56, .88);
  --gastrock-stories-wave-outline: #111;
}

.gastrock-stories-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 58, 115, .22) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, .55) 0 25%, transparent 25% 50%, rgba(255, 255, 255, .32) 50% 75%, transparent 75%);
  background-size: 13px 13px, 42px 42px;
}

.gastrock-stories-section::after {
  content: none;
}

.gastrock-stories-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 126px;
  pointer-events: none;
  z-index: 1;
}

.gastrock-stories-wave::before,
.gastrock-stories-wave::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0H1440V22C1320 62 1200 62 1080 22C960 94 840 94 720 22C600 62 480 62 360 22C240 94 120 94 0 22Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0H1440V22C1320 62 1200 62 1080 22C960 94 840 94 720 22C600 62 480 62 360 22C240 94 120 94 0 22Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.gastrock-stories-wave::before {
  height: 126px;
  background: var(--gastrock-stories-wave-outline);
}

.gastrock-stories-wave::after {
  left: -1.4%;
  right: -1.4%;
  bottom: 6px;
  height: 114px;
  background: var(--gastrock-stories-wave-fill);
  box-shadow: 0 -10px 0 var(--gastrock-stories-wave-highlight);
}

.gastrock-stories-inner {
  position: relative;
  z-index: 2;
}

.gastrock-stories-heading-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto 38px;
}

.gastrock-stories-badge {
  position: relative;
  z-index: 3;
  transform: rotate(-5deg);
  filter: drop-shadow(9px 10px 0 rgba(0, 0, 0, .2));
}

.gastrock-stories-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.gastrock-stories-heading {
  position: relative;
  padding: 24px 34px;
  border: 5px solid #111;
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  box-shadow: 10px 10px 0 #111;
  transform: rotate(.7deg);
}

.gastrock-stories-heading::before {
  content: "";
  position: absolute;
  left: 24px;
  top: -18px;
  width: 120px;
  height: 28px;
  background: rgba(255, 222, 71, .92);
  border: 3px solid #111;
  transform: rotate(-4deg);
}

.gastrock-stories-subtitle {
  margin: 0 0 8px;
  color: #e21319;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gastrock-stories-title {
  margin: 0;
  color: #111;
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 900;
  line-height: .98;
  text-shadow: 3px 3px 0 #ffe04b;
}

.gastrock-story-carousel {
  position: relative;
  z-index: 4;
  max-width: 1220px;
  margin: 0 auto;
}

.gastrock-story-carousel .owl-stage-outer {
  overflow: hidden;
  padding: 18px 18px 40px;
  margin: -18px -18px -40px;
}

.gastrock-story-carousel .owl-item:nth-child(odd) .gastrock-story-card {
  transform: rotate(-1.1deg);
}

.gastrock-story-carousel .owl-item:nth-child(even) .gastrock-story-card {
  transform: rotate(1.2deg);
}

.gastrock-story-card {
  position: relative;
  overflow: hidden;
  border: 5px solid #111;
  border-radius: 24px;
  background: #fff;
  box-shadow: 10px 10px 0 #111;
  transition: transform .22s ease, box-shadow .22s ease;
}

.gastrock-story-card:hover {
  transform: translateY(-5px) rotate(0deg) !important;
  box-shadow: 13px 13px 0 #111;
}

.gastrock-story-image-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.gastrock-story-image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
  border-bottom: 5px solid #111;
}

.gastrock-story-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(0,0,0,.55) 49%, transparent 51% 100%),
    radial-gradient(rgba(0,0,0,.55) 1px, transparent 1px);
  background-size: 48px 48px, 9px 9px;
  mix-blend-mode: multiply;
}

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

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

.gastrock-story-episode {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 3px solid #111;
  border-radius: 999px;
  background: #ff4c86;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 4px 4px 0 #111;
  transform: rotate(-3deg);
}

.gastrock-story-content {
  position: relative;
  padding: 22px 22px 24px;
  background:
    linear-gradient(135deg, rgba(255,236,154,.45), rgba(255,255,255,.96)),
    radial-gradient(rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: auto, 12px 12px;
}

.gastrock-story-card-title {
  margin: 0 0 10px;
  color: #111;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

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

.gastrock-story-intro {
  min-height: 54px;
  margin: 0 0 16px;
  color: #222;
  font-size: 15.5px;
  line-height: 1.55;
}

.gastrock-story-lesson {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 3px solid #111;
  border-radius: 16px;
  background: #fff7c4;
  box-shadow: 4px 4px 0 rgba(0,0,0,.82);
  transform: rotate(-1deg);
}

.gastrock-story-lesson span {
  display: block;
  margin-bottom: 2px;
  color: #e21319;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.gastrock-story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 4px solid #111;
  border-radius: 999px;
  background: #e21319;
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 5px 5px 0 #111;
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.gastrock-story-carousel .owl-nav {
  display: flex !important;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.gastrock-story-carousel .owl-nav button.owl-prev,
.gastrock-story-carousel .owl-nav button.owl-next {
  width: 58px;
  height: 58px;
  border: 4px solid #111 !important;
  border-radius: 18px !important;
  background: #ffe04b !important;
  color: #111 !important;
  box-shadow: 5px 5px 0 #111;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gastrock-story-carousel .owl-nav button.owl-prev:hover,
.gastrock-story-carousel .owl-nav button.owl-next:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #111;
  background: #ff4c86 !important;
  color: #fff !important;
}

.gastrock-story-carousel .owl-nav button span {
  display: block;
  margin-top: -5px;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

.gastrock-story-carousel .owl-dots {
  display: none !important;
}

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

@media screen and (max-width: 991px) {
  .gastrock-stories-section {
    padding: 72px 0 84px;
  }

  .gastrock-stories-heading-wrap {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }

  .gastrock-stories-heading {
    padding: 20px 24px;
  }

  .gastrock-story-card {
    transform: none !important;
  }
}

@media screen and (max-width: 767px) {
  .gastrock-stories-section {
    padding-bottom: 112px;
  }

  .gastrock-stories-wave {
    height: 108px;
  }

  .gastrock-stories-wave::before {
    height: 108px;
  }

  .gastrock-stories-wave::after {
    height: 97px;
  }

  .gastrock-stories-heading-wrap {
    display: block;
    text-align: center;
  }

  .gastrock-stories-badge {
    max-width: 220px;
    margin: 0 auto 18px;
  }

  .gastrock-stories-heading {
    transform: none;
  }

  .gastrock-story-carousel .owl-stage-outer {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
  }
}

@media screen and (max-width: 575px) {
  .gastrock-stories-section {
    padding: 58px 0 104px;
  }

  .gastrock-stories-wave {
    height: 94px;
  }

  .gastrock-stories-wave::before {
    height: 94px;
  }

  .gastrock-stories-wave::after {
    height: 84px;
  }

  .gastrock-stories-title {
    font-size: 34px;
  }

  .gastrock-stories-subtitle {
    font-size: 13px;
  }

  .gastrock-story-content {
    padding: 18px 18px 22px;
  }

  .gastrock-story-card-title {
    font-size: 22px;
  }

  .gastrock-story-intro {
    min-height: 0;
  }

  .gastrock-story-carousel .owl-nav button.owl-prev,
  .gastrock-story-carousel .owl-nav button.owl-next {
    width: 50px;
    height: 50px;
  }
}
