/* ==========================================================================
   valencheng — macOS Desktop Skeuomorphic Theme
   Merged stylesheet for all pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --vs-bg: rgb(6, 6, 15);
  --vs-background: #06060F;
  --vs-wallpaper: radial-gradient(circle at 62% 18%, #2a2350 0%, #171633 38%, #0c0c1e 70%, #060611 100%);
  --vs-accent: #0A84FF;
  --vs-primary: #0A84FF;
  --vs-green: #32D74B;
  --vs-cyan: #64D2FF;
  --vs-yellow: #FFD60A;
  --vs-amber: #FFB340;
  --vs-red: #FF453A;
  --vs-orange: #FF9F0A;
  --vs-pink: #FF375F;
  --vs-purple: #9b6bff;

  --vs-text: rgba(255, 255, 255, .96);
  --vs-foreground: rgba(255, 255, 255, .96);
  --vs-text-secondary: rgba(235, 235, 245, .60);
  --vs-muted-foreground: rgba(235, 235, 245, .60);
  --vs-text-tertiary: rgba(235, 235, 245, .30);

  --vs-card: rgba(255, 255, 255, .06);
  --vs-card-hover: rgba(255, 255, 255, .10);
  --vs-muted: rgba(255, 255, 255, .06);

  --vs-hair: rgba(255, 255, 255, .10);
  --vs-border: rgba(255, 255, 255, .10);

  --vs-win-bg: rgba(30, 30, 37, 0.9);
  --vs-pop-bg: rgba(38, 38, 42, 0.78);
  --vs-dock-bg: rgba(44, 44, 50, 0.6);
  --vs-code-bg: rgba(0, 0, 0, 0.32);
  --vs-surface-hover: rgba(255, 255, 255, 0.1);

  --vs-win-border: 1px solid rgba(255, 255, 255, 0.14);
  --vs-pop-border: 1px solid rgba(255, 255, 255, 0.14);
  --vs-dock-border: 1px solid rgba(255, 255, 255, 0.14);

  --vs-blur-win: blur(34px) saturate(170%);
  --vs-blur-pop: blur(34px) saturate(180%);
  --vs-blur-dock: blur(34px) saturate(170%);

  --vs-radius-sm: 4px;
  --vs-radius-md: 8px;
  --vs-radius-lg: 16px;
  --vs-radius-xl: 18px;
  --vs-radius-tile: 12px;
  --vs-radius-pill: 999px;

  --vs-shadow-tile: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --vs-shadow-win: 0 30px 70px rgba(0, 0, 0, 0.55), 0 6px 16px rgba(0, 0, 0, 0.4);
  --vs-shadow-dock: 0 22px 55px rgba(0, 0, 0, 0.5);
  --vs-shadow-pop: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);

  --vs-font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  --vs-font-mono: "SF Mono", ui-monospace, monospace;

  --vs-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: var(--vs-font-sans);
  font-size: var(--vs-base-fs, 13.5px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  background: var(--vs-bg);
  color: var(--vs-text);
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
.ic { display: inline-block; vertical-align: middle; fill: none; width: 16px; height: 16px; }
.win-search .ic { width: 15px; height: 15px; flex-shrink: 0; }
.article-body .ic { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Wallpaper
   -------------------------------------------------------------------------- */
.wallpaper { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; background: var(--vs-wallpaper); }

/* --------------------------------------------------------------------------
   Menu Bar
   -------------------------------------------------------------------------- */
.menubar { position: fixed; top: 0; left: 0; right: 0; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; z-index: 100; font-size: 13.5px; color: var(--vs-text); background: rgba(0,0,0,.15); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 8px; }
.app-name { font-weight: 600; color: var(--vs-text); text-decoration: none; }
.app-name:hover { color: var(--vs-accent); }
.lang-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--vs-text); cursor: pointer; font: inherit; padding: 2px 6px; border-radius: 4px; transition: background .15s var(--vs-ease); }
.lang-btn:hover { background: rgba(255,255,255,.1); }
.clock { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--vs-text); white-space: nowrap; }
.ic-apple { width: 14px; height: 14px; }
.ic-globe { width: 14px; height: 14px; }
.menubar .ic { width: 16px; height: 16px; }
.menubar svg.ic { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Desktop Icons
   -------------------------------------------------------------------------- */
.desk-icons { position: fixed; left: 24px; top: 50px; display: flex; flex-direction: column; gap: 5px; z-index: 10; }
.desk-icon { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 86px; padding: 8px 4px; border-radius: 10px; text-decoration: none; color: var(--vs-text); cursor: pointer; background: none; border: 0; font: inherit; transition: background .15s var(--vs-ease); }
.desk-icon:hover { background: rgba(255,255,255,.08); }
.di-tile { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff; box-shadow: var(--vs-shadow-tile); transition: transform .15s var(--vs-ease); }
.desk-icon:hover .di-tile { transform: scale(1.05); }
.di-tile .ic { width: 26px; height: 26px; }
.di-label { font-size: 13px; color: var(--vs-text); text-align: center; }

/* --------------------------------------------------------------------------
   Sticky Note
   -------------------------------------------------------------------------- */
.sticky { position: fixed; left: 24px; top: 50px; max-width: 280px; padding: 14px 16px; background: rgba(255,214,10,.12); border: 1px solid rgba(255,214,10,.25); border-radius: 8px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 10; }
.sticky-bar { width: 40px; height: 4px; background: rgba(255,214,10,.4); border-radius: 2px; margin: 0 auto 10px; }
.sticky-main { font-weight: 700; font-size: 15px; color: var(--vs-text); margin: 0 0 4px; }
.sticky-sub { font-size: 12px; color: var(--vs-text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Coach Tooltip
   -------------------------------------------------------------------------- */
.coach { position: fixed; bottom: 78px; left: calc(50% - 270px); z-index: 9; width: 252px; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; animation: coachFloat 4.5s var(--vs-ease) infinite; }
.coach-arrow { margin-top: -2px; margin-left: 30px; }
.coach-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--vs-pop-bg); backdrop-filter: var(--vs-blur-pop); -webkit-backdrop-filter: var(--vs-blur-pop); border: var(--vs-pop-border); border-radius: 11px; box-shadow: 0 12px 36px rgba(0,0,0,.45); }
.coach-spark { width: 20px; height: 20px; color: var(--vs-yellow); flex-shrink: 0; margin-top: 1px; }
.coach-title { font-size: 13px; font-weight: 600; color: var(--vs-text); margin-bottom: 3px; }
.coach-sub { font-size: 11px; color: var(--vs-text-muted); line-height: 1.4; }

/* --------------------------------------------------------------------------
   Popover Panel
   -------------------------------------------------------------------------- */
.popover { position: fixed; top: 40px; right: 24px; z-index: 40; width: 358px; background: var(--vs-pop-bg); backdrop-filter: var(--vs-blur-pop); -webkit-backdrop-filter: var(--vs-blur-pop); border: var(--vs-pop-border); border-radius: 11px; box-shadow: var(--vs-shadow-pop); display: flex; overflow: hidden; animation: popIn .26s var(--vs-ease); }
.popover::after { content: ''; position: absolute; top: -7px; right: 32px; width: 14px; height: 14px; background: var(--vs-pop-bg); border-left: 1px solid rgba(255,255,255,.14); border-top: 1px solid rgba(255,255,255,.14); transform: rotate(45deg); }
.pop-inner { display: flex; width: 100%; }
.sect-nav { display: flex; flex-direction: column; padding: 8px 4px; gap: 2px; border-right: 1px solid var(--vs-hair); }
.sn-btn { width: 40px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--vs-text-muted); transition: background .15s var(--vs-ease), color .15s var(--vs-ease); text-decoration: none; }
.sn-btn:hover { background: rgba(255,255,255,.08); }
.sn-btn.is-active { background: rgba(10,132,255,.18); color: var(--vs-accent); }
.sn-btn .ic { width: 21px; height: 21px; }
.pop-body { flex: 1; padding: 10px 12px; max-height: 520px; overflow-y: auto; }
.pop-body::-webkit-scrollbar { width: 6px; }
.pop-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }
.pop-body::-webkit-scrollbar-track { background: transparent; }
.sect-title { font-size: 13px; font-weight: 600; color: var(--vs-text); margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Post Cards (popover)
   -------------------------------------------------------------------------- */
.pop-body .post-card { background: var(--vs-card); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; transition: background .15s var(--vs-ease); text-decoration: none; display: block; }
.pop-body .post-card:hover { background: var(--vs-card-hover); }
.post-title { font-size: 13px; font-weight: 500; color: var(--vs-text); margin-bottom: 4px; line-height: 1.35; }
.post-meta { font-size: 11px; color: var(--vs-text-muted); display: flex; align-items: center; gap: 5px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.meta-ic { width: 12px; height: 12px; flex-shrink: 0; }
.post-meta .meta-sep { color: var(--vs-text-tertiary); }
.post-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.divider { height: 1px; background: var(--vs-hair); margin: 6px -3px; }

/* --------------------------------------------------------------------------
   Dock
   -------------------------------------------------------------------------- */
.dock { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 10px 14px; background: var(--vs-dock-bg); backdrop-filter: var(--vs-blur-dock); -webkit-backdrop-filter: var(--vs-blur-dock); border: var(--vs-dock-border); border-radius: 18px; box-shadow: var(--vs-shadow-dock); z-index: 50; }
.dock-item { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; cursor: pointer; transition: transform .15s var(--vs-ease); box-shadow: var(--vs-shadow-tile); text-decoration: none; position: relative; }
.dock-item:hover { transform: translateY(-8px) scale(1.15); }
.dock-item .ic { width: 24px; height: 24px; }
.dock-item-active::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.80); }

/* --------------------------------------------------------------------------
   macOS Window
   -------------------------------------------------------------------------- */
.posts-window, .article-window, .about-window {
  position: relative; margin: 60px auto 0; border-radius: 13px; overflow: hidden;
  box-shadow: var(--vs-shadow-win); background: var(--vs-win-bg);
  backdrop-filter: var(--vs-blur-win); -webkit-backdrop-filter: var(--vs-blur-win);
  border: var(--vs-win-border); display: flex; flex-direction: column;
  animation: winIn .42s var(--vs-ease) both;
}
.posts-window { max-width: 860px; height: calc(100vh - 140px); }
.article-window { max-width: 760px; height: calc(100vh - 140px); }
.about-window { max-width: 720px; height: calc(100vh - 140px); }

/* --------------------------------------------------------------------------
   Window Titlebar
   -------------------------------------------------------------------------- */
.win-titlebar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--vs-hair); flex-shrink: 0; }
.traffic-lights { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.traffic-light { width: 12px; height: 12px; border-radius: 50%; display: block; flex-shrink: 0; }
.win-title { font-size: 13px; color: var(--vs-text-muted); font-weight: 500; flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-titlebar-right { width: 52px; flex-shrink: 0; }
.win-spacer { width: 56px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Window Body
   -------------------------------------------------------------------------- */
.win-body { display: flex; flex: 1; min-height: 0; }

/* --------------------------------------------------------------------------
   Window Sidebar
   -------------------------------------------------------------------------- */
.win-sidebar { width: 244px; flex-shrink: 0; background: rgba(255,255,255,.035); border-right: 1px solid var(--vs-hair); display: flex; flex-direction: column; overflow-y: auto; }
.win-sidebar::-webkit-scrollbar { width: 0; }
.win-search { height: 52px; margin: 0 9px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--vs-hair); color: var(--vs-text-muted); }
.win-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--vs-text); font: 12.5px/1.3 var(--vs-font-sans); min-width: 0; }
.win-search input::placeholder { color: var(--vs-text-tertiary); }
.win-group-label { padding: 14px 9px 5px; color: var(--vs-text-tertiary); font-size: 10px; font-weight: 700; letter-spacing: 0.55px; text-transform: uppercase; }
.win-item { display: flex; align-items: center; gap: 7px; padding: 7px 9px; margin: 0 5px; border-radius: 8px; color: var(--vs-text-muted); font-size: 12.5px; cursor: pointer; transition: background .15s var(--vs-ease), color .15s var(--vs-ease); text-decoration: none; }
.win-item:hover { background: rgba(255,255,255,.06); }
.win-item.active { background: rgba(10,132,255,.15); color: var(--vs-accent); }
.win-item .ic { width: 16px; height: 16px; flex-shrink: 0; }
.win-item-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-item .count { margin-left: auto; font-size: 10px; color: var(--vs-text-tertiary); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Window Content
   -------------------------------------------------------------------------- */
.win-content { flex: 1; padding: 16px 20px; overflow-y: auto; min-width: 0; }
.win-content::-webkit-scrollbar { width: 6px; }
.win-content::-webkit-scrollbar-track { background: transparent; }
.win-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

/* --------------------------------------------------------------------------
   Post Card (list page)
   -------------------------------------------------------------------------- */
.win-content .post-card { background: var(--vs-card); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; transition: background .15s var(--vs-ease); text-decoration: none; display: block; }
.win-content .post-card:hover { background: var(--vs-card-hover); }
.win-content .post-card:last-child { margin-bottom: 0; }
.post-card-title { font-size: 14px; font-weight: 500; color: var(--vs-text); margin: 0 0 4px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-card-excerpt { font-size: 12px; line-height: 1.5; color: var(--vs-text-muted); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--vs-text-muted); flex-wrap: wrap; }
.meta-date, .meta-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-card-meta .meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--vs-text-tertiary); flex-shrink: 0; }
.tag-pills { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.post-card-meta .ic { width: 12px; height: 12px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Article Body
   -------------------------------------------------------------------------- */
.article-body { flex: 1; overflow-y: auto; padding: 32px 40px; }
.article-body::-webkit-scrollbar { width: 6px; }
.article-body::-webkit-scrollbar-thumb { background: var(--vs-hair); border-radius: 3px; }
.article-body::-webkit-scrollbar-track { background: transparent; }
.article-body h1 { font-size: 24px; font-weight: 700; color: var(--vs-text); margin: 0 0 10px; line-height: 1.28; }
.article-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--vs-text-muted); margin-bottom: 10px; }
.article-meta .sep { color: var(--vs-text-tertiary); }
.article-tags { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.article-body h2 { font-size: 18px; font-weight: 600; color: var(--vs-text); margin: 28px 0 12px; }
.article-body h3 { font-size: 15px; font-weight: 600; color: var(--vs-text); margin: 20px 0 8px; }
.article-body p { line-height: 1.7; color: rgba(235,235,245,.75); margin: 0 0 12px; }
.article-body ul, .article-body ol { padding-left: 20px; margin: 0 0 12px; }
.article-body li { line-height: 1.7; color: rgba(235,235,245,.75); margin-bottom: 6px; }
.article-body pre { background: var(--vs-code-bg); border: 1px solid rgba(255,255,255,.075); border-radius: var(--vs-radius-md); padding: 14px 16px; font-family: var(--vs-code-font); font-size: var(--vs-code-fs); color: rgba(255,255,255,.85); overflow-x: auto; margin: 0 0 16px; }
.article-body code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 4px; font-family: var(--vs-code-font); font-size: var(--vs-code-fs); color: var(--vs-cyan); }
.article-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article-body blockquote { border-left: 3px solid var(--vs-accent); padding-left: 16px; color: var(--vs-text-muted); font-style: italic; margin: 0 0 16px; }
.article-body hr { border: 0; height: 1px; background: var(--vs-hair); margin: 24px 0; }
.article-body img { max-width: 100%; border-radius: var(--vs-radius-md); }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.article-body th, .article-body td { padding: 8px 12px; border: 1px solid var(--vs-hair); font-size: 13px; }
.article-body th { background: var(--vs-card); color: var(--vs-text); }

/* --------------------------------------------------------------------------
   Article Footer
   -------------------------------------------------------------------------- */
.article-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--vs-hair); }
.back-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--vs-text-muted); cursor: pointer; font-size: 12px; padding: 4px 8px; border-radius: 6px; transition: background .15s var(--vs-ease), color .15s var(--vs-ease); flex-shrink: 0; text-decoration: none; }
.back-btn:hover { background: var(--vs-card); color: var(--vs-text); }
.back-btn .ic { width: 16px; height: 16px; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--vs-card); border: 1px solid var(--vs-hair); border-radius: var(--vs-radius-pill); padding: 6px 14px; color: var(--vs-text-muted); cursor: pointer; font-size: 12px; transition: background .15s var(--vs-ease), color .15s var(--vs-ease); }
.like-btn:hover { background: rgba(255,69,58,.15); color: var(--vs-red); }
.like-btn .ic { width: 14px; height: 14px; }
.nav-prev-next { display: flex; justify-content: space-between; margin-top: 16px; gap: 12px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--vs-card); border-radius: var(--vs-radius-md); color: var(--vs-text-muted); font-size: 12px; cursor: pointer; text-decoration: none; min-width: 0; transition: background .15s var(--vs-ease), color .15s var(--vs-ease); }
.nav-link:hover { background: var(--vs-surface-hover); color: var(--vs-text); }
.nav-link .ic { width: 14px; height: 14px; flex-shrink: 0; }
.ic-flip { transform: scaleX(-1); }
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copyright { margin-top: 16px; font-size: 11px; color: var(--vs-text-tertiary); text-align: center; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.page-prev, .page-next { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; background: var(--vs-card); border-radius: var(--vs-radius-md); color: var(--vs-text-muted); font-size: 12px; text-decoration: none; transition: background .15s var(--vs-ease), color .15s var(--vs-ease); }
.page-prev:hover, .page-next:hover { background: var(--vs-surface-hover); color: var(--vs-text); }
.page-prev .ic, .page-next .ic { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-sidebar { width: 220px; flex-shrink: 0; background: rgba(255,255,255,.02); border-right: 1px solid var(--vs-hair); padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(160deg, #0A84FF, #6a2bd9); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); margin-bottom: 8px; }
.avatar .ic { width: 40px; height: 40px; }
.about-name { font-size: 16px; font-weight: 600; color: var(--vs-text); }
.about-role { font-size: 12px; color: var(--vs-text-muted); }
.about-loc { font-size: 11px; color: var(--vs-text-tertiary); display: flex; align-items: center; gap: 4px; }
.about-loc .ic { width: 12px; height: 12px; flex-shrink: 0; }
.about-divider { width: 100%; height: 1px; background: var(--vs-hair); margin: 12px 0; }
.social-link { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 8px; color: var(--vs-text-muted); font-size: 12.5px; text-decoration: none; cursor: pointer; transition: background .15s var(--vs-ease), color .15s var(--vs-ease); }
.social-link:hover { background: var(--vs-card); color: var(--vs-text); }
.social-link .ic { flex-shrink: 0; width: 16px; height: 16px; }
.about-content { flex: 1; padding: 24px 28px; overflow-y: auto; }
.about-content::-webkit-scrollbar { width: 6px; }
.about-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }
.about-content::-webkit-scrollbar-track { background: transparent; }
.about-content h2 { font-size: 18px; font-weight: 600; color: var(--vs-text); margin-top: 24px; margin-bottom: 10px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p { font-size: 14px; line-height: 1.7; color: rgba(235,235,245,.75); margin-bottom: 10px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.skill-tag { padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.project-card { background: var(--vs-card); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background .15s var(--vs-ease); }
.project-card:hover { background: var(--vs-card-hover); }
.project-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.project-icon .ic { width: 18px; height: 18px; }
.project-info { flex: 1; min-width: 0; }
.project-title { font-size: 13px; font-weight: 500; color: var(--vs-text); }
.project-desc { font-size: 11px; color: var(--vs-text-muted); }
.project-badge { font-size: 10px; padding: 2px 8px; border-radius: 999px; color: var(--vs-text-muted); background: var(--vs-card); display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; }
.project-badge .ic { width: 12px; height: 12px; }
.contact-card { background: var(--vs-card); border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--vs-text-muted); font-size: 14px; transition: background .15s var(--vs-ease), color .15s var(--vs-ease); }
.contact-card:hover { background: var(--vs-card-hover); color: var(--vs-text); }
.contact-card .ic { width: 20px; height: 20px; }
.about-footer { text-align: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--vs-hair); }
.about-footer span { display: block; font-size: 11px; color: var(--vs-text-tertiary); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Icon Size Utilities
   -------------------------------------------------------------------------- */
.ic-12 { width: 12px; height: 12px; }
.ic-13 { width: 13px; height: 13px; }
.ic-14 { width: 14px; height: 14px; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-24 { width: 24px; height: 24px; }
.ic-40 { width: 40px; height: 40px; }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes coachFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.95) translateY(-6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes winIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* --------------------------------------------------------------------------
   Theme Presets
   -------------------------------------------------------------------------- */
[data-theme="black-gold"] {
  --vs-bg: rgb(10, 8, 5);
  --vs-background: #0A0805;
  --vs-wallpaper: radial-gradient(circle at 62% 18%, #2b2410 0%, #1a1608 40%, #0e0c04 72%, #060502 100%);
  --vs-accent: #FFD60A;
  --vs-primary: #FFD60A;
  --vs-amber: #FFB340;
  --vs-win-bg: rgba(32, 27, 14, 0.9);
  --vs-pop-bg: rgba(40, 34, 18, 0.78);
  --vs-dock-bg: rgba(46, 39, 20, 0.6);
}
[data-theme="black-green"] {
  --vs-bg: rgb(5, 12, 8);
  --vs-background: #050C08;
  --vs-wallpaper: radial-gradient(circle at 62% 18%, #0a2415 0%, #061a0e 40%, #031008 72%, #020804 100%);
  --vs-accent: #32D74B;
  --vs-primary: #32D74B;
  --vs-green: #32D74B;
  --vs-win-bg: rgba(16, 28, 20, 0.9);
  --vs-pop-bg: rgba(20, 38, 27, 0.78);
  --vs-dock-bg: rgba(24, 44, 31, 0.6);
}
[data-theme="black-purple"] {
  --vs-bg: rgb(10, 5, 15);
  --vs-background: #0A0510;
  --vs-wallpaper: radial-gradient(circle at 62% 18%, #241038 0%, #180a24 40%, #0c050f 72%, #060308 100%);
  --vs-accent: #9b6bff;
  --vs-primary: #9b6bff;
  --vs-purple: #9b6bff;
  --vs-win-bg: rgba(28, 20, 38, 0.9);
  --vs-pop-bg: rgba(36, 26, 50, 0.78);
  --vs-dock-bg: rgba(42, 30, 58, 0.6);
}

/* --------------------------------------------------------------------------
   Traffic Light Interactions
   -------------------------------------------------------------------------- */
.traffic-light { transition: filter .15s var(--vs-ease); }
.traffic-lights:hover .traffic-light:nth-child(1),
.traffic-lights:hover .traffic-light:nth-child(2) { filter: brightness(1.15); }

/* --------------------------------------------------------------------------
   Window Maximize
   -------------------------------------------------------------------------- */
.win-maximized { max-width: 100% !important; margin: 40px 16px 0 !important; height: calc(100vh - 100px) !important; border-radius: 10px !important; }

/* --------------------------------------------------------------------------
   Font Size Controls
   -------------------------------------------------------------------------- */
.font-controls { display: inline-flex; align-items: center; gap: 2px; background: var(--vs-card); border: 1px solid var(--vs-hair); border-radius: var(--vs-radius-pill); padding: 3px; margin-bottom: 16px; }
.fc-btn { display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border: 0; background: none; color: var(--vs-text-muted); font-size: 12px; font-weight: 600; cursor: pointer; border-radius: var(--vs-radius-pill); transition: background .15s var(--vs-ease), color .15s var(--vs-ease); font-family: var(--vs-font-sans); }
.fc-btn:hover { background: rgba(255,255,255,.08); color: var(--vs-text); }
.fc-btn:active { background: rgba(255,255,255,.12); }
.fc-btn.fc-reset { font-size: 11px; }
.article-body { --article-fs: var(--vs-base-fs, 14px); }
.article-body p, .article-body li { font-size: var(--article-fs); }

/* --------------------------------------------------------------------------
   Theme Switcher
   -------------------------------------------------------------------------- */
.theme-switcher { display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: var(--vs-radius-pill); background: rgba(255,255,255,.06); }
.theme-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); cursor: pointer; padding: 0; transition: transform .15s var(--vs-ease), border-color .15s var(--vs-ease); }
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: rgba(255,255,255,.6); transform: scale(1.15); }

/* --------------------------------------------------------------------------
   App Logo & Mode Toggle (menubar)
   -------------------------------------------------------------------------- */
.app-logo { display: flex; align-items: center; background: none; border: 0; cursor: pointer; padding: 0; color: var(--vs-text); transition: color .15s var(--vs-ease); }
.app-logo:hover { color: var(--vs-accent); }
.app-name { font-weight: 600; color: var(--vs-text); text-decoration: none; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; transition: color .15s var(--vs-ease); }
.app-name:hover { color: var(--vs-accent); }
.mode-toggle { display: flex; align-items: center; background: none; border: 0; color: var(--vs-text); cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background .15s var(--vs-ease); }
.mode-toggle:hover { background: rgba(255,255,255,.1); }
.mode-toggle .ic { width: 15px; height: 15px; }
.mode-icon-sun { display: none; }
.mode-icon-moon { display: block; }
[data-mode="light"] .mode-icon-sun { display: block; }
[data-mode="light"] .mode-icon-moon { display: none; }
[data-mode="light"] .menubar { background: rgba(255,255,255,.25); }
[data-mode="light"] .lang-btn:hover, [data-mode="light"] .mode-toggle:hover { background: rgba(0,0,0,.06); }
[data-mode="light"] .theme-switcher { background: rgba(0,0,0,.04); }
[data-mode="light"] .theme-dot { border-color: rgba(0,0,0,.2); }
[data-mode="light"] .theme-dot.active { border-color: rgba(0,0,0,.5); }
[data-mode="light"] .desk-icon:hover { background: rgba(0,0,0,.06); }

/* --------------------------------------------------------------------------
   Custom Wallpaper Container
   -------------------------------------------------------------------------- */
.custom-wallpaper { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; z-index: -1; background-size: cover; background-position: center; background-repeat: no-repeat; display: none; }
.custom-wallpaper.active { display: block !important; }
body.has-custom-wallpaper .wallpaper { display: none !important; }

/* --------------------------------------------------------------------------
   Light Mode Theme Variables
   -------------------------------------------------------------------------- */
[data-mode="light"] {
  --vs-bg: rgb(238, 238, 242);
  --vs-background: #EEEFF2;
  --vs-wallpaper: radial-gradient(circle at 62% 18%, #f0f1f8 0%, #e8eaf2 40%, #dfe2ee 72%, #d6dae6 100%);
  --vs-text: rgba(0, 0, 0, .88);
  --vs-foreground: rgba(0, 0, 0, .88);
  --vs-text-secondary: rgba(60, 60, 67, .60);
  --vs-muted-foreground: rgba(60, 60, 67, .60);
  --vs-text-tertiary: rgba(60, 60, 67, .30);
  --vs-card: rgba(0, 0, 0, .04);
  --vs-card-hover: rgba(0, 0, 0, .08);
  --vs-muted: rgba(0, 0, 0, .04);
  --vs-hair: rgba(0, 0, 0, .10);
  --vs-border: rgba(0, 0, 0, .10);
  --vs-win-bg: rgba(255, 255, 255, 0.82);
  --vs-pop-bg: rgba(250, 250, 252, 0.82);
  --vs-dock-bg: rgba(255, 255, 255, 0.55);
  --vs-code-bg: rgba(0, 0, 0, 0.05);
  --vs-surface-hover: rgba(0, 0, 0, 0.06);
  --vs-win-border: 1px solid rgba(0, 0, 0, 0.10);
  --vs-pop-border: 1px solid rgba(0, 0, 0, 0.10);
  --vs-dock-border: 1px solid rgba(0, 0, 0, 0.10);
}
[data-mode="light"][data-theme="black-gold"] {
  --vs-bg: rgb(250, 246, 235);
  --vs-wallpaper: radial-gradient(circle at 62% 18%, #fdf8ec 0%, #f8f2e0 40%, #f2ecd4 72%, #ece5c8 100%);
  --vs-accent: #B8860B;
  --vs-primary: #B8860B;
  --vs-win-bg: rgba(255, 252, 244, 0.85);
  --vs-pop-bg: rgba(252, 249, 240, 0.82);
  --vs-dock-bg: rgba(255, 250, 238, 0.6);
}
[data-mode="light"][data-theme="black-green"] {
  --vs-bg: rgb(232, 246, 236);
  --vs-wallpaper: radial-gradient(circle at 62% 18%, #eafaf2 0%, #def5ea 40%, #d2f0e2 72%, #c6ebda 100%);
  --vs-accent: #1A8A2E;
  --vs-primary: #1A8A2E;
  --vs-win-bg: rgba(244, 255, 248, 0.85);
  --vs-pop-bg: rgba(246, 252, 248, 0.82);
  --vs-dock-bg: rgba(240, 255, 244, 0.6);
}
[data-mode="light"][data-theme="black-purple"] {
  --vs-bg: rgb(242, 236, 250);
  --vs-wallpaper: radial-gradient(circle at 62% 18%, #f4ecfc 0%, #ecdff8 40%, #e4d2f4 72%, #dbc5f0 100%);
  --vs-accent: #7B4FCC;
  --vs-primary: #7B4FCC;
  --vs-win-bg: rgba(252, 248, 255, 0.85);
  --vs-pop-bg: rgba(250, 246, 252, 0.82);
  --vs-dock-bg: rgba(248, 242, 255, 0.6);
}
[data-mode="light"] .article-body p,
[data-mode="light"] .article-body li { color: rgba(60,60,67,.75); }
[data-mode="light"] .article-body code { background: rgba(0,0,0,.06); }
[data-mode="light"] .article-body pre { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); }
[data-mode="light"] .about-content p { color: rgba(60,60,67,.75); }
[data-mode="light"] .sticky { background: rgba(255,214,10,.20); border-color: rgba(184,134,11,.30); }
[data-mode="light"] .win-search { color: var(--vs-text-muted); }
[data-mode="light"] .win-sidebar { background: rgba(0,0,0,.02); }

/* --------------------------------------------------------------------------
   Settings Modal
   -------------------------------------------------------------------------- */
.settings-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s var(--vs-ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.settings-panel { width: 420px; max-height: 80vh; max-width: calc(100vw - 32px); background: var(--vs-pop-bg); backdrop-filter: var(--vs-blur-pop); -webkit-backdrop-filter: var(--vs-blur-pop); border: var(--vs-pop-border); border-radius: 14px; box-shadow: var(--vs-shadow-pop); overflow: hidden; display: flex; flex-direction: column; animation: settingsIn .25s var(--vs-ease); }
@keyframes settingsIn { from { opacity: 0; transform: scale(.95) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.settings-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--vs-hair); flex-shrink: 0; }
.settings-title { font-size: 16px; font-weight: 600; color: var(--vs-text); }
.settings-close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--vs-text-muted); cursor: pointer; transition: background .15s var(--vs-ease), color .15s var(--vs-ease); }
.settings-close:hover { background: var(--vs-card-hover); color: var(--vs-text); }
.settings-close .ic { width: 18px; height: 18px; }
.settings-body { padding: 16px 20px; overflow-y: auto; }
.settings-body::-webkit-scrollbar { width: 6px; }
.settings-body::-webkit-scrollbar-thumb { background: var(--vs-hair); border-radius: 3px; }
.settings-body::-webkit-scrollbar-track { background: transparent; }
.settings-section { margin-bottom: 22px; }
.settings-section:last-child { margin-bottom: 0; }
.settings-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.settings-section-header .ic { width: 18px; height: 18px; color: var(--vs-text-muted); }
.settings-section-title { font-size: 13px; font-weight: 600; color: var(--vs-text); }

/* Wallpaper Upload */
.wallpaper-upload-area { display: flex; flex-direction: column; gap: 10px; }
.wallpaper-preview { width: 100%; height: 120px; border-radius: 10px; border: 1.5px dashed var(--vs-hair); display: grid; place-items: center; overflow: hidden; background: var(--vs-card); }
.wallpaper-preview img { width: 100%; height: 100%; object-fit: cover; }
.wallpaper-preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--vs-text-tertiary); }
.wallpaper-preview-placeholder .ic { width: 28px; height: 28px; }
.wallpaper-preview-placeholder span { font-size: 12px; }
.wallpaper-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallpaper-upload-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--vs-accent); color: #fff; font-size: 12px; font-weight: 500; cursor: pointer; transition: opacity .15s var(--vs-ease); }
.wallpaper-upload-btn:hover { opacity: 0.85; }
.wallpaper-upload-btn .ic { width: 14px; height: 14px; }
.wallpaper-clear-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--vs-card); border: 1px solid var(--vs-hair); color: var(--vs-text-muted); font-size: 12px; font-weight: 500; cursor: pointer; transition: background .15s var(--vs-ease); }
.wallpaper-clear-btn:hover { background: var(--vs-card-hover); }
.wallpaper-hint { font-size: 11px; color: var(--vs-text-tertiary); margin: 0; line-height: 1.5; }

/* Mode Options */
.mode-options { display: flex; gap: 8px; }
.mode-option { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 10px; border: 1.5px solid var(--vs-hair); background: var(--vs-card); color: var(--vs-text-muted); font-size: 13px; cursor: pointer; transition: all .15s var(--vs-ease); }
.mode-option:hover { background: var(--vs-card-hover); }
.mode-option.active { border-color: var(--vs-accent); background: rgba(10,132,255,.10); color: var(--vs-accent); }
.mode-option .ic { width: 16px; height: 16px; }

/* Color Theme Options */
.color-theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-theme-option { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--vs-hair); background: var(--vs-card); color: var(--vs-text-muted); font-size: 12px; cursor: pointer; transition: all .15s var(--vs-ease); }
.color-theme-option:hover { background: var(--vs-card-hover); }
.color-theme-option.active { border-color: var(--vs-accent); background: rgba(10,132,255,.08); color: var(--vs-text); }
.color-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

/* Language Options */
.lang-options { display: flex; gap: 8px; }
.lang-option { flex: 1; padding: 10px; border-radius: 10px; border: 1.5px solid var(--vs-hair); background: var(--vs-card); color: var(--vs-text-muted); font-size: 13px; cursor: pointer; transition: all .15s var(--vs-ease); }
.lang-option:hover { background: var(--vs-card-hover); }
.lang-option.active { border-color: var(--vs-accent); background: rgba(10,132,255,.10); color: var(--vs-accent); }

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .coach, .popover, .posts-window, .article-window, .about-window { animation: none; }
  .dock-item, .desk-icon, .di-tile, .post-card, .sn-btn, .mb-btn, .back-btn, .like-btn, .nav-link, .social-link, .project-card, .contact-card { transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .posts-window, .article-window, .about-window { max-width: 100%; margin: 40px 8px 0; height: calc(100vh - 120px); border-radius: 10px; }
  .win-sidebar { width: 180px; }
  .win-content { padding: 12px 14px; }
  .article-body { padding: 20px 16px; }
  .nav-back { display: none; }
  .tag-pills { margin-left: 0; }
}
@media (max-width: 640px) {
  .about-window .win-body { flex-direction: column; }
  .about-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--vs-hair); padding: 16px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
  .avatar { width: 56px; height: 56px; margin-bottom: 0; }
  .avatar .ic { width: 28px; height: 28px; }
  .about-name { font-size: 15px; }
  .about-divider { display: none; }
  .social-link { width: auto; padding: 4px 6px; }
  .about-content { padding: 16px; }
  .menubar { font-size: 12px; }
  .clock { display: none; }
  .dock-item { width: 40px; height: 40px; border-radius: 10px; }
  .dock { padding: 8px 10px; }
}
@media (max-width: 560px) {
  .win-sidebar { display: none; }
  .posts-window { margin: 36px 6px 0; }
}
