/* ================================================================
 *  APP INTERIOR STYLES — Hyprland Rice Dark Theme
 * ================================================================ */

/* ---- Terminal (cyan-on-dark) ---- */
#term-wrap { display: flex; flex-direction: column; height: 100%; }

.term-output {
  background: #0a0a18;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px;
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.term-input-line {
  display: flex;
  background: #0a0a18;
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0 12px 12px;
}

.term-input-line span { white-space: nowrap; line-height: 22px; }

.term-input {
  background: transparent;
  border: none;
  color: var(--accent-secondary);
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  outline: none;
  caret-color: var(--accent-secondary);
  padding: 0;
  line-height: 22px;
}

/* ---- About / System Properties ---- */
.app-about fieldset {
  margin: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.app-about fieldset legend {
  color: var(--accent-secondary);
  font-weight: 600;
  padding: 0 8px;
  text-shadow: 0 0 8px var(--accent-glow-bleed);
}
.app-about .skills-list { display: flex; flex-wrap: wrap; gap: 6px; }
.app-about .skill-tag {
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.15);
}
.app-about a { color: var(--accent-secondary); text-decoration: none; }
.app-about a:hover { text-decoration: underline; }
.app-about p { margin: 6px 0; font-size: 13px; color: var(--text-primary); }

/* ---- Projects / File Explorer ---- */
.app-projects { display: flex; height: 100%; }

.app-projects .tree-sidebar {
  width: 160px;
  border-right: 1px solid var(--glass-border);
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  overflow-y: auto;
  color: var(--text-secondary);
}
.app-projects .tree-item {
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}
.app-projects .tree-item:hover {
  background: rgba(124, 58, 237, 0.15);
  color: #fff;
}
.app-projects .file-grid {
  flex: 1;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  align-content: start;
  overflow-y: auto;
}
.app-projects .file-card {
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}
.app-projects .file-card:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--glass-border);
  color: #fff;
}
.app-projects .file-card .file-icon {
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--accent-secondary);
}

/* ---- Resume / Document Viewer ---- */
.app-resume {
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 20px 24px;
  line-height: 1.5;
  background: #0d0d1a;
  color: var(--text-primary);
  height: 100%;
  overflow-y: auto;
}
.resume-header { text-align: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-border); }
.resume-header h1 { margin: 0; font-size: 22px; color: var(--accent); text-shadow: 0 0 12px var(--accent-glow-bleed); }
.resume-subtitle { font-size: 14px; color: var(--accent-secondary); margin-top: 4px; }
.resume-links { display: flex; justify-content: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.resume-links a { color: var(--text-secondary); text-decoration: none; font-size: 12px; }
.resume-links a:hover { color: var(--accent-secondary); text-decoration: underline; }
.resume-section { margin-bottom: 14px; }
.resume-section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-secondary); border-bottom: 1px solid var(--glass-border); padding-bottom: 4px; margin: 0 0 10px; }
.resume-entry { margin-bottom: 10px; }
.resume-role { font-weight: 600; color: var(--text-primary); }
.resume-org { color: var(--text-secondary); font-size: 12px; }
.resume-date { color: var(--text-muted); font-size: 11px; }
.resume-certs { list-style: none; padding: 0; margin: 0; }
.resume-certs li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.resume-certs li strong { color: var(--accent); }
.resume-certs li span { color: var(--text-muted); font-size: 11px; white-space: nowrap; }

/* ---- Contact ---- */
.app-contact { padding: 12px; }
.app-contact fieldset {
  margin-bottom: 10px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.app-contact fieldset legend {
  color: var(--accent-secondary);
  font-weight: 600;
  padding: 0 8px;
}
.app-contact label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.app-contact input,
.app-contact textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 6px 8px;
  color: var(--text-primary);
  outline: none;
}
.app-contact input:focus,
.app-contact textarea:focus { border-color: var(--accent); }
.app-contact textarea { min-height: 120px; resize: vertical; }
.app-contact button {
  margin-top: 6px;
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
}
.app-contact button:hover { filter: brightness(1.2); }

/* ---- Internet Explorer / Browser ---- */
.app-ie-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
  font-size: 12px;
  color: var(--text-secondary);
}
.app-ie-toolbar input {
  flex: 1;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text-primary);
  outline: none;
}
.app-ie-bookmarks {
  display: flex;
  gap: 12px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
  font-size: 12px;
}
.app-ie-bookmarks a {
  color: var(--accent-secondary);
  text-decoration: none;
  text-shadow: 0 0 6px rgba(6, 182, 212, 0.2);
}
.app-ie-bookmarks a:hover { text-decoration: underline; }
.app-ie-content { padding: 16px; min-height: 200px; color: var(--text-primary); }
.app-ie-content h3 {
  margin: 0 0 8px;
  color: var(--accent-secondary);
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}
.app-ie-content hr { border: none; border-top: 1px solid var(--glass-border); margin: 10px 0; }
.app-ie-content a { color: var(--accent-secondary); }

/* ---- Notepad ---- */
.app-notepad { height: 100%; }
.app-notepad textarea {
  width: 100%;
  height: 100%;
  border: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px;
  box-sizing: border-box;
  outline: none;
  background: #0d0d1a;
  color: var(--text-primary);
  caret-color: var(--accent);
}

/* ---- Recycle Bin ---- */
.app-recycle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
}
.app-recycle .recycle-icon { font-size: 48px; margin-bottom: 8px; color: var(--text-muted); }

/* ---- Neofetch ---- */
.neofetch-block {
  display: flex;
  gap: 16px;
  padding: 4px 0;
  line-height: 1.4;
}
.neofetch-ascii {
  color: var(--accent);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.neofetch-info {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
.neofetch-key { color: var(--accent); font-weight: 600; }
.neofetch-val { color: var(--text-primary); }

/* ---- Mobile App Content ---- */
@media (max-width: 480px) {
  /* Projects: horizontal folder tabs above file grid */
  .app-projects {
    flex-direction: column;
  }
  .app-projects .tree-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    max-height: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 4px;
    padding: 6px;
  }
  .app-projects .tree-item {
    flex-shrink: 0;
  }
  .app-projects .file-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Neofetch: stack vertically */
  .neofetch-block {
    flex-direction: column;
    gap: 8px;
  }
  .neofetch-ascii { font-size: 10px; }
  .neofetch-info { font-size: 11px; }

  /* iOS zoom prevention: inputs must be >= 16px */
  .term-input,
  .term-input-line,
  .term-output { font-size: 16px; }
  .app-contact input,
  .app-contact textarea { font-size: 16px; }
  .app-ie-toolbar input { font-size: 16px; }

  /* Resume: adjust for mobile */
  .app-resume { font-size: 13px; padding: 14px 16px; }
  .resume-header h1 { font-size: 20px; }
  .resume-links { gap: 10px; }
  .resume-certs li { flex-direction: column; gap: 0; }
  .resume-certs li span { align-self: flex-start; }

  /* About: tighter spacing */
  .app-about fieldset { margin: 8px; padding: 10px; }
  .app-about .skill-tag { font-size: 10px; padding: 2px 6px; }

  /* IE bookmarks: allow wrapping */
  .app-ie-bookmarks { flex-wrap: wrap; gap: 8px; }
}
