/**
 * SilverTeam/Gastrock módosítás – 2026-06-01
 * Csigusz világa főoldali scrapbook / mese-napló manga szekció.
 */

.gastrock-snail-section {
  position: relative;
  overflow: hidden;
  padding: 86px 0 126px;
  background: #f8efde;
  background-size: cover;
  background-position: center;
  --gastrock-snail-wave-fill: #91c8a4;
  --gastrock-snail-wave-highlight: rgba(244, 191, 105, .75);
  --gastrock-snail-wave-outline: #2a2a20;
}

.gastrock-snail-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .55;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(87, 130, 91, .18) 1px, transparent 1px),
    linear-gradient(120deg, rgba(255,255,255,.52) 0 20%, transparent 20% 50%, rgba(255,255,255,.32) 50% 70%, transparent 70%);
  background-size: 14px 14px, 58px 58px;
}

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

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

.gastrock-snail-wave::before,
.gastrock-snail-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-snail-wave::before {
  height: 122px;
  background: var(--gastrock-snail-wave-outline);
}

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

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

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

.gastrock-snail-heading-card {
  position: relative;
  padding: 24px 34px;
  border: 5px solid #3b2a15;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,248,225,.96)),
    radial-gradient(rgba(107, 81, 42, .12) 1px, transparent 1px);
  background-size: auto, 12px 12px;
  box-shadow: 10px 10px 0 rgba(59, 42, 21, .9);
  transform: rotate(-.4deg);
}

.gastrock-snail-heading-card::before,
.gastrock-snail-heading-card::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 28px;
  background: rgba(145, 200, 164, .82);
  border: 3px solid #3b2a15;
  box-shadow: 3px 3px 0 rgba(59,42,21,.35);
}

.gastrock-snail-heading-card::before {
  left: 38px;
  top: -18px;
  transform: rotate(-7deg);
}

.gastrock-snail-heading-card::after {
  right: 46px;
  bottom: -18px;
  transform: rotate(6deg);
}

.gastrock-snail-badge {
  position: relative;
  z-index: 3;
  max-width: 260px;
  transform: rotate(-5deg);
  filter: drop-shadow(8px 9px 0 rgba(59,42,21,.24));
}

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

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

.gastrock-snail-title {
  margin: 0;
  color: #3b2a15;
  font-size: clamp(36px, 4.8vw, 66px);
  font-weight: 900;
  line-height: .96;
  text-shadow: 3px 3px 0 #f4bf69;
}

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

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

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

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

.gastrock-snail-card {
  position: relative;
  overflow: hidden;
  border: 5px solid #3b2a15;
  border-radius: 24px;
  background: #fffaf0;
  box-shadow: 9px 10px 0 rgba(59,42,21,.95);
  transition: transform .22s ease, box-shadow .22s ease;
}

.gastrock-snail-card:hover {
  transform: translateY(-5px) rotate(0deg) !important;
  box-shadow: 12px 13px 0 rgba(59,42,21,.95);
}

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

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

.gastrock-snail-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0,0,0,.55) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 47%, rgba(255,255,255,.6) 48%, transparent 51%);
  background-size: 10px 10px, 52px 52px;
  mix-blend-mode: multiply;
}

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

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

.gastrock-snail-type {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 14px;
  border: 3px solid #3b2a15;
  border-radius: 999px;
  background: #91c8a4;
  color: #2d2618;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(59,42,21,.9);
  transform: rotate(-3deg);
}

.gastrock-snail-content {
  position: relative;
  padding: 22px 22px 24px;
  background:
    linear-gradient(135deg, rgba(255,251,239,.96), rgba(243,232,204,.96)),
    radial-gradient(rgba(59,42,21,.08) 1px, transparent 1px);
  background-size: auto, 11px 11px;
}

.gastrock-snail-content::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 16px;
  width: 56px;
  height: 24px;
  border-radius: 50%;
  border-bottom: 4px solid rgba(145,200,164,.75);
  border-left: 4px solid rgba(145,200,164,.75);
  transform: rotate(-18deg);
  opacity: .8;
}

.gastrock-snail-card-title {
  position: relative;
  margin: 0 0 10px;
  color: #3b2a15;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

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

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

.gastrock-snail-thought {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 3px solid #3b2a15;
  border-radius: 16px;
  background: #fff2c6;
  box-shadow: 4px 4px 0 rgba(59,42,21,.82);
  transform: rotate(1.3deg);
}

.gastrock-snail-thought span {
  display: block;
  margin-bottom: 2px;
  color: #5a7f4c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gastrock-snail-thought strong {
  display: block;
  color: #3b2a15;
  font-size: 15px;
  line-height: 1.25;
}

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

.gastrock-snail-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #3b2a15;
  background: #91c8a4;
}

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

.gastrock-snail-carousel .owl-nav button.owl-prev,
.gastrock-snail-carousel .owl-nav button.owl-next {
  width: 56px;
  height: 56px;
  border: 4px solid #3b2a15 !important;
  border-radius: 50% !important;
  background: #91c8a4 !important;
  color: #3b2a15 !important;
  box-shadow: 5px 5px 0 #3b2a15;
  transition: transform .18s ease, box-shadow .18s ease;
}

.gastrock-snail-carousel .owl-nav button.owl-prev:hover,
.gastrock-snail-carousel .owl-nav button.owl-next:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #3b2a15;
  background: #f4bf69 !important;
}

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

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

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

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

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

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

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

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

  .gastrock-snail-wave {
    height: 104px;
  }

  .gastrock-snail-wave::before {
    height: 104px;
  }

  .gastrock-snail-wave::after {
    height: 94px;
  }

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

  .gastrock-snail-heading-card {
    transform: none;
  }

  .gastrock-snail-badge {
    max-width: 230px;
    margin: 0 auto 18px;
  }

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

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

  .gastrock-snail-wave {
    height: 92px;
  }

  .gastrock-snail-wave::before {
    height: 92px;
  }

  .gastrock-snail-wave::after {
    height: 82px;
  }

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

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

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

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

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

/**
 * SilverTeam/Gastrock módosítás – 2026-06-01
 * Csigusz badge pozíció finomítás.
 *
 * A badge a Nagymama és Bence szekció mintájára a címdoboz mellé került,
 * nem a címdobozon belül jelenik meg.
 */
