/* =========================================================
   APPS.CSS — style riêng cho NỘI DUNG bên trong từng cửa sổ.
   Thêm cửa sổ mới -> nếu cần style riêng, thêm khối mới ở cuối file.
   ========================================================= */

/* ---- PROFILE_BIO.EXE ---- */
.app-profile .avatar {
  width: 64px; height: 64px;
  border: 2px solid var(--border-color);
  background: var(--dark-color);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.app-profile .avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.app-profile .avatar i { font-size: 28px; color: var(--main-color); }
.app-profile .head { display: flex; gap: 12px; align-items: center; border-bottom: 2px solid var(--dim-color); padding-bottom: 10px; margin-bottom: 10px; }
.app-profile .head h2 { margin: 0; font-size: 16px; }
.app-profile .head p { margin: 4px 0 0; font-size: 14px; color: var(--text-accent); }
.app-profile .fields p { margin: 8px 0; font-size: 1em; }
.app-profile .footer-row {
  border-top: 1px solid var(--dim-color);
  margin-top: 10px; padding-top: 8px;
  display: flex; justify-content: space-between;
  font-size: 11px; font-family: var(--font-mono-readable);
}

/* ---- SOCIAL_CONNECT ---- */
.social-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; margin-bottom: 10px;
  font-size: 15px; text-decoration: none;
}
.social-link .lbl { display: flex; align-items: center; gap: 8px; }
.social-link .cta { font-size: 12px; }

/* ---- FAVORITES.TXT ---- */
.fav-section-title { font-size: 13px; color: var(--text-accent); font-weight: bold; margin: 12px 0 6px; }
.fav-section-title:first-child { margin-top: 0; }
.fav-game-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 8px 10px; margin-bottom: 8px;
  font-size: 14px; text-decoration: none;
}
.fav-game-btn small { font-size: 11px; color: var(--text-accent); }
.fav-hobby-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.fav-hobby-list li { padding: 4px 0; border-bottom: 1px dashed var(--dim-color); }
.fav-hobby-list li:before { content: "» "; color: var(--text-accent); }

/* ---- MY_APPS_&_PROJECTS ---- */
.project-card {
  border: 1px solid var(--border-color);
  background: var(--dark-color);
  padding: 10px; margin-bottom: 10px;
}
.project-card .row1 { display: flex; justify-content: space-between; align-items: center; }
.project-card .row1 span.name { font-weight: bold; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.project-card .tag { font-size: 11px; background: var(--dim-color); padding: 2px 5px; }
.project-card p { font-size: 14px; margin: 6px 0; }
.project-card .row2 { display: flex; justify-content: flex-end; }
.project-card .row2 a { font-size: 12px; padding: 6px 10px; text-decoration: none; }

/* ---- ART_GALLERY.BMP ---- */
.gallery-viewport {
  width: 100%; height: 260px;
  border: 2px solid var(--border-color);
  background: var(--dark-color);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 10px; position: relative;
}
.gallery-viewport img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-caption { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--text-accent); background: rgba(0,0,0,0.5); padding: 2px; }
.gallery-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-presets button { font-size: 12px; padding: 8px 2px; }
.upload-label { font-size: 13px; padding: 6px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }

/* Chế độ công khai (view): ẩn mọi nút upload nhạc/ảnh */
body.view-mode .upload-label { display: none !important; }

/* ---- MINESWEEPER.EXE ---- */
.mine-topbar {
  display: flex; align-items: center; justify-content: space-between;
  border: 2px solid var(--border-color);
  background: var(--dark-color);
  padding: 6px 8px; margin-bottom: 10px;
  font-family: var(--font-mono-readable); font-size: 15px;
}
.mine-face {
  width: 30px; height: 30px;
  border: 2px solid var(--border-color);
  background: var(--dim-color);
  cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.mine-grid {
  display: grid;
  grid-template-columns: repeat(9, 26px);
  grid-template-rows: repeat(9, 26px);
  gap: 1px;
  background: var(--dim-color);
  border: 2px solid var(--border-color);
  width: max-content;
  margin: 0 auto;
}
.mine-cell {
  width: 26px; height: 26px;
  background: var(--dark-color);
  border: 1px solid var(--dim-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: bold;
  cursor: pointer; font-family: var(--font-mono-readable);
  color: var(--main-color);
}
.mine-cell.revealed { background: var(--bg-color); cursor: default; }
.mine-cell.flagged { color: #ff5050; }
.mine-cell.mine-hit { background: #ff2020; }
.mine-status { text-align: center; font-size: 14px; margin-top: 8px; min-height: 18px; color: var(--text-accent); }

/* ---- MUSIC_PLAYER.MP3 (kiểu Spotify, upload nhạc) ---- */
.music-nowplaying {
  border: 2px solid var(--border-color);
  background: var(--dark-color);
  padding: 12px;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 10px;
}
.music-cover {
  width: 64px; height: 64px; flex-shrink: 0;
  border: 2px solid var(--border-color);
  background: var(--bg-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.music-track { font-size: 16px; overflow: hidden; }
.music-track b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-track small { color: var(--text-accent); font-size: 12px; }
.music-player audio { width: 100%; margin: 6px 0 10px; }
.music-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; max-height: 220px; overflow-y: auto; }
.music-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; width: 100%; text-align: left;
  padding: 8px 10px; font-size: 14px;
}
.music-item.active { background: var(--main-color); color: var(--bg-color); }
.music-empty { font-size: 13px; color: var(--text-accent); }

/* ---- PIXEL_MEDIA.BMP (ảnh/video từ folder media, cửa sổ khóa) ---- */
.media-grid { display: flex; flex-direction: column; gap: 10px; }
.media-frame {
  border: 2px solid var(--border-color);
  background: var(--dark-color);
  overflow: hidden;
}
.media-frame img, .media-frame video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; image-rendering: pixelated;
}
.media-frame.tall { min-height: 300px; }
.media-note { font-size: 12px; color: var(--text-accent); }

/* ---- DESKTOP_NOTES.TXT (bình luận guestbook, lưu local) ---- */
.notes-list {
  background: var(--dark-color);
  border: 1px solid var(--border-color);
  padding: 8px;
  height: 260px;
  overflow-y: auto;
  font-size: 14px;
}
.notes-list p { border-bottom: 1px dashed var(--dim-color); padding: 4px 0; margin: 0 0 4px; }
.notes-form { display: flex; gap: 6px; margin-top: 8px; }
.notes-form input {
  flex: 1;
  background: var(--dark-color);
  color: var(--main-color);
  border: 1px solid var(--border-color);
  padding: 6px 8px;
  font-family: var(--font-mono-readable);
  font-size: 13px;
  outline: none;
  min-width: 0;
}
