/**
 * Coaching Methods Page Styles
 * 教練方法頁面專屬樣式
 */

/* ==================== Hero 區域 ==================== */
.coaching-methods-hero {
  position: relative;
  overflow: hidden;
}

.coaching-methods-hero-illustration img {
  max-width: 480px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--wp--preset--color--black) 10%, transparent));
}

@media (max-width: 782px) {
  .coaching-methods-hero .wp-block-columns {
    flex-direction: column-reverse;
  }
  
  .coaching-methods-hero-illustration {
    margin-bottom: var(--wp--preset--spacing--50);
  }
  
  .coaching-methods-hero-illustration img {
    max-width: 320px;
  }
}

/* ==================== 導航卡片區域 ==================== */
/* 注意：導航卡片樣式已整合到 category-cards-headspace.css，此處不重複定義 */
.coaching-methods-categories-section {
  position: relative;
}

/* ==================== 內容區塊 ==================== */
.coaching-method-section {
  scroll-margin-top: 100px; /* 錨點偏移 */
  position: relative;
  overflow: hidden;
}

/* 確保內容在裝飾之上 */
.coaching-method-section > * {
  position: relative;
  z-index: 1;
}

/* ==================== 雲朵裝飾基礎樣式 ==================== */
/* 使用 ::before 和 ::after 偽元素 + method-header 的偽元素來創建 2-3 個雲朵 */
/* 重要：不使用 blur 濾鏡，僅用 border-radius 創造不規則形狀，位置在模塊內部 */

/* 雲朵基類 */
.coaching-method-section::before,
.coaching-method-section::after,
.coaching-method-section .method-header::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.6s ease;
}

/* ==================== Love（感情） - 主色系 ==================== */
#love-methods::before {
  top: 10%;
  right: 5%;
  width: 240px;
  height: 240px;
  background-color: var(--wp--preset--color--primary);
  opacity: 0.18;
  border-radius: 65% 35% 58% 42% / 52% 60% 40% 48%;
}

#love-methods::after {
  bottom: 15%;
  left: 3%;
  width: 280px;
  height: 280px;
  background-color: var(--wp--preset--color--primary);
  opacity: 0.15;
  border-radius: 48% 52% 65% 35% / 60% 45% 55% 40%;
}

#love-methods .method-header::before {
  top: 50%;
  left: 8%;
  width: 200px;
  height: 200px;
  background-color: var(--wp--preset--color--primary);
  opacity: 0.2;
  border-radius: 70% 30% 50% 50% / 45% 65% 35% 55%;
}

/* ==================== Career（職涯） - Career 色系 ==================== */
#career-methods::before {
  top: 8%;
  left: 6%;
  width: 260px;
  height: 260px;
  background-color: var(--wp--preset--color--career);
  opacity: 0.19;
  border-radius: 55% 45% 60% 40% / 58% 50% 50% 42%;
}

#career-methods::after {
  bottom: 12%;
  right: 4%;
  width: 220px;
  height: 220px;
  background-color: var(--wp--preset--color--career);
  opacity: 0.17;
  border-radius: 62% 38% 52% 48% / 48% 58% 42% 52%;
}

#career-methods .method-header::before {
  top: 45%;
  right: 10%;
  width: 190px;
  height: 190px;
  background-color: var(--wp--preset--color--career);
  opacity: 0.21;
  border-radius: 50% 50% 65% 35% / 60% 40% 60% 40%;
}

/* ==================== Family（家庭） - Family 色系 ==================== */
#family-methods::before {
  top: 12%;
  right: 7%;
  width: 250px;
  height: 250px;
  background-color: var(--wp--preset--color--family);
  opacity: 0.18;
  border-radius: 58% 42% 48% 52% / 65% 35% 65% 35%;
}

#family-methods::after {
  bottom: 10%;
  left: 5%;
  width: 240px;
  height: 240px;
  background-color: var(--wp--preset--color--family);
  opacity: 0.16;
  border-radius: 45% 55% 60% 40% / 50% 60% 40% 50%;
}

#family-methods .method-header::before {
  top: 48%;
  left: 12%;
  width: 210px;
  height: 210px;
  background-color: var(--wp--preset--color--family);
  opacity: 0.2;
  border-radius: 68% 32% 55% 45% / 52% 58% 42% 48%;
}

/* ==================== Wellness（健康） - Wellness 色系 ==================== */
#wellness-methods::before {
  top: 15%;
  left: 4%;
  width: 270px;
  height: 270px;
  background-color: var(--wp--preset--color--wellness);
  opacity: 0.2;
  border-radius: 60% 40% 52% 48% / 58% 48% 52% 42%;
}

#wellness-methods::after {
  bottom: 18%;
  right: 6%;
  width: 230px;
  height: 230px;
  background-color: var(--wp--preset--color--wellness);
  opacity: 0.18;
  border-radius: 52% 48% 62% 38% / 48% 55% 45% 52%;
}

#wellness-methods .method-header::before {
  top: 42%;
  right: 9%;
  width: 195px;
  height: 195px;
  background-color: var(--wp--preset--color--wellness);
  opacity: 0.22;
  border-radius: 65% 35% 50% 50% / 55% 60% 40% 45%;
}

/* ==================== Growth（成長） - Growth 色系 ==================== */
#growth-methods::before {
  top: 9%;
  right: 8%;
  width: 255px;
  height: 255px;
  background-color: var(--wp--preset--color--growth);
  opacity: 0.19;
  border-radius: 62% 38% 58% 42% / 50% 62% 38% 50%;
}

#growth-methods::after {
  bottom: 14%;
  left: 7%;
  width: 265px;
  height: 265px;
  background-color: var(--wp--preset--color--growth);
  opacity: 0.17;
  border-radius: 48% 52% 65% 35% / 60% 45% 55% 40%;
}

#growth-methods .method-header::before {
  top: 52%;
  left: 11%;
  width: 205px;
  height: 205px;
  background-color: var(--wp--preset--color--growth);
  opacity: 0.21;
  border-radius: 55% 45% 60% 40% / 62% 48% 52% 38%;
}

/* ==================== Finance（財務） - Finance 色系 ==================== */
#finance-methods::before {
  top: 11%;
  left: 5%;
  width: 245px;
  height: 245px;
  background-color: var(--wp--preset--color--finance);
  opacity: 0.18;
  border-radius: 58% 42% 52% 48% / 65% 40% 60% 35%;
}

#finance-methods::after {
  bottom: 16%;
  right: 4%;
  width: 235px;
  height: 235px;
  background-color: var(--wp--preset--color--finance);
  opacity: 0.16;
  border-radius: 50% 50% 68% 32% / 52% 58% 42% 48%;
}

#finance-methods .method-header::before {
  top: 46%;
  right: 12%;
  width: 200px;
  height: 200px;
  background-color: var(--wp--preset--color--finance);
  opacity: 0.2;
  border-radius: 60% 40% 55% 45% / 58% 50% 50% 42%;
}

/* ==================== Life（生活） - Life 色系 ==================== */
#life-methods::before {
  top: 13%;
  right: 6%;
  width: 260px;
  height: 260px;
  background-color: var(--wp--preset--color--life);
  opacity: 0.19;
  border-radius: 65% 35% 48% 52% / 55% 62% 38% 45%;
}

#life-methods::after {
  bottom: 11%;
  left: 8%;
  width: 250px;
  height: 250px;
  background-color: var(--wp--preset--color--life);
  opacity: 0.17;
  border-radius: 52% 48% 60% 40% / 62% 45% 55% 38%;
}

#life-methods .method-header::before {
  top: 44%;
  left: 10%;
  width: 215px;
  height: 215px;
  background-color: var(--wp--preset--color--life);
  opacity: 0.21;
  border-radius: 58% 42% 65% 35% / 50% 58% 42% 50%;
}

/* ==================== Stress（壓力） - Stress 色系 ==================== */
#stress-methods::before {
  top: 14%;
  left: 7%;
  width: 275px;
  height: 275px;
  background-color: var(--wp--preset--color--wellness);
  opacity: 0.2;
  border-radius: 62% 38% 55% 45% / 58% 48% 52% 42%;
}

#stress-methods::after {
  bottom: 13%;
  right: 5%;
  width: 240px;
  height: 240px;
  background-color: var(--wp--preset--color--wellness);
  opacity: 0.18;
  border-radius: 48% 52% 62% 38% / 65% 42% 58% 35%;
}

#stress-methods .method-header::before {
  top: 49%;
  right: 11%;
  width: 210px;
  height: 210px;
  background-color: var(--wp--preset--color--wellness);
  opacity: 0.22;
  border-radius: 70% 30% 50% 50% / 52% 60% 40% 48%;
}

/* ==================== Relationships（人際關係） - Relationships 色系 ==================== */
#relationships-methods::before {
  top: 10%;
  right: 9%;
  width: 265px;
  height: 265px;
  background-color: var(--wp--preset--color--family);
  opacity: 0.19;
  border-radius: 55% 45% 62% 38% / 60% 48% 52% 40%;
}

#relationships-methods::after {
  bottom: 17%;
  left: 6%;
  width: 270px;
  height: 270px;
  background-color: var(--wp--preset--color--family);
  opacity: 0.17;
  border-radius: 65% 35% 50% 50% / 55% 62% 38% 45%;
}

#relationships-methods .method-header::before {
  top: 47%;
  left: 13%;
  width: 200px;
  height: 200px;
  background-color: var(--wp--preset--color--family);
  opacity: 0.21;
  border-radius: 58% 42% 68% 32% / 52% 55% 45% 48%;
}

.method-header {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--40);
  margin-bottom: var(--wp--preset--spacing--50);
  position: relative; /* 為 method-header::before 提供定位參考 */
}

.method-icon-large {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-icon-large svg {
  width: 40px;
  height: 40px;
}

.method-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.method-list li {
  position: relative;
  display: block;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--70) var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
  margin-bottom: var(--wp--preset--spacing--20);
  background-color: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--border-radius--medium, 12px);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--wp--preset--color--black) 6%, transparent);
  transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--wp--preset--color--contrast);
}

.method-list li:hover {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--black) 12%, transparent);
  transform: translateY(-4px);
}

.method-list li strong {
  font-weight: 600;
  color: inherit;
}

.method-title-en {
  font-weight: 500;
  font-size: 0.9em;
  color: var(--wp--preset--color--gray-600);
}

.method-list li span[aria-label*="證據"] {
  position: absolute;
  top: var(--wp--preset--spacing--20);
  right: var(--wp--preset--spacing--20);
  margin-left: 0 !important;
  z-index: 1;
}

/* 移除圆点，改用左侧彩色边框 */
.method-list li::before {
  content: '';
  position: absolute;
  left: var(--wp--preset--spacing--20);
  top: var(--wp--preset--spacing--30);
  bottom: var(--wp--preset--spacing--30);
  width: 4px;
  border-radius: var(--wp--custom--border-radius--full, 9999px);
  background: linear-gradient(180deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
}

.method-list-accent li {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  box-shadow: var(--wp--custom--box-shadow--primary);
}

.method-list-accent li:hover {
  box-shadow: var(--wp--custom--box-shadow--primary);
}

.method-list-accent li::before {
  background: var(--wp--preset--color--white);
  opacity: 0.6;
}

.method-list-accent .method-title-en {
  color: var(--wp--preset--color--white);
  opacity: 0.85;
}

.method-list-accent li span[aria-label*="證據"] {
  background: var(--wp--preset--color--white) !important;
}

/* ==================== 適合情境列表（優雅設計，無圓點） ==================== */
.coaching-methods-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: var(--wp--preset--spacing--30) 0;
}

.coaching-methods-list li {
  position: relative;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--wp--preset--color--white) 0%, var(--wp--preset--color--custom-fafafc) 100%);
  border-radius: 12px;
  border-left: 3px solid var(--wp--preset--color--primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--wp--preset--color--contrast);
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--wp--preset--color--black) 4%, transparent);
}

.coaching-methods-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wp--preset--color--black) 8%, transparent);
  background: linear-gradient(135deg, var(--wp--preset--color--white) 0%, var(--wp--preset--color--custom-f5f7fa) 100%);
}

/* 移除箭头，保持简洁 */
.coaching-methods-list li::before {
  content: none;
}

/* 响应式 */
@media (max-width: 600px) {
  .coaching-methods-list li {
    padding: 14px 16px;
    font-size: 15px;
  }
}

/* ==================== 雲朵裝飾響應式 ==================== */
/* 平板 (600px - 1199px)：縮小雲朵尺寸 */
@media (min-width: 600px) and (max-width: 1199px) {
  .coaching-method-section::before,
  .coaching-method-section::after {
    width: 180px;
    height: 180px;
  }

  .coaching-method-section .method-header::before {
    width: 150px;
    height: 150px;
  }
}

/* 手機 (< 600px)：大幅縮小雲朵，降低透明度 */
@media (max-width: 600px) {
  .coaching-method-section::before,
  .coaching-method-section::after {
    width: 120px;
    height: 120px;
    opacity: 0.12 !important; /* 進一步降低透明度，避免干擾閱讀 */
  }

  /* 手機端隱藏第三個雲朵，保持簡潔 */
  .coaching-method-section .method-header::before {
    display: none;
  }
}


/* 證據徽章 */
.evidence-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 12px;
  white-space: nowrap;
}

.evidence-badge-1 {
  background-color: var(--wp--preset--color--primary-50);
  color: var(--wp--preset--color--primary);
}

.evidence-badge-2 {
  background-color: var(--wp--preset--color--wellness-50);
  color: var(--wp--preset--color--wellness-600);
}

.evidence-badge-3 {
  background-color: var(--wp--preset--color--growth-50);
  color: var(--wp--preset--color--growth-600);
}

/* ==================== 證據等級說明 ==================== */
.evidence-explanation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wp--preset--spacing--40);
  margin-bottom: var(--wp--preset--spacing--60);
}

.evidence-card {
  padding: var(--wp--preset--spacing--40);
  border-radius: 16px;
  border: 2px solid;
  position: relative;
}

.evidence-card-icon {
  font-size: 32px;
  margin-bottom: var(--wp--preset--spacing--20);
}

.evidence-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--wp--preset--spacing--20);
}

.evidence-card p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: var(--wp--preset--spacing--20);
}

.evidence-card ul {
  font-size: 14px;
  color: var(--wp--preset--color--gray-600);
  padding-left: var(--wp--preset--spacing--30);
}

@media (max-width: 1200px) {
  .evidence-explanation-cards {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--30);
  }
}

/* ==================== 免責聲明框 ==================== */
.disclaimer-box {
  padding: var(--wp--preset--spacing--50);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--wp--preset--color--custom-fff4e6) 0%, var(--wp--preset--color--custom-ffe4cc) 100%);
  border: 2px solid var(--wp--preset--color--primary);
}

.disclaimer-box h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--wp--preset--spacing--30);
  color: var(--wp--preset--color--contrast);
}

.disclaimer-box ul {
  font-size: 15px;
  line-height: 1.8;
  color: var(--wp--preset--color--gray-700);
  padding-left: var(--wp--preset--spacing--40);
}

.disclaimer-box li {
  margin-bottom: var(--wp--preset--spacing--20);
}

/* ==================== 最終 CTA ==================== */
.coaching-methods-cta {
  text-align: center;
}

.coaching-methods-cta h2 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: var(--wp--preset--spacing--20);
}

.coaching-methods-cta p {
  font-size: 18px;
  color: var(--wp--preset--color--gray-600);
  margin-bottom: var(--wp--preset--spacing--40);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== 平滑滾動 ==================== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .method-list li,
  .method-icon-large {
    transition: none;
  }

  /* 無障礙：移除雲朵動畫 */
  .coaching-method-section::before,
  .coaching-method-section::after,
  .coaching-method-section .method-header::before {
    transition: none;
  }
}

/* ==================== 無障礙：焦點態 ==================== */
/* 注意：category-card 焦點態已在 category-cards-headspace.css 中定義 */
.method-list li:focus-within {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

/* ==================== 高對比度模式支持 ==================== */
@media (prefers-contrast: high) {
  .coaching-method-section::before,
  .coaching-method-section::after,
  .coaching-method-section .method-header::before {
    display: none;
  }
}

/* ==================== 打印樣式 ==================== */
@media print {
  .coaching-methods-hero-illustration,
  .method-icon-large,
  .evidence-card-icon {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .method-list li,
  .evidence-card {
    break-inside: avoid;
  }

  /* 打印時隱藏裝飾元素 */
  .coaching-method-section::before,
  .coaching-method-section::after,
  .coaching-method-section .method-header::before {
    display: none;
  }
}
