/* =========================================================
   ABOUT ME
   ========================================================= */
.about-app { display: flex; flex-direction: column; gap: 18px; }
.about-header { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.about-pic-frame {
  width: 220px; height: 220px;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.about-pic-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-pic-frame svg { width: 65% !important; height: 65% !important; }
.about-name { font-family: var(--font-display); font-size: 22px; margin: 0 0 6px; }
[data-font="modern"] .about-name { font-size: 24px; }
.about-title { color: var(--ink-soft); font-style: italic; margin: 0 0 4px; }
.about-tagline { color: var(--coral); font-weight: bold; }
.about-bio { line-height: 1.6; }
.about-links { display: flex; gap: 8px; flex-wrap: wrap; }
.about-links a { text-decoration: none; }

/* =========================================================
   WORK — "still cooking" placeholder
   ========================================================= */
.work-app {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 16px;
  min-height: 220px;
}
.work-app .pixel-pot { width: 96px; height: 96px; }
.work-app h3 { font-family: var(--font-display); font-size: 14px; margin: 0; }
[data-font="modern"] .work-app h3 { font-size: 18px; }
.work-app p { color: var(--ink-soft); max-width: 320px; }
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.work-app .pixel-pot { animation: bubbleFloat 2s ease-in-out infinite; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-list { list-style: none; padding: 0; margin: 0 0 16px; }
.contact-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--cream-deep);
}
.contact-list li .c-icon { width: 22px; height: 22px; flex-shrink: 0; }
.contact-list li .c-icon svg { width: 100%; height: 100%; display: block; }
.contact-list li a { text-decoration: underline; }

/* =========================================================
   MUSIC PLAYER
   ========================================================= */
.music-app { display: flex; flex-direction: column; height: 100%; gap: 10px; }
.music-now-playing {
  /* fixed near-black "LCD display" look, independent of light/dark theme */
  background: #1a1428;
  color: var(--mint);
  padding: 14px;
  text-align: center;
  border: 2px solid var(--ink);
}
.music-now-playing #np-current,
.music-now-playing #np-duration { color: var(--mint); }
.music-now-playing .np-title { font-family: var(--font-display); font-size: 13px; margin-bottom: 8px; word-break: break-word; }
[data-font="modern"] .music-now-playing .np-title { font-size: 15px; }
.music-progress { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.music-progress input[type="range"] { flex: 1; }
.music-controls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.music-controls button {
  width: 36px; height: 32px;
  border: 2px solid var(--panel-btn-border);
  background: var(--panel-btn-bg);
  color: var(--panel-btn-text);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}
.music-controls button:hover { background: var(--panel-btn-hover-bg); }
.music-controls button.toggled { background: var(--panel-btn-active-bg); color: var(--white); }
.music-controls button:active { box-shadow: none; transform: translate(2px,2px); }
.music-volume { display: flex; align-items: center; gap: 6px; }
.music-volume input { flex: 1; }
.playlist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; border-top: 2px solid var(--cream-deep); }
.playlist li {
  padding: 8px 10px;
  border-bottom: 1px solid var(--cream-deep);
  display: flex; align-items: center; gap: 8px;
  font-size: 15px;
}
.playlist li:hover { background: var(--cream-deep); }
.playlist li.playing { background: var(--lilac); color: var(--white); }
.music-empty { text-align: center; color: var(--ink-soft); padding: 20px; }

/* =========================================================
   DOCUMENT VIEWER
   ========================================================= */
.doc-app { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.doc-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-frame-wrap {
  flex: 1;
  border: 2px solid var(--ink);
  background: #fff;
  min-height: 200px;
}
.doc-frame-wrap iframe { width: 100%; height: 100%; border: none; }
.doc-empty { text-align: center; color: var(--ink-soft); padding: 30px 10px; }
.doc-empty .pixel-doc { width: 64px; height: 64px; margin: 0 auto 12px; }

/* =========================================================
   SETTINGS
   ========================================================= */
.settings-app { display: flex; flex-direction: column; gap: 18px; }
.settings-section h4 {
  font-family: var(--font-display); font-size: 11px;
  margin: 0 0 10px; color: var(--ink-soft);
}
[data-font="modern"] .settings-section h4 { font-size: 13px; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-chip {
  padding: 6px 10px;
  border: 2px solid var(--panel-btn-border);
  background: var(--panel-btn-bg);
  color: var(--panel-btn-text);
  font-size: 13px;
  font-family: var(--font-body);
}
.opt-chip:hover { background: var(--panel-btn-hover-bg); }
.opt-chip.active { background: var(--coral); color: var(--white); }
.wallpaper-swatch {
  width: 46px; height: 32px;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.wallpaper-swatch.active { outline: 2px solid var(--coral); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.slider-row { display: flex; align-items: center; gap: 10px; }
.slider-row input[type="range"] { flex: 1; }
.slider-row .slider-value { font-family: var(--font-body); font-size: 14px; min-width: 36px; text-align: right; }
.toggle-switch {
  width: 42px; height: 22px;
  background: var(--panel-btn-bg);
  border: 2px solid var(--panel-btn-border);
  position: relative;
  flex-shrink: 0;
}
.toggle-switch .knob {
  position: absolute; top: 1px; left: 1px;
  width: 16px; height: 16px;
  background: var(--ink);
  transition: transform 0.15s ease;
}
.toggle-switch.on { background: var(--mint); }
.toggle-switch.on .knob { transform: translateX(18px); background: var(--ink); }

@media (max-width: 720px) {
  .about-header { flex-direction: column; text-align: center; }
}

/* =========================================================
   INTERNET EXPLORER
   ========================================================= */
.ie-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 4px;
  direction: ltr !important;
  text-align: left !important;
}
.ie-menu-bar {
  display: flex;
  gap: 12px;
  font-size: 11px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--cream-deep);
  color: var(--ink-soft);
  user-select: none;
}
.ie-menu-bar span {
  cursor: default;
}
.ie-menu-bar span:hover {
  color: var(--ink);
}
.ie-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--cream-deep);
  border-bottom: 2px solid var(--win-border);
}
.ie-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--win-face);
  color: var(--panel-btn-text);
  border: 1px solid var(--panel-btn-border);
  box-shadow: 1px 1px 0 var(--shadow);
  font-size: 11px;
}
.ie-btn:disabled {
  opacity: 0.5;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.ie-btn:not(:disabled):hover {
  background: var(--panel-btn-hover-bg);
}
.ie-btn:not(:disabled):active {
  box-shadow: none;
  transform: translate(1px, 1px);
}
.ie-btn-icon {
  font-size: 12px;
}
.ie-btn-text {
  font-family: var(--font-body);
  font-size: 12px;
}
.ie-toolbar-separator {
  width: 2px;
  height: 20px;
  background: var(--ink-soft);
  margin: 0 4px;
}
.ie-logo-spinning {
  margin-left: auto;
  font-size: 18px;
  animation: ie-spin 2s linear infinite;
}
@keyframes ie-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ie-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
}
.ie-address-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--ink-soft);
}
.ie-address-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--white);
  border: 2px solid var(--win-border);
  border-radius: var(--radius);
}
.ie-address-icon {
  font-size: 12px;
}
.ie-address {
  flex: 1;
  border: none;
  background: transparent;
  color: #2e2444;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.ie-address::selection {
  background: var(--lilac);
  color: #fff;
}
.ie-tabs {
  display: flex;
  gap: 4px;
  padding: 0 8px;
  border-bottom: 2px solid var(--win-border);
  overflow-x: auto;
  background: var(--cream-deep);
}
.ie-tab {
  padding: 6px 12px;
  background: var(--win-face);
  color: var(--ink-soft);
  border: 2px solid var(--win-border);
  border-bottom: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  font-family: var(--font-display);
  font-size: 9px;
  cursor: pointer;
  position: relative;
  top: 2px;
}
.ie-tab.active {
  background: var(--win-face);
  color: var(--ink);
  border-bottom: 2px solid var(--win-face);
  font-weight: bold;
  top: 0;
  padding-bottom: 8px;
  z-index: 2;
}
.ie-frame-container {
  flex: 1;
  position: relative;
  background: #fff;
  border: 2px solid var(--win-border);
  min-height: 200px;
}
.ie-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.ie-iframe {
  width: 118%;
  height: 118%;
  border: none;
  transform: scale(0.85);
  transform-origin: top left;
}
.ie-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}
.ie-loader.loading {
  display: flex;
}
.ie-loader-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid var(--cream-deep);
  border-top: 4px solid var(--lilac);
  border-radius: 50%;
  animation: ie-spin 1s linear infinite;
}
.ie-loader-text {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--ink-soft);
}

/* =========================================================
   NOTEPAD / NOTES APP
   ========================================================= */
.notepad-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 2px solid var(--win-border);
}
.notepad-menu-bar {
  display: flex;
  gap: 12px;
  font-size: 11px;
  padding: 4px 8px;
  background: var(--win-face);
  border-bottom: 1px solid var(--cream-deep);
  color: var(--ink-soft);
  user-select: none;
}
.notepad-menu-bar span {
  cursor: default;
}
.notepad-menu-bar span:hover {
  color: var(--ink);
}
.notepad-tabs {
  display: flex;
  gap: 4px;
  padding: 0 8px;
  background: var(--cream-deep);
  border-bottom: 2px solid var(--win-border);
}
.notepad-tab {
  padding: 6px 12px;
  background: var(--win-face);
  color: var(--ink-soft);
  border: 2px solid var(--win-border);
  border-bottom: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  top: 2px;
}
.notepad-tab:hover {
  background: var(--panel-btn-hover-bg);
}
.notepad-tab.active {
  background: var(--win-face);
  color: var(--ink);
  border-bottom: 2px solid var(--win-face);
  font-weight: bold;
  top: 0;
  padding-bottom: 8px;
  z-index: 2;
}
.notepad-textarea {
  flex: 1;
  width: 100%;
  border: none;
  outline: none;
  padding: 8px;
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.6;
  text-align: justify;
  direction: ltr !important;
  color: #000;
  background: #fff;
  overflow-y: auto;
  white-space: pre-wrap;
  user-select: text;
}
.notepad-note-title {
  font-weight: bold;
}
.notepad-note-body {
  font-weight: normal;
}

/* =========================================================
   ACHIEVEMENTS APPLICATION
   ========================================================= */
.achievements-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
  padding: 8px;
  overflow-y: auto;
}
.achievements-hint {
  background: var(--cream-deep);
  border: 1px dashed var(--ink-soft);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
}
.achievements-progress-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--win-face);
  border: 2px solid var(--win-border);
  box-shadow: var(--shadow-soft);
}
.ap-progress-label {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--ink);
}
.ap-progress-stars {
  font-size: 16px;
  color: var(--coral);
}
.ap-progress-text {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: bold;
}
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ach-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: var(--win-face);
  border: 2px solid var(--win-border);
  box-shadow: var(--shadow-soft);
  align-items: center;
}
.ach-card.unlocked {
  background: var(--cream);
  border-color: var(--lilac);
}
.ach-card-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--win-face);
  border: 2px solid var(--win-border);
  border-radius: 50%;
  flex-shrink: 0;
}
.ach-card-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-family: var(--font-body);
}
.ach-card-title {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--ink);
  margin-bottom: 4px;
}
.ach-card.unlocked .ach-card-title {
  color: var(--lilac-deep);
}
.ach-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  line-height: 1.3;
}
.ach-card-status {
  font-size: 12px;
  font-weight: bold;
}
.ach-card.unlocked .ach-card-status {
  color: var(--mint-deep);
}
.ach-card.locked .ach-card-status {
  color: var(--coral);
}
.ach-card-date {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* =========================================================
   ACHIEVEMENT POPUP NOTIFICATION
   ========================================================= */
.achievement-popup {
  position: fixed;
  bottom: 20px;
  right: -340px;
  width: 290px;
  background: var(--win-face);
  color: var(--ink);
  border: 2px solid var(--win-border);
  box-shadow: var(--shadow-hard);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 99999;
  transition: right 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  font-family: var(--font-body);
}
.achievement-popup.visible {
  right: 20px;
}
.ap-icon {
  font-size: 32px;
}
.ap-details {
  display: flex;
  flex-direction: column;
}
.ap-title {
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--coral);
  margin-bottom: 4px;
}
.ap-name {
  font-size: 15px;
  font-weight: bold;
}

