/*
Theme Name: 善同教育中心主題
Theme URI: https://betterlearningtogether.org
Description: 為善同教育中心量身打造的自訂主題，整合 Tailwind CSS + 導覽列 + 字體規範
Author: 善同教育團隊
Version: 1.0
*/

/* ==========================================
   全域字體設定（符合字體規範）
   ========================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0.02em;
  color: #374151; /* text-gray-700 */
  line-height: 1.75; /* leading-relaxed */
}

/* 段落統一使用 text-base */
p {
  font-size: 1rem; /* 16px */
  line-height: 1.75;
}

/* 標題系統（響應式） */
h1 {
  font-size: 1.875rem; /* 30px */
  line-height: 1.2;
}

@media (min-width: 640px) {
  h1 {
    font-size: 2.5rem; /* 40px */
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem; /* 48px */
  }
}

h2 {
  font-size: 1.75rem; /* 28px */
  line-height: 1.3;
}

@media (min-width: 640px) {
  h2 {
    font-size: 2rem; /* 32px */
  }
}

h3 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.4;
}

/* 連結顏色 */
a {
  color: #2563eb; /* text-blue-600 */
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e40af; /* text-blue-700 */
}

/* 重置 WordPress 預設樣式 */
.alignnone {
  margin: 1.5rem 0;
}

.aligncenter {
  display: block;
  margin: 1.5rem auto;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   導覽列樣式（配合 header.php）
   ========================================== */
.dropdown-arrow {
  transition: transform 0.3s ease;
}

.group:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.group:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* ==========================================
   WordPress 編輯器相容性
   ========================================== */
.wp-block-image {
  margin: 2rem 0;
}

.wp-block-quote {
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
}