/* ==========================================================================
Weiß Personal Website - Social Light Mode Theme (社交淺色模式)
Background: Top (#f6eacf) to Bottom (#8888cc) Smooth Gradient
========================================================================== */

html.social-mode {
  --bg-color: #f6eacf;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(136, 136, 204, 0.35);
  --hover-bg: rgba(246, 234, 207, 0.65);
  --text-main: #222233;
  --text-muted: #555566;

  /* 漸層雙色：全面採用淺紫色 #8888cc */
  --color-top: #8888cc;
  --color-bottom: #8888cc;
  --primary-color: #8888cc;
  --accent-gradient: linear-gradient(135deg, #8888cc 0%, #a3a3e6 100%);
}

/* 🟢 全域背景 */
html.social-mode body {
  background-color: #8888cc;
  color: var(--text-main);
}

html.social-mode body::before {
  background: linear-gradient(180deg, #f6eacf 0%, rgba(246, 234, 207, 0.85) 45%, #8888cc 100%);
}

/* 🟢 全頁面字體顏色覆蓋（深色系非死黑） */
html.social-mode h1,
html.social-mode h2,
html.social-mode h3,
html.social-mode h4,
html.social-mode h5,
html.social-mode h6 {
  color: #222233 !important;
}

html.social-mode p,
html.social-mode li,
html.social-mode article,
html.social-mode .prose,
html.social-mode .post-content,
html.social-mode .markdown-body,
html.social-mode .post-body {
  color: #222233 !important;
}

html.social-mode .back-link,
html.social-mode .back-btn,
html.social-mode .post-meta,
html.social-mode .blog-meta,
html.social-mode .blog-date,
html.social-mode .blog-read-time,
html.social-mode a[href*="/blog"] {
  color: #555566 !important;
}

/* 導覽列與選單 */
html.social-mode .navbar {
  background-color: rgba(246, 234, 207, 0.85);
  border-bottom-color: rgba(136, 136, 204, 0.3);
}

html.social-mode .logo {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 🌐 語言切換選擇選單美化 */
html.social-mode .minimal-lang-select {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(136, 136, 204, 0.4);
  color: #222233;
  box-shadow: 0 2px 8px rgba(136, 136, 204, 0.12);
}

/* 改為高質感純白底色與紫灰色文字，告別米黃色 */
html.social-mode .minimal-lang-select option {
  background: #ffffff !important;
  color: #333344 !important;
  padding: 8px 12px;
}

/* 🎛️ 單一膠囊按鈕社交風樣式 */
html.social-mode .mode-toggle-switch {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(136, 136, 204, 0.35);
}

html.social-mode .toggle-glider {
  background: var(--accent-gradient);
  box-shadow: 0 2px 10px rgba(136, 136, 204, 0.4);
}

/* 🎵 社交模式亮色 CD 唱片 (徹底移除紫光外圈) */
html.social-mode .mini-vinyl-disc,
html.social-mode .mini-vinyl-disc:hover,
html.social-mode .mini-vinyl-disc.playing {
  background: radial-gradient(circle, #ffffff 30%, #f4f4f6 60%, #e4e4e8 100%) !important;
  border: 2px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

html.social-mode .mini-vinyl-disc .vinyl-note {
  color: #555566 !important;
  opacity: 0.9 !important;
}

/* 🎨 社交模式高質感半透明玻璃側邊欄 */
html.social-mode .sidebar {
  background: rgba(253, 251, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(136, 136, 204, 0.25);
  box-shadow: 10px 0 30px rgba(136, 136, 204, 0.15);
}

html.social-mode .sidebar-header {
  border-bottom-color: rgba(136, 136, 204, 0.2);
}

html.social-mode .sidebar-header .menu-btn {
  background: rgba(136, 136, 204, 0.1);
  border-color: rgba(136, 136, 204, 0.25);
  color: #8888cc;
}

html.social-mode .sidebar-header .menu-btn:hover {
  background: rgba(136, 136, 204, 0.2);
  color: #222233;
}

html.social-mode .sidebar-menu li a {
  color: #444455;
  transition: all 0.25s ease;
}

html.social-mode .sidebar-menu li a:hover {
  background: rgba(136, 136, 204, 0.1);
  color: #8888cc;
  transform: translateX(4px);
}

html.social-mode .sidebar-menu li a.active {
  background: rgba(136, 136, 204, 0.18);
  color: #8888cc;
  font-weight: 700;
  border: 1px solid rgba(136, 136, 204, 0.25);
}

html.social-mode .sidebar-menu li a.active::before {
  background: linear-gradient(180deg, #8888cc, #a3a3e6);
  box-shadow: 0 0 8px rgba(136, 136, 204, 0.4);
}

/* 卡片與區塊 */
html.social-mode .profile-card,
html.social-mode .section,
html.social-mode .info-card,
html.social-mode .exp-card,
html.social-mode .portfolio-card,
html.social-mode .blog-card,
html.social-mode .contact-card {
  background-color: rgba(255, 255, 255, 0.78);
  border-color: rgba(136, 136, 204, 0.3);
  box-shadow: 0 8px 24px rgba(136, 136, 204, 0.12);
}

html.social-mode .info-card:hover,
html.social-mode .exp-card:hover,
html.social-mode .portfolio-card:hover,
html.social-mode .blog-card:hover,
html.social-mode .contact-card:hover {
  background-color: rgba(255, 255, 255, 0.92);
  border-color: rgba(136, 136, 204, 0.55);
  box-shadow: 0 10px 28px rgba(136, 136, 204, 0.25);
}

/* 表單與按鈕適應 */
html.social-mode input,
html.social-mode textarea {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(136, 136, 204, 0.35);
  color: #222233;
}

html.social-mode .btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
}

html.social-mode .btn-outline {
  border-color: rgba(136, 136, 204, 0.4);
  color: #222233;
}

/* 🏷️ 卡片內小標籤 (Tag Badges) 社交模式懸浮高亮效果 */
html.social-mode .tag {
  background: rgba(136, 136, 204, 0.15);
  border-color: rgba(136, 136, 204, 0.35);
  color: #8888cc;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

html.social-mode .tag:hover {
  background: #8888cc !important;
  color: #ffffff !important;
  border-color: #8888cc !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(136, 136, 204, 0.35);
}

/* ==========================================================================
🏷️ 分類篩選鈕（對齊 style.css 規格）
========================================================================== */

html.social-mode .filter-pills {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

html.social-mode .filter-btn {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(136, 136, 204, 0.35);
  color: #555566;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
}

html.social-mode .filter-btn:hover,
html.social-mode .filter-btn.active {
  background: #8888cc !important;
  color: #ffffff !important;
  border-color: #8888cc !important;
  font-weight: 600;
}

/* ==========================================================================
🚫 專業模式與社交模式 顯隱控制 (Pro vs Social Mode Visibility)
========================================================================== */

/* 1. 預設（專業模式）：隱藏所有社交模式專用元素 */
html:not(.social-mode) .social-only {
  display: none !important;
}

/* 2. 社交模式：隱藏所有專業模式專用元素 */
html.social-mode .pro-only {
  display: none !important;
}

/* 3. 社交模式下正確呈現各類社交元素 */
html.social-mode .social-only {
  display: block;
}

html.social-mode p.social-only {
  display: block !important;
}

html.social-mode h3.social-only {
  display: block !important;
}

html.social-mode span.social-only {
  display: inline-block !important;
}

html.social-mode li.social-only {
  display: list-item !important;
}

html.social-mode .tag-group.social-only {
  display: flex !important;
  gap: 8px;
  flex-wrap: wrap;
}

html.social-mode .filter-pills.social-only {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
🏷 社交模式文章 Tag 膠囊視覺適應
========================================================================== */

html.social-mode .blog-tag {
  background: rgba(136, 136, 204, 0.15);
  border-color: rgba(136, 136, 204, 0.4);
  color: #8888cc;
  transition: all 0.2s ease;
}

html.social-mode .blog-tag:hover {
  background: #8888cc;
  color: #ffffff;
  transform: translateY(-1px);
}

html.social-mode .blog-item-title a {
  color: #222233;
}

html.social-mode .blog-item-title a:hover {
  color: #8888cc;
}

/* ==========================================================================
   從 contact.astro 移入：修正社交模式下 flex-card 顯示問題
   ========================================================================== */

html.social-mode a.social-only.flex-card {
  display: flex !important;
}