/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #FF8080;
  color: #222;
  line-height: 1.8;
}

/* ========== LOGO HEADER (Top Only) ========== */
.page-logo-text {
  font-family: 'Satisfy', cursive;
  font-size: 1.5rem;
  color: #000;
  line-height: 1.2;
  text-decoration: none;
  display: inline-block;
}

.page-logo-text:hover {
  text-decoration: underline;
  cursor: pointer;
}


.page-logo-wrapper {
  background-color: #ffe9de;
  text-align: center;
  padding: 1rem 0 0.5rem 0;
}


/* ========== HERO BANNER ========== */
.hero-banner {
  position: relative;
  width: 100%;
  height: 80vh;
  background-color: #FF8080;
  overflow: hidden;
  border-radius: 0;
}

.hero-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 50, 50, 0.35);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 6vw;
}

/* Top Row: Back + Logo */
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-top .page-logo-text {
  font-size: 2rem;
  color: white;
  line-height: 1.3;
}

/* Back Link */
.back-link {
  font-family: 'Satisfy', cursive;
  font-size: 1.6rem;
  color: white;
  text-decoration: none;
  background: transparent;
}

.back-link:hover {
  text-decoration: underline;
}

/* Hero Text */
.hero-text {
  color: white;
  max-width: 600px;
  padding-bottom: 2rem;
}

.hero-text .recipe-title {
  font-family: 'Satisfy', cursive;
  font-size: 4.2rem;
  color: white;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

.hero-text .subtitle {
  background: linear-gradient(135deg, #ffe9e9, #f19090);
  font-size: 1.1rem;
  font-style: italic;
  color: #222;
  padding: 0.8rem 1rem;
  border-radius: 0 20px 0 20px;
  display: inline-block;
  max-width: 80%;
  box-shadow: 1px 1px 6px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}


.hero-text .quote {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
}

/* ========== SECTION BLOCKS ========== */
.section-block {
  border-top: 1.5px solid #000;
  padding-top: 2rem;
  margin-top: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}


/* Section Titles */
.section-title {
  font-family: 'Satisfy', cursive;
  font-size: 2.2rem;
  color: #000;
  margin-bottom: 1.2rem;
  text-align: center;
}


/* Ingredient List */
.ingredient-list {
  list-style: disc;
  padding-left: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Method */
.method-list {
  list-style: decimal;
  padding-left: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.method-list li {
  margin-bottom: 0.8rem;
}

/* Step Image */
.step-img {
  width: 360px;
  max-width: 100%;
  border: 2px solid #000;
  border-radius: 10px;
  margin: 1.5rem auto;
  display: block;
}

.tip-block {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1rem;
  margin: -2.5rem 0 2rem; 
  padding-right: 3vw;   
}

.tip-bubble {
  position: relative; 
  background-color: #fffdf2;
  border: 2px dotted #000;
  border-radius: 16px;
  padding: 1rem 1.4rem;
  font-family: 'Annie Use Your Telescope', cursive;
  font-size: 1.1rem;
  box-shadow: 3px 3px 0 #000;
  max-width: 260px;
  line-height: 1.6;
  z-index: 1;
  overflow: visible;
}



.tip-bubble::after,
.tip-bubble::before {
  content: "";
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.75), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(5px);
  animation: steam-rise-loop 6s ease-in-out infinite;
  opacity: 0.7;
}
.tip-bubble::before {
  animation-delay: 3s; 
  width: 100px;
  height: 120px;
  opacity: 0.6;
  top: -80px;
}


@keyframes steam-rise-loop {
  0% {
    transform: translateX(-50%) translateY(0px) scale(1);
    opacity: 0.7;
  }
  30% {
    transform: translateX(-50%) translateY(-20px) scale(1.1);
    opacity: 0.85;
  }
  60% {
    transform: translateX(-50%) translateY(-50px) scale(1.3);
    opacity: 0.6;
  }
  100% {
    transform: translateX(-50%) translateY(-90px) scale(1.5);
    opacity: 0;
  }
}


.tip-illustration {
  width: 130px;
  transition: transform 0.2s ease-in-out;
  position: relative;
  z-index: 2;
}


.tip-illustration:hover {
  animation: doodle-wiggle 0.4s ease-in-out 1;
  cursor: pointer;
}


@keyframes doodle-wiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(4deg); }
  50% { transform: rotate(-4deg); }
  75% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}



/* Recipe Info */
.recipe-info {
  background-color: #FF8080;
  padding: 2rem 6vw 1rem 6vw;
  font-size: 1.05rem;
  border-top: none;
}


.recipe-info p {
  margin-bottom: 0.5rem;
}

/* Memories */
.memories {
  text-align: center;
  background-color: #FF8080;
  padding-bottom: 3rem;
}

.memory-text {
  font-size: 1rem;
  max-width: 650px;
  margin: 1.5rem auto 0 auto;
  font-weight: bold;
  text-align: left; 
}


.memory-img {
  width: 360px;
  max-width: 90%;
  height: auto;
  border-radius: 6px;
  border: 2px solid #000;
  margin-top: 1rem;
}


.chef-tips {
  background-color: #FF8080;
  padding: 3rem 5vw;
  text-align: center;
}

.tip-note-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


.tip-note {
  background-color: #fffdf2;
  border: 2px dotted #000;
  border-radius: 18px;
  padding: 1rem 1.5rem;
  width: 100%;    
  max-width: 280px;         
  font-family: 'Annie Use Your Telescope', cursive;
  font-size: 1.15rem;
  box-shadow: 4px 4px 0 #000;
  text-align: left;
  transition: transform 0.2s ease;
  margin: 0 auto;       
}


.tip-note:hover {
  transform: rotate(-2deg) scale(1.03);
  background-color: #fff8e5;
  cursor: default;
}


@media screen and (max-width: 768px) {
  .tip-note {
    max-width: 90%;
    font-size: 1.05rem;
  }

  .tip-note-grid {
    flex-direction: column;
    align-items: center;
  }
}


/* Dishes Section */
.white-section {
  background-color: #fff;
  padding: 3rem 5vw;
  border-top: 1.5px solid #000;
}

.dish-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;

}

.dish-card {
  width: 240px;
  min-height: 360px;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}


.more-dishes-wrapper {
  background-color: #fff;
  padding: 4rem 0;
}

.more-dishes-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5vw;
}


.dish-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dish-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  display: block;
}

.dish-name {
  font-family: 'Angkor', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem;
  color: #000;
  text-align: left;
  height: 100px;
}

.dish-card.blue .dish-name {
  background-color: #aad4ff;
}

.dish-card.yellow .dish-name {
  background-color: #fdd76a;
}


/* Footer */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 6vw;
}

.footer-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-img {
  width: 130px;
  height: auto;
}

.footer-note {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-note h2 {
  font-family: 'Angkor', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}




/* ======= THEME OVERRIDES FOR PORK PAGE ======= */
body.pork-page .hero-text .subtitle {
  background: linear-gradient(135deg, #cce2ff, #9cc2ff);
  color: #000;
}

body.pork-page {
  background-color: #9CC2FF;
}

body.pork-page .recipe-info,
body.pork-page .memories,
body.pork-page .chef-tips {
  background-color: #9CC2FF;
}

.tip-block.left-dad {
  justify-content: flex-start;
}


.step-img-grid.pork .row-two,
.step-img-grid.pork .row-three {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-img-grid.pork .img-box {
  width: 180px;
  height: 240px;
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 10px;
  position: relative;
}

.step-img-grid.pork .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-square {
  width: 360px;
  height: 360px;
  object-fit: cover;
}

.tip-illustration:hover {
  animation: wave 1s ease-in-out;
}

@keyframes wave {
  0% { transform: rotate(0); }
  25% { transform: rotate(6deg); }
  50% { transform: rotate(-6deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

.section-title-row {
  position: relative;
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}


.section-title-row .section-title {
  font-family: 'Satisfy', cursive;
  font-size: 2.5rem;
  margin: 0;
}

.kitchen-sound-btn {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #fffdf2;
  border: 2px dotted #000;
  border-radius: 12px;
  padding: 0.3rem 0.7rem;
  font-size: 1.2rem;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: transform 0.2s ease;
  font-family: 'Annie Use Your Telescope', cursive;
}
.kitchen-sound-btn:hover {
  transform: scale(1.1);
}



/* Hover for Pork Page === */
.step-img-grid.pork .img-box {
  position: relative;
}


.step-img-grid.pork .img-box::before,
.step-img-grid.pork .img-box::after {
  opacity: 0;
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}

.step-img-grid.pork .img-box:hover::before,
.step-img-grid.pork .img-box:hover::after {
  opacity: 1;
}

/* === Emoji（表情） === */
.img-box.chop::before {
  content: "🔪";
}
.img-box.sizzle::before {
  content: "🔥";
}
.img-box.flip::before {
  content: "🍳";
}
.img-box.toss::before {
  content: "🥢";
}
.img-box.ready::before {
  content: "🍽️";
}

.step-img-grid.pork .img-box::before {
  font-size: 2.2rem;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
}


.img-box.chop::after {
  content: "Chop!";
}
.img-box.sizzle::after {
  content: "Sizzle!";
}
.img-box.flip::after {
  content: "Flip!";
}
.img-box.toss::after {
  content: "Toss!";
}
.img-box.ready::after {
  content: "Serve!";
}

.step-img-grid.pork .img-box::after {
  font-family: 'Annie Use Your Telescope', cursive;
  font-size: 1.2rem;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  color: #000;
  padding: 0.3rem 0.6rem;
  border: 2px dotted #000;
  border-radius: 10px;
  box-shadow: 2px 2px 0 #000;
}

.step-img-grid.pork .img-box {
  width: 260px; 
  height: 340px;  
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease;
}



.dish-card.pink .dish-name {
  background-color: #eba5a3; 
}

.dish-card.blue .dish-name {
  background-color: #9cc2ff;
}


/* ========== PAGE VARIATION: SPICY PEPPERCORN CHICKEN ========== */
body.pepper-page .hero-text .subtitle {
  background: linear-gradient(135deg, #fff2b3, #fdd76a);
  color: #000;
}

body.pepper-page {
  background-color: #FDD76A;
}

.pepper-page .section-block,
.pepper-page .recipe-info,
.pepper-page .memories,
.pepper-page .chef-tips {
  background-color: #FDD76A;
}

.step-img-grid.pepper .row-three {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-img-grid.pepper .img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease;
}

.step-img-grid.pepper .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-img-grid.pepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 1.2rem;
  max-width: 920px;
  margin: 2rem auto; 
}


.step-img-grid.pepper .img-box {
  width: 220px;   
  height: 220px; 
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease;
}


.step-img-grid.pepper .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.pepper-page .chef-tips {
  max-width: 750px;
  margin: 0 auto;
}

.pepper-page .memories {
  border-top: 1.5px solid #000;
}

.dish-card.pink .dish-name {
  background-color: #f79c9c; 
}

.dish-card.blue .dish-name {
  background-color: #aad4ff; 
}

.dish-cards a {
  text-decoration: none;
  color: inherit;
}

.dish-cards a:visited {
  text-decoration: none;
  color: inherit;
}

.dish-cards a:hover {
  text-decoration: none;
  color: inherit;
}

body.pork-page .chef-tips,
body.pepper-page .chef-tips {
  border-top: 1.5px solid #000;
}


.bounce-wave:hover {
  animation: bounceWave 1.2s ease-in-out forwards;
  cursor: pointer;
}

@keyframes bounceWave {
  0%   { transform: translateY(0) rotate(0deg); }
  20%  { transform: translateY(-10px) rotate(-3deg); }
  40%  { transform: translateY(0) rotate(3deg); }
  60%  { transform: translateY(-6px) rotate(-2deg); }
  80%  { transform: translateY(0) rotate(2deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* 通用基础样式（可保留） */
.pepper-page .step-img-grid .img-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 统一暗角遮罩和 emoji 层 */
.pepper-page .img-box::before,
.pepper-page .img-box::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 遮罩层 */
.pepper-page .img-box::after {
  content: "";
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Annie Use Your Telescope', cursive;
  font-size: 1.2rem;
}

.pepper-page .img-box:hover::after {
  opacity: 1;
}

/* Emoji 字体样式 */
.pepper-page .img-box::before {
  font-family: 'Annie Use Your Telescope', cursive;
  font-size: 2.2rem;
  color: white;
  text-shadow: 2px 2px 4px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.pepper-page .img-box:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

/* =========== 每张图不同个性化效果 =========== */

.pepper-page .img-box:nth-child(1):hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 6px 0 #d62828;
}
.pepper-page .img-box:nth-child(1)::before {
  content: "🔪 Slice";
}

.pepper-page .img-box:nth-child(2):hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: 3px 3px 0 #f77f00;
}
.pepper-page .img-box:nth-child(2)::before {
  content: "🌶️ Spice";
}

.pepper-page .img-box:nth-child(3):hover {
  transform: rotate(3deg) scale(1.05);
  box-shadow: -4px 4px 0 #e76f51;
}
.pepper-page .img-box:nth-child(3)::before {
  content: "💥 Coat";
}

.pepper-page .img-box:nth-child(4):hover {
  transform: translateY(5px) rotate(-1deg);
  box-shadow: inset 0 0 10px #333;
}
.pepper-page .img-box:nth-child(4)::before {
  content: "🍳 Fry";
}

.pepper-page .img-box:nth-child(5):hover {
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 5px 5px 0 #fb8500;
}
.pepper-page .img-box:nth-child(5)::before {
  content: "🌟 Crisp";
}

.pepper-page .img-box:nth-child(6):hover {
  transform: scale(1.07) rotate(2deg);
  filter: brightness(1.1);
  box-shadow: 0 0 12px rgba(255, 80, 80, 0.6);
}
.pepper-page .img-box:nth-child(6)::before {
  content: "🔥 Oil In";
}

.pepper-page .img-box:nth-child(7):hover {
  animation: tossShake 0.6s ease-in-out;
}
@keyframes tossShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(4deg); }
  50% { transform: rotate(-3deg); }
  75% { transform: rotate(2deg); }
}
.pepper-page .img-box:nth-child(7)::before {
  content: "🥢 Toss";
}

.pepper-page .img-box:nth-child(8):hover {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 0 14px #ff0054;
}
.pepper-page .img-box:nth-child(8)::before {
  content: "💣 Boom!";
}




/* Responsive */
@media screen and (max-width: 768px) {
  .hero-banner {
    height: 65vh;

  }

  .hero-content {
    padding: 1.5rem 4vw;
  }

  .hero-text .recipe-title {
    font-size: 2.5rem;
  }

  .page-logo-text {
    font-size: 1.6rem;
  }

  .back-link {
    font-size: 1.2rem;
  }

  .tip-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 1rem 0 2rem;
    padding: 0;
    }
    
    .section-title {
      text-align: center;
      font-size: 1.8rem;
      word-break: break-word;
      padding: 0 1rem;
    }
  
    .section-block {
      padding-left: 1rem;
      padding-right: 1rem;
    }

  .dish-cards {
    flex-direction: column;
    align-items: center;
    
  }

  .dish-card {
    width: 55%;
    height: auto;
    margin-bottom: 1rem;
    
  }

  .dish-name {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    height: auto;
    text-align: center;
  }
  
  .method-list {
    padding: 0 1.5rem 0 2rem;  
    font-size: 1rem;
    line-height: 1.9;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-img {
    width: 100px;
  }

  .step-img-grid.pepper {
    grid-template-columns: repeat(2, 1fr);
    }

      body.suanlafen-page .dish-card {
        width: 85%; 
      }
    
      body.pepper-page .dish-card {
        width: 70%; 
      }
    
    body.pork-page .dish-card {
        width: 70%;
    }

}