/* ── Desktop ── */
#desktop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-image: url('../assets/gui/bgs/bliss.png?v=2');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#desktop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Desktop Icons ── */
#desktop-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 75px;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
}

.desktop-icon:hover {
  background: rgba(43, 114, 211, 0.15);
  border-color: rgba(43, 114, 211, 0.3);
}

.desktop-icon.selected {
  background: rgba(43, 114, 211, 0.3);
  border-color: rgba(43, 114, 211, 0.6);
}

.desktop-icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  pointer-events: none;
}

.desktop-icon span {
  color: #fff;
  font-size: 11px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
  line-height: 1.3;
  word-wrap: break-word;
}

/* ── Taskbar ── */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--xp-taskbar-gradient);
  border-top: 1px solid var(--xp-taskbar-highlight);
  display: flex;
  align-items: center;
  z-index: 8000;
}

/* Start Button */
#start-button {
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
  transition: filter 0.15s;
}

#start-button:hover {
  filter: brightness(1.15);
}

#start-button:active {
  filter: brightness(0.9);
}

#start-button img {
  height: 100%;
  width: auto;
}

/* Taskbar Window Buttons Area */
#taskbar-windows {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 2px;
  overflow: hidden;
}

.taskbar-window-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  background: linear-gradient(to bottom, #3c6dbf, #295ba5);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  cursor: pointer;
  flex-shrink: 0;
}

.taskbar-window-btn:hover {
  background: linear-gradient(to bottom, #4c80d4, #3670ba);
}

.taskbar-window-btn.active {
  background: linear-gradient(to bottom, #1a4a90, #0e3570);
  border-color: rgba(0,0,0,0.3);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.taskbar-window-btn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* System Tray */
#system-tray {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  height: 100%;
  border-left: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(to bottom, #1a5ac7, #1048a0);
}

#system-tray .tray-btn {
  width: 16px;
  height: 16px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s;
}

#system-tray .tray-btn:hover {
  opacity: 1;
}

#system-tray .tray-btn img {
  width: 100%;
  height: 100%;
}

#clock {
  color: #fff;
  font-size: 11px;
  font-family: Tahoma, sans-serif;
  margin-left: 6px;
  white-space: nowrap;
}

/* ── Start Menu ── */
#start-menu {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 380px;
  background: #fff;
  border: 2px solid #0054e3;
  border-radius: 8px 8px 0 0;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.4);
  z-index: 8500;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#start-menu.open {
  display: flex;
}

/* Start menu header */
#start-menu .sm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(to right, #1a5ac7, #3888e8);
  color: #fff;
}

#start-menu .sm-header img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
}

#start-menu .sm-header .sm-user-name {
  font-size: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Start menu body — two columns */
#start-menu .sm-body {
  display: flex;
  min-height: 260px;
}

#start-menu .sm-left {
  flex: 1;
  padding: 8px 0;
  background: #fff;
}

#start-menu .sm-right {
  width: 48%;
  padding: 8px 0;
  background: var(--xp-start-menu-right);
  border-left: 1px solid #a0b8d8;
}

/* Menu items */
#start-menu .sm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #000;
  transition: background 0.1s;
}

#start-menu .sm-item:hover {
  background: var(--xp-selection);
  color: #fff;
}

#start-menu .sm-item img {
  width: 28px;
  height: 28px;
}

#start-menu .sm-right .sm-item img {
  width: 22px;
  height: 22px;
}

#start-menu .sm-separator {
  height: 1px;
  background: #d4d0c8;
  margin: 4px 12px;
}

#start-menu .sm-right .sm-separator {
  background: #a0b8d8;
}

/* Start menu footer */
#start-menu .sm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(to right, #2060c0, #3080e0);
  border-top: 1px solid #0054e3;
}

#start-menu .sm-footer button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: #fff;
  font-size: 11px;
  border-radius: 3px;
  transition: background 0.15s;
}

#start-menu .sm-footer button:hover {
  background: rgba(255,255,255,0.15);
}

#start-menu .sm-footer button img {
  width: 20px;
  height: 20px;
}

/* ── Context Menu ── */
#context-menu {
  position: fixed;
  min-width: 180px;
  background: #fff;
  border: 1px solid #808080;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  z-index: 9500;
  display: none;
  padding: 2px 0;
  font-size: 11px;
}

#context-menu.open {
  display: block;
}

#context-menu .ctx-item {
  padding: 4px 24px;
  cursor: pointer;
  color: #000;
}

#context-menu .ctx-item:hover {
  background: var(--xp-selection);
  color: #fff;
}

#context-menu .ctx-separator {
  height: 1px;
  background: #d4d0c8;
  margin: 2px 0;
}

#context-menu .ctx-item.disabled {
  color: #808080;
  pointer-events: none;
}

/* ── Window Content Styles ── */

/* About Me */
.about-content {
  padding: 16px;
}

.about-content .about-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.about-content .about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 2px solid #0054e3;
  object-fit: cover;
  flex-shrink: 0;
}

.about-content .about-bio h2 {
  font-size: 18px;
  color: #0054e3;
  margin-bottom: 8px;
}

.about-content .about-bio p {
  font-size: 12px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 8px;
}

.about-content .skills-section h3,
.about-content .links-section h3 {
  font-size: 13px;
  color: #0054e3;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

.about-content .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-content .skill-tag {
  padding: 3px 10px;
  background: #e8f0fe;
  border: 1px solid #b4cce8;
  border-radius: 3px;
  font-size: 11px;
  color: #1a5ac7;
}

.about-content .social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.about-content .social-links a {
  color: #0054e3;
  font-size: 12px;
  text-decoration: underline;
}

.about-content .social-links a:hover {
  color: #e04343;
}

/* Projects */
.projects-content {
  padding: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.project-card {
  background: #fff;
  border: 1px solid #b4b4b4;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: #0054e3;
  box-shadow: 0 2px 8px rgba(0,84,227,0.2);
}

.project-card .card-hero {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.project-card .card-color-bar {
  height: 6px;
}

.project-card .card-body {
  padding: 10px;
}

.project-card .card-body h3 {
  font-size: 13px;
  color: #0054e3;
  margin-bottom: 4px;
}

.project-card .card-body p {
  font-size: 11px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 8px;
}

.project-card .card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project-card .card-tech span {
  font-size: 10px;
  padding: 2px 6px;
  background: #f0f0f0;
  border-radius: 2px;
  color: #555;
}

/* Resume */
.resume-content {
  padding: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.resume-content h2 {
  font-size: 20px;
  color: #0054e3;
  margin-bottom: 4px;
}

.resume-content .resume-subtitle {
  color: #666;
  font-size: 12px;
  margin-bottom: 20px;
}

.resume-content h3 {
  font-size: 14px;
  color: #333;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #0054e3;
}

.resume-content .resume-item {
  margin-bottom: 14px;
}

.resume-content .resume-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.resume-content .resume-item .item-title {
  font-weight: bold;
  font-size: 12px;
  color: #111;
}

.resume-content .resume-item .item-date {
  font-size: 11px;
  color: #888;
}

.resume-content .resume-item .item-org {
  font-size: 11px;
  color: #555;
  font-style: italic;
  margin-bottom: 4px;
}

.resume-content .resume-item .item-desc {
  font-size: 11px;
  color: #444;
  line-height: 1.5;
}

.resume-content .resume-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.resume-content .resume-skill {
  padding: 3px 10px;
  background: #e8f0fe;
  border: 1px solid #b4cce8;
  border-radius: 3px;
  font-size: 11px;
  color: #1a5ac7;
}

/* Contact */
.contact-content {
  padding: 24px;
  text-align: center;
}

.contact-content h2 {
  font-size: 18px;
  color: #0054e3;
  margin-bottom: 6px;
}

.contact-content .contact-subtitle {
  color: #666;
  font-size: 12px;
  margin-bottom: 24px;
}

.contact-content .contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-content .contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #b4b4b4;
  border-radius: 4px;
  width: 260px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  color: #333;
  font-size: 13px;
  text-decoration: none;
}

.contact-content .contact-link:hover {
  border-color: #0054e3;
  background: #e8f0fe;
  color: #0054e3;
}

.contact-content .contact-link .link-icon {
  font-size: 20px;
}
