/* ══════════════════════════════════════════════════
   DESKTOP PLUS — 2026 refresh of the Windows 11 edition
   (detailed icons, quick-start widget, project thumbnails)
══════════════════════════════════════════════════ */

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ── Detailed app icons ── */
.has-ic { display: block !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; flex-shrink: 0; }
.has-ic .ic { width: 100% !important; height: 100% !important; display: block; overflow: visible; }

.desk-icons { grid-template-columns: repeat(2, 78px); gap: 0.25rem; top: 1.1rem; left: 0.9rem; }
.desk-icon { width: 78px; padding: 0.55rem 0.3rem 0.45rem; gap: 0.4rem; border-radius: 8px; }
.desk-icon:hover, .desk-icon.is-active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.di-tile.has-ic { width: 46px; height: 46px; transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
.di-tile.has-ic .ic { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.45)) drop-shadow(0 1px 1px rgba(0,0,0,0.3)); }
.desk-icon:active .di-tile.has-ic { transform: scale(0.94); }
.desk-icon span:last-child { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em; }

.sm-pin-icon.has-ic { width: 36px; height: 36px; }
.sm-pin-icon.has-ic .ic { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }
.sm-pin { transition: background var(--ease), transform 160ms ease; }
.sm-pin:active { transform: scale(0.96); }

.tb-app-icon.has-ic { width: 26px; height: 26px; }
.tb-app-icon.has-ic .ic { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); transition: transform 180ms ease; }
.tb-app:active .tb-app-icon.has-ic .ic { transform: scale(0.88); }

.win-app-icon.has-ic { width: 18px; height: 18px; }

/* ── Wallpaper typography: bottom-left, legible but quiet ── */
.desktop-hero {
  top: auto;
  right: auto;
  left: 2.2rem;
  bottom: calc(var(--tb-h) + 2rem);
  transform: none;
  text-align: left;
}
.hero-name { color: rgba(255,255,255,0.11); font-size: clamp(3rem, 6vw, 6.4rem); }
.hero-role, .hero-stat { color: rgba(255,255,255,0.28); }
.hero-kicker { opacity: 0.9; }

/* ── Quick-start widget ── */
.dw-widget {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 338px;
  max-height: calc(100vh - var(--tb-h) - 2.5rem);
  overflow-y: auto;
  scrollbar-width: none;
  z-index: 1;
  padding: 1.05rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(20,20,24,0.66);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  animation: dwIn 600ms 250ms cubic-bezier(.2,.8,.2,1) both;
}
.dw-widget::-webkit-scrollbar { display: none; }
@keyframes dwIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.dw-head { display: flex; align-items: center; gap: 0.7rem; }
.dw-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; padding: 2px;
  background: conic-gradient(from 200deg, #ff4500, #ffb347, #ff4500);
}
.dw-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid #141417; }
.dw-id { min-width: 0; flex: 1; }
.dw-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.98rem; color: #fff; line-height: 1.2; }
.dw-role { font-size: 0.72rem; color: #9a9aa2; margin-top: 2px; }
.dw-status {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.66rem; font-weight: 600; color: #4ade80;
  padding: 0.28rem 0.55rem; border-radius: 999px;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.22);
}
.dw-status i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: dwPulse 2s infinite; }
@keyframes dwPulse { 70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.dw-greet { margin: 0.85rem 0 0.8rem; font-size: 0.8rem; line-height: 1.55; color: #b9b9c0; }

.dw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.dw-act {
  display: flex; align-items: center; gap: 0.55rem; text-align: left;
  padding: 0.6rem 0.65rem; border-radius: 11px;
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.07);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.dw-act:hover { background: rgba(255,255,255,0.085); border-color: rgba(255,255,255,0.14); transform: translateY(-1px); }
.dw-act:active { transform: scale(0.98); }
.dw-act .ic { width: 30px; height: 30px; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }
.dw-act > span { display: flex; flex-direction: column; min-width: 0; }
.dw-act strong { font-size: 0.8rem; font-weight: 600; color: #fff; }
.dw-act small { font-size: 0.66rem; color: #8d8d95; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-act-primary {
  grid-column: 1 / -1;
  padding: 0.75rem 0.85rem;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}
.dw-act-primary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); }
.dw-act-primary .ic { width: 36px; height: 36px; }
.dw-act-primary strong { font-size: 0.9rem; }
.dw-arrow { width: 18px; height: 18px; margin-left: auto; color: #ff8a50; transition: transform 160ms ease; }
.dw-act-primary:hover .dw-arrow { transform: translateX(3px); }

.dw-label {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1rem 0 0.55rem;
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8d8d95;
}
.dw-label button { font-size: 0.7rem; letter-spacing: 0; text-transform: none; color: #ff8a50; font-weight: 600; }
.dw-label button:hover { color: #ffb38a; }

.dw-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.dw-thumb {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: #17171b; border: 1px solid rgba(255,255,255,0.07);
}
.dw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
.dw-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85));
}
.dw-thumb span {
  position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.42rem; z-index: 1;
  font-size: 0.68rem; font-weight: 600; color: #fff; text-align: left; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dw-thumb:hover img { transform: scale(1.07); }

.dw-contact { display: flex; gap: 0.4rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid rgba(255,255,255,0.07); }
.dw-contact a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.5rem 0.4rem; border-radius: 9px; font-size: 0.7rem; font-weight: 500; color: #d6d6dc;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  transition: background 160ms ease, color 160ms ease;
}
.dw-contact a:hover { background: rgba(255,255,255,0.09); color: #fff; }
.dw-contact svg { width: 14px; height: 14px; }
.dw-contact a:first-child svg { color: #25d366; }
.dw-contact a:last-child svg { color: #4b8bff; }

@media (max-height: 700px) { .dw-featured { display: none; } .dw-label { display: none; } }

/* ── Projects window: thumbnails & richer cards ── */
#projectsWindow { width: min(56rem, calc(100vw - 26rem)); }
#projectsWindow.is-maximized .project-grid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.project-grid { gap: 0.8rem; }
.proj-card { overflow: hidden; display: flex; flex-direction: column; }
.proj-thumb {
  position: relative; display: block;
  margin: -1rem -1rem 0.9rem;
  aspect-ratio: 16 / 10; overflow: hidden; background: #141417;
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 400ms ease; opacity: 0; }
.proj-thumb img.is-loaded { opacity: 1; }
.proj-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.6)); }
.proj-card:hover .proj-thumb img { transform: scale(1.05); }
.proj-count {
  position: absolute; left: 0.6rem; bottom: 0.55rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.64rem; font-weight: 600; color: #fff;
  padding: 0.22rem 0.5rem; border-radius: 999px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.proj-card .proj-num {
  z-index: 2; top: 0.6rem; right: 0.6rem;
  font-size: 0.62rem; color: #fff;
  padding: 0.2rem 0.45rem; border-radius: 6px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.proj-card .proj-open { margin-top: auto; padding-top: 0.65rem; color: #ff8a50; }

/* ── Start menu: recommended = real projects ── */
.sm-rec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.sm-rec-item { cursor: pointer; text-align: left; width: 100%; }
.sm-rec-thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #1a1a1f; border: 1px solid rgba(255,255,255,0.08); }
.sm-rec-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-rec-item > div { min-width: 0; }
.sm-rec-item strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════════════
   CALMER, MORE PROFESSIONAL DESKTOP
   No glows, no custom cursor, flat surfaces.
══════════════════════════════════════════════════ */
@media (pointer: fine) { body, a, button { cursor: auto !important; } a, button, [data-window-target] { cursor: pointer !important; } }
.c-dot, .c-ring { display: none !important; }
.aura, .grid-overlay { display: none !important; }
.wallpaper { background: linear-gradient(160deg, #141416 0%, #0c0c0e 55%, #101012 100%) !important; }
.app-window::before { display: none; }
.hero-name { color: rgba(255,255,255,0.07); }
.dw-widget { animation: none; background: rgba(24,24,27,0.92); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 12px 32px rgba(0,0,0,0.45); }
.dw-avatar { background: rgba(255,255,255,0.15); }
.dw-status i { animation: none; }
.dw-arrow { color: #d4d4d8; }
.dw-label button { color: #e4e4e7; }

/* Skills window: plain tags instead of % bars */
.skills-tags { margin-top: 0.3rem; }
.skills-sub { margin: 0.75rem 0 0.35rem; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.tool-pr { background: #00005b; color: #9999ff; }
.tool-claude { background: #d97757; color: #fff; }

/* Software window */
#softwareWindow { width: min(52rem, calc(100vw - 26rem)); }
.sw-body { display: block; }
.sw-intro { font-size: 0.92rem; line-height: 1.7; color: #c8c8cf; margin-bottom: 1rem; max-width: 60ch; }
.sw-case { padding: 1.1rem 1.2rem; border-radius: 10px; background: rgba(255,255,255,0.035); border: 1px solid var(--border-hi); }
.sw-case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.sw-case h3 { margin: 0.3rem 0 0.2rem; font-family: 'Syne', sans-serif; font-size: 1.15rem; color: #fff; }
.sw-muted { font-size: 0.78rem; color: var(--muted); }
.sw-badge { flex-shrink: 0; padding: 0.2rem 0.55rem; border-radius: 6px; font-size: 0.68rem; font-weight: 700; color: #111; background: #f5b400; }
.sw-case > p { margin-top: 0.8rem; font-size: 0.86rem; line-height: 1.7; color: #c8c8cf; }
.sw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1rem 0; }
.sw-cols .cell-label { display: block; margin-bottom: 0.4rem; }
.sw-grid { margin-top: 0.4rem; }

/* Widget: story link */
.dw-story { display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left; margin-bottom: 0.45rem; padding: 0.7rem 0.8rem; border-radius: 11px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.dw-story:hover { background: rgba(255,255,255,0.12); }
.dw-story .ic { width: 34px; height: 34px; flex-shrink: 0; }
.dw-story span { display: flex; flex-direction: column; min-width: 0; }
.dw-story strong { font-size: 0.88rem; color: #fff; }
.dw-story small { font-size: 0.66rem; color: #8d8d95; }
.dw-act-primary { grid-column: auto; padding: 0.6rem 0.65rem; }
.dw-act-primary .ic { width: 30px; height: 30px; }
.dw-act-primary strong { font-size: 0.8rem; }
.dw-act-primary .dw-arrow { display: none; }

/* ── Certificates (Resume window) ── */
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cert-card { display: block; text-align: left; border-radius: 9px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid var(--border-hi); transition: border-color 160ms ease, transform 160ms ease; }
.cert-card:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.cert-card img { display: block; width: 100%; aspect-ratio: 640 / 450; object-fit: cover; background: #18181b; }
.cert-card span { display: flex; flex-direction: column; padding: 0.55rem 0.65rem 0.6rem; }
.cert-card strong { font-size: 0.8rem; color: #fff; }
.cert-card small { font-size: 0.68rem; color: var(--muted); line-height: 1.4; margin-top: 0.1rem; }
.cert-view { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 3rem; background: rgba(0,0,0,0.85); cursor: zoom-out; }
.cert-view figure { margin: 0; max-width: min(1100px, 92vw); }
.cert-view img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.cert-view figcaption { margin-top: 0.8rem; text-align: center; font-size: 0.85rem; color: #d4d4d8; }
.cert-view button { position: absolute; top: 1rem; right: 1.2rem; font-size: 2rem; line-height: 1; color: #fff; }
