/* ============================================================
   윈도우11 위장 모드 스타일 (win11.js 전용)
   - 글꼴: 윈도우 기본 글꼴만 사용 (웹폰트 없음 → 용량 0, 진짜 윈도우와 동일)
   - 상승=빨강 / 하락=파랑 / 보합=회색
   ============================================================ */

/* 바탕화면 전체 (배경화면 이미지) */
.w11-root {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #bcd2ee url("./win11-wallpaper.jpg") center/cover no-repeat;
  font-family: "Segoe UI Variable", "Segoe UI", "Malgun Gothic", sans-serif;
  user-select: none;
  z-index: 50;
}

/* ── 바탕화면 아이콘 그리드 (왼쪽 상단) ── */
.w11-grid {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: repeat(4, 94px);
  gap: 2px 6px;
  align-content: start;
  z-index: 3;
}
.w11-ico {
  width: 90px;
  min-height: 88px;
  height: auto;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 9px 4px 4px;
  cursor: default;
  background: transparent;
  transition: background .08s;
  position: relative;
}
.w11-ico:hover { background: rgba(255, 255, 255, .22); }
.w11-ico svg { filter: drop-shadow(0 2px 3px rgba(40, 70, 120, .25)); }
.w11-ico > span {
  font-size: 12px;
  line-height: 1.15;
  color: #1d2b45;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .7);
  overflow: hidden;
  max-height: 28px;
}
/* 종목 아이콘의 가격 줄 */
.w11-ico .w11-price { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
/* 종목 아이콘 삭제 X (마우스 올리면 표시) */
.w11-ico .w11-del {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center;
  display: none; cursor: pointer; border: none; padding: 0;
}
.w11-ico:hover .w11-del { display: block; }

/* ── 창 공통 (탐색기·메모장 등) ── */
.w11-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  overflow: hidden;
  min-width: 380px;
}
.w11-titlebar {
  height: 38px; flex: 0 0 38px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 4px 0 12px;
  background: #f3f3f3; border-bottom: 1px solid #e2e2e2;
  cursor: default;
}
.w11-titlebar b { font-size: 13px; font-weight: 500; color: #1f1f1f; }
.w11-tb-btn {
  width: 46px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: #444; font-size: 12px; border: none; background: transparent; padding: 0;
}
.w11-tb-btn:hover { background: rgba(0, 0, 0, .06); }
.w11-tb-close:hover { background: #c42b1c; color: #fff; border-radius: 0 6px 0 0; }
/* 탐색기 주소줄 */
.w11-crumb {
  height: 40px; flex: 0 0 40px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  background: #fafafa; border-bottom: 1px solid #ededed;
  color: #5a5a5a; font-size: 12px;
}
/* 표 헤더/행 */
.w11-cols, .w11-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; align-items: center; padding: 8px 16px; }
.w11-cols { padding: 7px 16px; background: #fff; border-bottom: 1px solid #eee; font-size: 11.5px; color: #777; font-weight: 500; }
.w11-cols span:not(:first-child), .w11-row span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.w11-row { border-bottom: 1px solid #f4f4f4; font-size: 13px; cursor: default; }
.w11-row:hover { background: #f5f9ff; }
.w11-row .w11-name { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.w11-statusbar {
  height: 26px; flex: 0 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: #f6f6f6; border-top: 1px solid #ededed;
  font-size: 11px; color: #888;
}
.w11-winbody { flex: 1; overflow: auto; background: #fff; }

/* ── 작업표시줄 (전체화면일 때만 표시) ── */
.w11-task {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  display: flex; align-items: center;
  padding: 0 12px;
  background: rgba(243, 243, 243, .88);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(0, 0, 0, .08);
  z-index: 40;
}
.w11-task-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
}
.w11-task-ico {
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: default; transition: background .08s;
}
.w11-task-ico:hover { background: rgba(0, 0, 0, .07); }
.w11-task-search {
  height: 32px; width: 220px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; margin-left: 4px;
  background: #fff; border: 1px solid #e0e0e0; border-radius: 16px;
  color: #777; font-size: 12.5px;
}
.w11-tray {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  color: #333; font-size: 12px;
}
.w11-clock { text-align: right; line-height: 1.3; padding: 4px 8px; border-radius: 5px; cursor: default; }
.w11-clock:hover { background: rgba(0, 0, 0, .06); }

/* ── 카카오톡 위젯 ── */
.w11-kroom {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; cursor: default;
}
.w11-kroom:hover { background: #f6f7f9; }
.w11-kroom .w11-kbtn { visibility: hidden; }
.w11-kroom:hover .w11-kbtn { visibility: visible; }
.w11-kbtn {
  border: none; background: transparent; padding: 4px 6px;
  font-size: 13px; color: #8a94a6; cursor: pointer; border-radius: 5px;
  font-family: inherit;
}
.w11-kbtn:hover { background: rgba(0, 0, 0, .07); color: #1f2430; }
.w11-kresult {
  display: block; width: 100%; text-align: left;
  border: none; background: #fff; padding: 7px 10px;
  font-size: 12px; color: #333; cursor: pointer; font-family: inherit;
  border-bottom: 1px solid #f3f3f3;
}
.w11-kresult:hover { background: #fdf7d8; }
.w11-kresult small { color: #999; margin-left: 4px; }
/* 채팅방 종목 행 — 한 줄 컴팩트 (종목명 · 현재가 · 등락률 · 삭제) */
.w11-krow {
  display: flex; align-items: center; gap: 6px;
  margin: 0 10px 4px; padding: 4px 6px 4px 10px;
  background: #fff; border-radius: 8px;
  font-size: 11.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .10);
}
.w11-krow-del { font-size: 10px; padding: 2px 4px; visibility: hidden; }
.w11-krow:hover .w11-krow-del { visibility: visible; }

/* ── Outlook 위젯 ── */
.w11-mail { display: flex; gap: 9px; padding: 9px 12px; border-bottom: 1px solid #f2f2f2; cursor: default; }
.w11-mail:hover { background: #f4f9ff; }
.w11-mail.sel { background: #eaf3fb; box-shadow: inset 3px 0 0 #0F6CBD; }
.w11-obtn {
  height: 24px; padding: 0 10px; border: none; border-radius: 5px;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.w11-obtn:hover { background: rgba(255, 255, 255, .3); }
.w11-ofolder {
  display: flex; align-items: center; justify-content: space-between;
  border: none; background: transparent; text-align: left;
  padding: 6px 8px; border-radius: 5px; font-size: 12.5px; color: #444;
  cursor: pointer; font-family: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* 좁은 폭 줄바뀜 방지 */
}
.w11-ofolder:hover { background: #f0f0ee; }
.w11-ofolder.on { color: #0F6CBD; font-weight: 600; background: #eaf3fb; }
.w11-ofolder i {
  font-style: normal; font-size: 10.5px; background: #0F6CBD; color: #fff;
  border-radius: 9px; padding: 1px 7px;
}
