/* ==========================================
   HOME PAGE – LAYOUT หลัก
   ========================================== */

.home-shell {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ==============================
   BLOCK พื้นฐานของแต่ละ SECTION
   ============================== */

.home-section {
  width: 100%;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #202858, #05091c 65%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  padding-top: 20px;
  padding-right: 20px;
  padding-bottom: 22px;
  padding-left: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* header แต่ละ section */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.section-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff93c4;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.section-more-link {
  font-size: 14px;
  font-weight: 700;
  color: #ff2748;
  text-decoration: none;
  padding-top: 6px;
  padding-right: 10px;
  padding-bottom: 6px;
  padding-left: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 39, 72, 0.7);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.4));
  transition-property: background, transform, box-shadow, border-color, color;
  transition-duration: 0.18s;
  transition-timing-function: ease-out;
}

.section-more-link:hover {
  color: #ffffff;
  border-color: #ff6b8a;
  background: linear-gradient(90deg, #ff2748, #ff6b8a);
  box-shadow: 0 0 18px rgba(255, 107, 138, 0.6);
  transform: translateY(-1px);
}

.section-note {
  margin: 0;
  font-size: 13px;
  color: #b8c2f0;
}

/* ==========================================
   SECTION 1 – ดูวันพีชออนไลน์
   ========================================== */

.section-anime {
  background: radial-gradient(circle at top left, #262f70, #05091c 65%);
}

/* grid ซ้ายใหญ่ ขวา 4 การ์ด */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
}

/* การ์ดใหญ่ */

.feature-main-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #151c3e, #080b1c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.feature-main-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.feature-main-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1);
  transition-property: transform, opacity;
  transition-duration: 0.35s;
  transition-timing-function: ease-out;
}

.feature-main-card:hover .feature-main-image-wrap img {
  transform: scale(1.04);
  opacity: 0.96;
}

.feature-main-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding-top: 6px;
  padding-right: 14px;
  padding-bottom: 6px;
  padding-left: 14px;
  border-radius: 999px;
  background: rgba(5, 7, 26, 0.92);
  color: #ffffff;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.feature-main-tag span {
  font-size: 14px;
  font-weight: 700;
  color: #ffbf60;
}

.feature-main-body {
  padding-top: 16px;
  padding-right: 18px;
  padding-bottom: 18px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-main-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.feature-main-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #c1c8f5;
}

/* การ์ดเล็ก 4 ใบ */

.feature-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-mini-card {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #131938, #050816);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.feature-mini-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 62%;
  overflow: hidden;
}

.feature-mini-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition-property: transform, opacity;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
}

.feature-mini-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding-top: 4px;
  padding-right: 10px;
  padding-bottom: 4px;
  padding-left: 10px;
  border-radius: 999px;
  background: rgba(5, 7, 26, 0.94);
  font-size: 14px;
  color: #ffffff;
}

.feature-mini-card:hover .feature-mini-image-wrap img {
  transform: scale(1.07);
  opacity: 0.9;
}

.feature-mini-body {
  padding-top: 10px;
  padding-right: 12px;
  padding-bottom: 12px;
  padding-left: 12px;
}

.feature-mini-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #c3cbff;
}

/* ==========================================
   SECTION 2 – จุดเริ่มต้น One Piece
   ========================================== */

.section-origin {
  background: radial-gradient(circle at top left, #212752, #050814 65%);
}

.origin-card {
  border-radius: 14px;
  padding-top: 16px;
  padding-right: 16px;
  padding-bottom: 18px;
  padding-left: 16px;
  background: linear-gradient(145deg, #151a3d, #060814);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.origin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.origin-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.origin-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #d1d7ff;
}

.origin-image-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.origin-image-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at top, #28347a, #050814);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.85);
}

.origin-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  transform: scale(1.02);
  transition-property: transform, opacity;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
}

.origin-image-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.origin-image-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding-top: 10px;
  padding-right: 20px;
  padding-bottom: 10px;
  padding-left: 20px;
  border-radius: 999px;
  background: rgba(5, 7, 26, 0.95);
  color: #ffffff;
  font-size: 14px;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.origin-image-caption span {
  font-size: 14px;
  color: #ffc36a;
  font-weight: 600;
}

/* ==========================================
   SECTION 3 – แนะนำการ์ตูนน่าดู
   ========================================== */

.section-recommend {
  background: radial-gradient(circle at top left, #262e64, #05091c 65%);
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recommend-card {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #151a3d, #050814);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transition-property: transform, box-shadow, border-color;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
}

.recommend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

.recommend-image-wrap {
  width: 100%;
  padding-top: 62%;
  position: relative;
  overflow: hidden;
}

.recommend-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition-property: transform, opacity;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
}

.recommend-card:hover .recommend-image-wrap img {
  transform: scale(1.08);
  opacity: 0.95;
}

.recommend-body {
  padding-top: 12px;
  padding-right: 14px;
  padding-bottom: 14px;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recommend-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.recommend-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #c6cdf8;
}

/* ==========================================
   RESPONSIVE – Tablet & Mobile
   ========================================== */

@media (max-width: 992px) {

  .home-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-side-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .origin-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .origin-image-wrap {
    margin-top: 8px;
  }

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

@media (max-width: 600px) {

  .home-section {
    padding-top: 16px;
    padding-right: 14px;
    padding-bottom: 18px;
    padding-left: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-more-link {
    align-self: flex-start;
  }

  .feature-side-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .recommend-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-main-title {
    font-size: 17px;
  }

  .origin-text p {
    font-size: 13px;
  }
}
