/* Import Google Fonts phù hợp phong cách tròn trịa dễ thương */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@700;800&family=Nunito:wght@500;600;700;800;900&display=swap');

/* Biến màu sắc riêng của trang hướng dẫn */
:root {
  --guide-bg: #FAF2E9;
  --guide-cream: #FFF8F2;
  --guide-brown-dark: #362118;
  --guide-brown-subtle: #6D5244;
  --guide-brown-badge: #824125;
  --guide-brown-badge-hover: #6D341B;
  --guide-orange-accent: #EB612A;
  --guide-pill-android-bg: #F9E5CA;
  --guide-pill-android-text: #482817;
  --guide-pill-ios-bg: #824125;
  --guide-pill-ios-text: #FFFFFF;
  --guide-btn-bg: #FEE8D5;
  --guide-btn-text: #452414;
  --guide-btn-hover: #FCD5B5;
  --guide-tip-bg: #FFF3E4;
  --guide-tip-border: #F5DEC8;
  --guide-card-border: #F2E3D2;
}

/* ========================================================
   CONTAINER CHÍNH CỦA TRANG HƯỚNG DẪN
   ======================================================== */
.guide-page-container {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 64px - 70px);
  background: var(--guide-bg);
  background: linear-gradient(180deg, #FDF7F0 0%, #FAF1E5 55%, #F6ECE0 100%);
  padding: 42px 20px 80px 20px;
  font-family: 'Nunito', 'Inter', -apple-system, sans-serif;
  color: var(--guide-brown-dark);
  overflow: hidden;
  box-sizing: border-box;
}

/* ========================================================
   CÁC LỚP MÂY & HỌA TIẾT NỀN TRANG TRÍ (CLOUDS & DECOR)
   ======================================================== */

/* Mây bồng bềnh ở phía dưới chân trang */
.guide-cloud-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 95px;
  background-image: radial-gradient(circle at 50% 100%, #FFFFFF 65%, transparent 66%);
  background-size: 140px 95px;
  background-repeat: repeat-x;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.guide-cloud-bottom::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 70px;
  width: 100%;
  height: 80px;
  background-image: radial-gradient(circle at 50% 100%, #FFFDF9 65%, transparent 66%);
  background-size: 180px 80px;
  background-repeat: repeat-x;
  opacity: 0.95;
}

/* Mây viền góc trên */
.guide-cloud-decor-top-left {
  position: absolute;
  top: -40px;
  left: -60px;
  width: 320px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.guide-cloud-decor-top-right {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 340px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* Dấu chân mèo rải rác trên màn hình */
.guide-paw-bg {
  position: absolute;
  color: #ECC8AC;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.3s ease;
  user-select: none;
}

.paw-pos-1 { top: 125px; left: 17%; transform: rotate(-25deg); opacity: 0.85; width: 34px; height: 34px; }
.paw-pos-2 { top: 110px; right: 23%; transform: rotate(20deg); opacity: 0.75; width: 30px; height: 30px; }
.paw-pos-3 { top: 220px; right: 8%; transform: rotate(-15deg); opacity: 0.8; width: 36px; height: 36px; }
.paw-pos-4 { bottom: 120px; left: 4%; transform: rotate(18deg); opacity: 0.75; width: 34px; height: 34px; }
.paw-pos-5 { bottom: 130px; right: 5%; transform: rotate(-22deg); opacity: 0.85; width: 36px; height: 36px; }

/* Ngôi sao lấp lánh ✦ */
.guide-sparkle-bg {
  position: absolute;
  color: #F5A623;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  animation: guideSparkleGlow 3s ease-in-out infinite alternate;
}

.sparkle-pos-1 { top: 155px; right: 16%; font-size: 20px; animation-delay: 0.5s; }
.sparkle-pos-2 { top: 75px; left: 24%; font-size: 16px; animation-delay: 1.2s; }

@keyframes guideSparkleGlow {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.65; }
  100% { transform: scale(1.15) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 6px rgba(245, 166, 35, 0.7)); }
}

/* ========================================================
   KHỐI TIÊU ĐỀ & MÈO PEAKING TRUNG TÂM (HEADER HERO)
   ======================================================== */
.guide-hero-section {
  position: relative;
  max-width: 900px;
  margin: 0 auto 36px auto;
  text-align: center;
  z-index: 3;
}

/* Badge "Hướng dẫn sử dụng" */
.guide-top-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--guide-brown-badge);
  background: linear-gradient(135deg, #8B4426 0%, #76371B 100%);
  color: #FFFFFF;
  padding: 8px 22px;
  border-radius: 9999px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(118, 55, 27, 0.25);
  margin-bottom: 14px;
}

.guide-badge-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(255, 215, 60, 0.75));
}

/* Khối bao tiêu đề và mèo peeking bên cạnh (Căn giữa theo khối hero) */
.guide-title-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* Tiêu đề chính */
.guide-main-title {
  font-family: 'Comfortaa', 'Nunito', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--guide-brown-dark);
  margin: 0 0 10px 0;
  letter-spacing: -0.4px;
}

.guide-main-title .highlight-orange {
  color: var(--guide-orange-accent);
  display: inline-block;
  position: relative;
}

/* Bé mèo thò đầu bên trái (Top-left Peeking Cat) - Cố định đứng yên, không nhảy, không đè chữ */
.guide-cat-peeking-left {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 12px;
  width: 130px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.guide-cat-header-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(76, 48, 34, 0.12));
  user-select: none;
  -webkit-user-drag: none;
}

/* Đoạn phụ đề */
.guide-main-subtitle {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--guide-brown-subtle);
  margin: 0;
  line-height: 1.5;
}

.guide-main-subtitle .heart-icon {
  color: #E54848;
  display: inline-block;
  margin-left: 3px;
  animation: heartPulse 1.8s infinite ease-in-out;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ========================================================
   KHỐI 2 THẺ HƯỚNG DẪN ANDROID & IOS
   ======================================================== */
.guide-cards-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  position: relative;
  z-index: 4;
}

/* Khối bao thẻ đơn */
.guide-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Tab tiêu đề hệ điều hành */
.guide-platform-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9999px;
  padding: 10px 32px;
  font-family: 'Nunito', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: -20px;
  z-index: 3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

/* Pill Android */
.pill-android {
  background: var(--guide-pill-android-bg);
  color: var(--guide-pill-android-text);
  box-shadow: 0 4px 14px rgba(185, 135, 95, 0.2);
}

/* Pill iOS */
.pill-ios {
  background: var(--guide-pill-ios-bg);
  background: linear-gradient(135deg, #8B4426 0%, #76371B 100%);
  color: var(--guide-pill-ios-text);
  box-shadow: 0 4px 16px rgba(118, 55, 27, 0.3);
}

/* Thân card màu trắng bo tròn */
.guide-card-box {
  background: #FFFFFF;
  width: 100%;
  border-radius: 26px;
  border: 1.5px solid var(--guide-card-border);
  box-shadow: 0 10px 30px rgba(145, 100, 65, 0.07);
  padding: 44px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* Phần nội dung bên trong card (Hiển thị Mockup điện thoại ở vị trí trung tâm) */
.guide-card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
}

/* ========================================================
   MOCKUP SMARTPHONE & STICKER POPPING OUT
   ======================================================== */
.phone-mockup-wrap {
  position: relative;
  width: 140px;
  height: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Khung viền thân điện thoại */
.phone-device {
  position: relative;
  width: 125px;
  height: 195px;
  background: #FFFFFF;
  border: 4px solid #2B2827;
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(43, 40, 39, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Tai thỏ / Notch / Dynamic Island */
.phone-notch-android {
  position: absolute;
  top: 8px;
  width: 32px;
  height: 4.5px;
  background: #2B2827;
  border-radius: 4px;
}

.phone-notch-ios {
  position: absolute;
  top: 8px;
  width: 38px;
  height: 6px;
  background: #2B2827;
  border-radius: 6px;
}

/* Logo màn hình điện thoại */
.phone-screen-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -12px;
}

.phone-screen-logo.android-logo {
  color: #79C354;
}

.phone-screen-logo.apple-logo {
  color: #7B7B7F;
}

/* Sticker nổi bật bật ra góc dưới điện thoại */
.phone-sticker-popping {
  position: absolute;
  right: -8px;
  bottom: 8px;
  width: 72px;
  height: 72px;
  background: #FFFFFF;
  border: 3.5px solid #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  z-index: 2;
}

.phone-cat-sticker-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Tia trang trí hành động bên cạnh điện thoại */
.phone-action-ticks {
  position: absolute;
  color: #F5A623;
  pointer-events: none;
}

.phone-action-ticks.ticks-left {
  left: -14px;
  top: 45%;
  transform: translateY(-50%);
}

.phone-action-ticks.ticks-right {
  right: -14px;
  top: 45%;
  transform: translateY(-50%);
}

/* Ngôi sao lấp lánh cạnh sticker */
.phone-sticker-sparkle {
  position: absolute;
  top: -10px;
  left: -8px;
  color: #F5A623;
  font-size: 14px;
  pointer-events: none;
}

/* ========================================================
   NÚT HÀNH ĐỘNG "XEM TẠI ĐÂY >"
   ======================================================== */
.guide-btn-action {
  align-self: center;
  background: var(--guide-btn-bg);
  color: var(--guide-btn-text);
  border: none;
  border-radius: 9999px;
  padding: 12px 42px;
  font-family: 'Nunito', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(123, 62, 37, 0.08);
}

.guide-btn-action svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.8;
  transition: transform 0.2s ease;
}

.guide-btn-action:hover {
  background: var(--guide-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(123, 62, 37, 0.16);
}

.guide-btn-action:hover svg {
  transform: translateX(3px);
}

.guide-btn-action:active {
  transform: translateY(0);
}

/* ========================================================
   THANH MẸO NHỎ PHÍA DƯỚI (TIP BANNER & SLEEPING CAT)
   ======================================================== */
.guide-tip-wrapper {
  position: relative;
  max-width: 890px;
  margin: 44px auto 10px auto;
  z-index: 4;
}

/* Thanh pill mẹo nhỏ */
.guide-tip-pill {
  background: var(--guide-tip-bg);
  border: 1.5px solid var(--guide-tip-border);
  border-radius: 9999px;
  padding: 14px 140px 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 20px rgba(150, 100, 65, 0.07);
  box-sizing: border-box;
}

/* Icon ngôi sao vàng */
.guide-tip-star {
  color: #F5A623;
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.5));
}

/* Nội dung thông báo */
.guide-tip-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #4C3022;
  margin: 0;
  line-height: 1.45;
}

.guide-tip-text strong {
  font-weight: 800;
  color: var(--guide-brown-dark);
}

/* Bé mèo nằm ngủ tì cằm lên thanh mẹo nhỏ (Bottom-Right Cat) */
.guide-cat-sleeping-box {
  position: absolute;
  right: 25px;
  bottom: 0;
  transform: translateY(32%);
  width: 150px;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.guide-cat-footer-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(76, 48, 34, 0.12));
  user-select: none;
  -webkit-user-drag: none;
}

/* Trái tim đỏ bay trên đầu bé mèo */
.guide-cat-sleeping-heart {
  position: absolute;
  top: -14px;
  left: 6px;
  color: #E54848;
  font-size: 16px;
  animation: heartPulse 1.8s infinite ease-in-out;
}

/* ========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ======================================================== */

@media (max-width: 1140px) {
  .guide-cat-peeking-left {
    width: 105px;
    right: calc(100% + 10px);
    bottom: 10px;
  }
}

@media (max-width: 960px) {
  .guide-cat-peeking-left {
    display: none; /* Ẩn mèo peeking khi màn hình thu hẹp để tránh đè tiêu đề */
  }

  .guide-main-title {
    font-size: 30px;
  }
}

@media (max-width: 820px) {
  .guide-cards-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 36px;
  }

  .guide-tip-pill {
    padding: 16px 20px 70px 20px;
    border-radius: 24px;
    flex-direction: column;
    text-align: center;
  }

  .guide-cat-sleeping-box {
    right: 50%;
    transform: translate(50%, 25%);
  }
}

@media (max-width: 520px) {
  .guide-page-container {
    padding: 28px 14px 60px 14px;
  }

  .guide-main-title {
    font-size: 24px;
  }

  .guide-main-subtitle {
    font-size: 14px;
  }

  .guide-card-box {
    padding: 38px 18px 24px 18px;
  }
}

