/* 全站樣式 11/16：週學習表 APP 風格（英雄卡、時間軸、欄位網格）、素材庫、FB 發文模組 */
/* ===== 週學習表 APP 風格設計 ===== */

/* 本週概覽英雄卡（列表頂部） */
.wt-week-hero {
  background: linear-gradient(135deg, var(--accent) 0%, #C9652A 45%, var(--green) 100%);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(244,162,97,0.28);
}
.wt-week-hero::before {
  content: '📋';
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 4.5rem; opacity: 0.13; line-height: 1;
  pointer-events: none;
}
.wt-week-hero-eyebrow {
  font-size: 0.75rem; font-weight: 700;
  opacity: 0.82; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 5px;
}
.wt-week-hero-date {
  font-size: 1.0625rem; font-weight: 800;
  margin-bottom: 16px; letter-spacing: 0.01em;
}
.wt-week-hero-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.wt-week-stat {
  background: rgba(255,255,255,0.22);
  border-radius: 16px; padding: 9px 14px;
  min-width: 52px; text-align: center;
  backdrop-filter: blur(6px); flex: 1;
}
.wt-week-stat-num { font-size: 1.375rem; font-weight: 900; line-height: 1; }
.wt-week-stat-lbl { font-size: 0.6rem; font-weight: 700; opacity: 0.88; margin-top: 3px; }

/* 列表卡片 */
.wt-card-v2 {
  display: flex;
  background: var(--card);
  border-radius: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--separator);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 3px rgba(60,40,20,.08);
  overflow: hidden;
}
.wt-card-v2:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(60,40,20,.14); }
.wt-card-v2:active { transform: scale(0.985); }
.wt-card-v2-accent { width: 5px; flex-shrink: 0; }
.wt-card-v2-body { flex: 1; padding: 14px 16px; }
.wt-card-v2-top {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 6px;
}
.wt-card-v2-class {
  font-size: 0.75rem; font-weight: 800;
  color: var(--accent-dark);
  background: rgba(244,162,97,0.12);
  padding: 3px 10px; border-radius: 16px;
}
.wt-card-v2-badge {
  font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 16px;
}
.wt-card-v2-theme {
  font-size: 1.0625rem; font-weight: 800;
  color: var(--text); margin-bottom: 4px; line-height: 1.3;
}
.wt-card-v2-week {
  font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 10px;
}
.wt-card-v2-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.wt-card-v2-creator { font-size: 0.75rem; color: var(--text-secondary); }

/* ── 預覽頁 APP 設計 ── */
.wt-preview-v2 { background: var(--bg); }

/* 英雄卡（使用系統主色橘→綠） */
.wt-hero-v2 {
  background: linear-gradient(135deg, var(--accent) 0%, #C9652A 40%, var(--green) 100%);
  border-radius: 16px; padding: 22px 20px 20px;
  margin-bottom: 16px; color: white;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 28px rgba(244,162,97,0.3);
}
.wt-hero-v2::before {
  content: '';
  position: absolute; top: -35px; right: -25px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  pointer-events: none;
}
.wt-hero-v2::after {
  content: '';
  position: absolute; bottom: -45px; right: 45px;
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.08); border-radius: 50%;
  pointer-events: none;
}
.wt-hero-school-v2 {
  font-size: 0.75rem; font-weight: 700;
  opacity: 0.88; margin-bottom: 8px; letter-spacing: 0.06em;
}
.wt-hero-class-tag {
  display: inline-block;
  background: rgba(255,255,255,0.25); border-radius: 8px;
  padding: 3px 12px; font-size: 0.8125rem; font-weight: 800;
  margin-bottom: 12px; letter-spacing: 0.05em;
}
.wt-hero-theme-v2 {
  font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 900;
  margin-bottom: 14px; line-height: 1.2;
  position: relative; letter-spacing: -0.01em;
}
.wt-hero-chips {
  display: flex; flex-wrap: wrap; gap: 6px; position: relative;
}
.wt-hero-chip {
  background: rgba(255,255,255,0.2);
  border-radius: 16px; padding: 4px 11px;
  font-size: 0.75rem; font-weight: 600;
}
.wt-hero-chip-approved { background: rgba(52,199,89,0.35); font-weight: 800; }
.wt-hero-chip-pending  { background: rgba(255,193,7,0.4);  font-weight: 800; }
.wt-hero-chip-draft    { background: rgba(255,255,255,0.18); }
.wt-hero-chip-returned { background: rgba(231,76,60,0.4);  font-weight: 800; }

/* 區塊標題列 */
.wt-section-hd {
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 12px;
}
.wt-section-hd-bar {
  width: 4px; height: 20px; border-radius: 8px;
  background: linear-gradient(180deg, var(--accent), var(--green));
  flex-shrink: 0;
}
.wt-section-hd-text {
  font-size: 0.8125rem; font-weight: 800;
  color: var(--text); letter-spacing: 0.04em;
}
.wt-section-hd-count {
  margin-left: auto;
  font-size: 0.75rem; color: var(--text-secondary); font-weight: 600;
}

/* 資訊卡片橫排 — 手機自動折行 */
.wt-info-cards-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.wt-info-card-v2 {
  background: var(--card); border-radius: 16px;
  padding: 16px 14px; border: 1px solid var(--separator);
  box-shadow: var(--shadow);
}
.wt-info-icon-wrap {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center;
  justify-content: center; font-size: 1.0625rem;
  margin-bottom: 10px;
}
.wt-info-icon-orange { background: rgba(244,162,97,0.15); }
.wt-info-icon-green  { background: rgba(106,176,123,0.15); }
.wt-info-icon-purple { background: rgba(155,89,182,0.15); }
.wt-info-card-label {
  font-size: 0.75rem; color: var(--text-secondary);
  font-weight: 700; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.wt-info-card-value {
  font-size: 0.9375rem; color: var(--text);
  font-weight: 600; line-height: 1.45; white-space: pre-wrap;
}

/* 活動時間軸 */
.wt-act-item-v2 { display: flex; gap: 12px; }
.wt-act-dot-col {
  display: flex; flex-direction: column;
  align-items: center; flex-shrink: 0;
}
.wt-act-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 800; color: white;
  flex-shrink: 0; box-shadow: 0 1px 3px rgba(60,40,20,.08);
}
.wt-act-line {
  width: 2px; flex: 1; min-height: 16px;
  background: var(--separator); margin: 4px 0; border-radius: 2px;
}
.wt-act-card {
  flex: 1; min-width: 0; background: var(--card);
  border-radius: 16px; padding: 13px 15px;
  margin-bottom: 10px; border: 1px solid var(--separator);
  border-left-width: 3px; box-shadow: var(--shadow);
  word-break: break-word;
}
.wt-act-name-v2 {
  font-size: 0.9375rem; font-weight: 800;
  color: var(--text); margin-bottom: 5px;
}
.wt-act-goal-v2 {
  font-size: 0.8125rem; color: var(--text-secondary);
  line-height: 1.55; white-space: pre-wrap;
}

/* 自訂欄位網格 — 手機單欄，桌機雙欄 */
.wt-custom-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 520px) { .wt-custom-grid { grid-template-columns: 1fr 1fr; } }
.wt-custom-card {
  background: var(--card); border-radius: 16px;
  padding: 14px; border: 1px solid var(--separator);
  box-shadow: var(--shadow);
}
.wt-custom-card-label {
  font-size: 0.75rem; font-weight: 800;
  color: var(--accent-dark); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.07em;
  display: flex; align-items: center; gap: 5px;
}
.wt-custom-card-label::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.wt-custom-card-content {
  font-size: 0.8125rem; color: var(--text);
  line-height: 1.55; white-space: pre-wrap;
}

/* 在家延伸 + 注意事項 — 手機單欄，桌機雙欄 */
.wt-bottom-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .wt-bottom-grid { grid-template-columns: 1fr 1fr; } }
.wt-bottom-card { border-radius: 16px; padding: 16px; }
.wt-bottom-home {
  background: linear-gradient(145deg, rgba(106,176,123,0.12), rgba(106,176,123,0.22));
  border: 1px solid rgba(106,176,123,0.3);
}
.wt-bottom-notice {
  background: linear-gradient(145deg, rgba(244,162,97,0.1), rgba(244,162,97,0.2));
  border: 1px solid rgba(244,162,97,0.35);
}
.wt-bottom-title {
  font-size: 0.8125rem; font-weight: 800; margin-bottom: 8px;
}
.wt-bottom-home   .wt-bottom-title { color: #3E8E57; }
.wt-bottom-notice .wt-bottom-title { color: #E07B35; }
.wt-bottom-text {
  font-size: 0.8125rem; line-height: 1.55; white-space: pre-wrap;
}
.wt-bottom-home   .wt-bottom-text { color: #1F4F2E; }
.wt-bottom-notice .wt-bottom-text { color: #A8531A; }

/* 狀態底欄 */
.wt-footer-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: 20px;
  padding: 12px 16px;
  background: var(--card); border-radius: 16px;
  border: 1px solid var(--separator);
  font-size: 0.75rem;
}
.wt-footer-bar-status { font-weight: 700; }
.wt-footer-bar-return { color: var(--red); margin-left: 4px; }
.wt-footer-bar-creator { margin-left: auto; color: var(--text-secondary); }

/* 素材庫樣式 */
.wt-lib-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.wt-lib-search-bar input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 1.5px solid var(--separator);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--card);
}
.wt-lib-search-bar select {
  padding: 10px 12px;
  border: 1.5px solid var(--separator);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--card);
}
.wt-lib-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wt-lib-card {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--separator);
  padding: 12px 16px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.wt-lib-card:hover {
  box-shadow: 0 1px 3px rgba(60,40,20,.08);
}
.wt-lib-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.wt-lib-card-content {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.wt-lib-card-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.4;
}
.wt-lib-card-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.wt-lib-type-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.wt-lib-apply-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 8px;
}
.wt-lib-apply-btn:hover {
  background: var(--accent);
  color: white;
}

/* ====== FB 發文模組 ====== */
#fb-share-overlay,
#fb-approve-overlay,
#fb-reject-overlay,
#fb-edit-overlay {
  animation: fadeIn 0.18s ease;
}

#fb-share-overlay > div,
#fb-approve-overlay > div,
#fb-edit-overlay > div {
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#fb-share-photo-grid > div:hover {
  transform: scale(1.03);
  transition: transform 0.15s;
}

