/* ============================================================
   Brian's Software Engineer Portfolio
   Authentic Windows VS Code — Fullscreen Edition
   ============================================================ */

:root {
  --win-titlebar-bg: #181818;
  --win-activitybar-bg: #181818;
  --win-sidebar-bg: #252526;
  --win-editor-bg: #1e1e1e;
  --win-tab-active-bg: #1e1e1e;
  --win-tab-inactive-bg: #2d2d2d;
  --win-statusbar-bg: #007acc;
  /* Signature VS Code Blue */
  --win-border: #2b2b2b;
  --win-hover: #2a2d2e;

  /* Text & Colors */
  --text-main: #cccccc;
  --text-bright: #ffffff;
  --text-muted: #858585;
  --text-dim: #555555;

  --vscode-blue: #0078d4;
  --vscode-accent: #007acc;
  --syn-key: #c586c0;
  --syn-string: #ce9178;
  --syn-green: #4ec9b0;
  --syn-yellow: #dcdcaa;
  --syn-hash: #569cd6;

  --font-code: 'Fira Code', Consolas, 'Courier New', monospace;
  --font-ui: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(121, 121, 121, 0.4) transparent;
}

/* ============================================================
   Custom VS Code Scrollbars (Hides Native Browser Stepper Arrows)
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(121, 121, 121, 0.35);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(121, 121, 121, 0.6);
}

/* Completely remove native Windows up/down stepper arrow buttons */
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--win-editor-bg);
  color: var(--text-main);
  font-family: var(--font-ui);
  line-height: 1.5;
}

/* Fullscreen App Container */
.vscode-app {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--win-editor-bg);
}

/* ============================================================
   1. Windows VS Code Titlebar
   ============================================================ */
.win-titlebar {
  background-color: var(--win-titlebar-bg);
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-bottom: 1px solid var(--win-border);
  user-select: none;
  font-size: 0.78rem;
  flex-shrink: 0;
  padding: 0 8px;
}

.win-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.vscode-logo {
  display: block;
  flex-shrink: 0;
}

.win-menu {
  display: flex;
  align-items: center;
}

.menu-item {
  padding: 4px 8px;
  color: var(--text-main);
  border-radius: 4px;
  cursor: default;
  transition: background-color 0.1s ease;
}

.menu-item:hover {
  background-color: var(--win-hover);
  color: var(--text-bright);
}

/* Center Command Palette / Search Bar */
.win-title-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  z-index: 1;
}

.search-box {
  width: 100%;
  background-color: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  padding: 3px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.search-box:hover {
  border-color: var(--vscode-blue);
  color: var(--text-main);
}

.search-text {
  font-size: 0.75rem;
}

/* Right: VS Code Layout Controls */
.win-title-right {
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
  margin-left: auto;
}

.layout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.layout-btn:hover {
  background-color: var(--win-hover);
  color: var(--text-bright);
}

.layout-btn.active {
  color: var(--text-bright);
}

/* ============================================================
   2. Workspace Area (Activity Bar + File Explorer + Editor)
   ============================================================ */
.ide-workspace {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;
  /* Crucial for internal scroll */
  overflow: hidden;
}

/* Activity Bar (48px left vertical strip) */
.activity-bar {
  width: 48px;
  background-color: var(--win-activitybar-bg);
  border-right: 1px solid var(--win-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  user-select: none;
  flex-shrink: 0;
  z-index: 10;
}

.activity-top,
.activity-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.activity-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.activity-icon:hover {
  color: var(--text-bright);
}

.activity-icon.active {
  color: var(--text-bright);
}

.activity-icon.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--text-bright);
}

.activity-icon.has-badge .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--vscode-blue);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 9999px;
  line-height: 1;
}

/* ============================================================
   File Explorer Sidebar Panel (Authentic VS Code)
   ============================================================ */
.sidebar-explorer {
  width: 240px;
  background-color: var(--win-sidebar-bg);
  border-right: 1px solid var(--win-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  user-select: none;
  transition: width 0.2s ease, margin 0.2s ease;
  overflow: hidden;
  font-family: var(--font-ui);
}

.sidebar-explorer.collapsed {
  width: 0;
  border-right: none;
}

/* Header (EXPLORER ...) */
.explorer-header {
  height: 35px;
  padding: 0 10px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.explorer-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #bbbbbb;
}

.explorer-menu-action {
  color: #858585;
  cursor: pointer;
  padding: 3px;
  border-radius: 3px;
  display: flex;
  align-items: center;
}

.explorer-menu-action:hover {
  color: #ffffff;
  background-color: var(--win-hover);
}

/* Root Section Bar (PORTFOLIO with hover actions) */
.explorer-section-bar {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 2px;
  cursor: pointer;
  user-select: none;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #cccccc;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.explorer-section-bar:hover .section-actions {
  opacity: 1;
}

.sec-btn {
  display: flex;
  align-items: center;
  color: #858585;
  padding: 2px;
  border-radius: 3px;
  cursor: pointer;
}

.sec-btn:hover {
  color: #ffffff;
  background-color: var(--win-hover);
}

/* Explorer Tree */
.explorer-tree {
  flex: 1;
  overflow-y: auto;
  padding: 2px 0 12px;
}

/* Tree Row */
.tree-row {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 2px;
  font-size: 13px;
  color: #cccccc;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.08s ease;
}

.tree-row:hover {
  background-color: #2a2d2e;
  color: #ffffff;
}

/* Active File Focus Box (Matches content.js in user's screenshot) */
.tree-row.active {
  background-color: #04395e;
  color: #ffffff;
  outline: 1px solid #007fd4;
  outline-offset: -1px;
}

/* Tree Indentation with Guide Line */
.tree-indent-group {
  margin-left: 10px;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Chevrons (no folder icons!) */
.chevron-svg {
  color: #cccccc;
  flex-shrink: 0;
  display: block;
}

.row-label {
  font-size: 13px;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seti Icons */
.file-icon-wrap {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.json-seti {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 12px;
  color: #a6e22e;
}

.git-seti {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Main Editor Pane
   ============================================================ */
.editor-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--win-editor-bg);
  min-width: 0;
  overflow: hidden;
}

/* Tabs Bar */
.ide-tabs {
  background-color: #252526;
  height: 35px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--win-border);
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE / Edge */
}

.ide-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome, Edge, Safari */
  width: 0;
  height: 0;
}

.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  background-color: var(--win-tab-inactive-bg);
  border-right: 1px solid #1e1e1e;
  border-top: 1px solid transparent;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.tab:hover {
  background-color: #2a2a2a;
  color: var(--text-bright);
}

.tab.active {
  background-color: var(--win-tab-active-bg);
  color: var(--text-bright);
  border-top: 1px solid var(--vscode-blue);
}

.tab-name {
  font-family: var(--font-ui);
}

.file-icon {
  color: #519aba;
}

.tab-close {
  font-size: 0.95rem;
  margin-left: 8px;
  color: var(--text-dim);
  line-height: 1;
}

.tab-close:hover {
  color: var(--text-bright);
}

.tabs-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  padding-right: 12px;
}

.tab-action-icon {
  color: var(--text-muted);
  padding: 4px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.tab-action-icon:hover {
  color: var(--text-bright);
  background-color: var(--win-hover);
}

/* Breadcrumbs */
.ide-breadcrumbs {
  height: 24px;
  padding: 0 16px;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-bottom: 1px solid #282828;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--win-editor-bg);
  flex-shrink: 0;
}

.ide-breadcrumbs .separator {
  color: var(--text-dim);
}

.ide-breadcrumbs .current {
  color: var(--text-bright);
}

/* ============================================================
   Editor Body & Gutter
   ============================================================ */
.ide-body {
  display: flex;
  flex: 1;
  font-family: var(--font-code);
  overflow-y: auto;
  min-height: 0;
}

.gutter {
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: right;
  min-width: 50px;
  background-color: var(--win-editor-bg);
}

.editor-content {
  flex: 1;
  padding: 24px 36px 30px;
  max-width: 900px;
}

.spacer {
  height: 18px;
}

/* Syntax Highlighting */
.syn-comment {
  color: #6a9955;
  font-style: italic;
}

.syn-key {
  color: var(--syn-key);
}

.syn-string {
  color: var(--syn-string);
}

.syn-md-hash {
  color: var(--syn-hash);
  margin-right: 8px;
  font-weight: bold;
}

.syn-badge {
  color: #4ec9b0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #4ec9b0;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #4ec9b0;
}

.code-block.frontmatter p {
  margin: 3px 0;
  font-size: 0.88rem;
}

/* Hero Section */
.hero-intro {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
}

.main-title {
  font-family: var(--font-ui);
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.cursor {
  display: inline-block;
  color: var(--syn-hash);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Motto Box */
.motto-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #252526;
  border-left: 3px solid var(--vscode-blue);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0 28px;
}

.quote-prefix {
  color: var(--vscode-blue);
  font-weight: 600;
  font-size: 1.15rem;
}

.motto-text {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: #e0e0e0;
  font-style: italic;
}

/* Action Buttons */
.actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: var(--vscode-blue);
  color: #ffffff;
  border: 1px solid var(--vscode-blue);
}

.btn-primary:hover {
  background-color: #1a8ad6;
  box-shadow: 0 0 12px rgba(0, 120, 212, 0.4);
  transform: translateY(-1px);
}

.key-hint {
  font-family: var(--font-code);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.btn-secondary {
  background-color: #2d2d2d;
  color: var(--text-bright);
  border: 1px solid #3c3c3c;
}

.btn-secondary:hover {
  background-color: #383838;
  border-color: #555555;
  transform: translateY(-1px);
}

.terminal-note {
  font-size: 0.88rem;
  margin-top: 30px;
  margin-bottom: 28px;
}

/* ============================================================
   Projects Page Elements
   ============================================================ */
.ide-body.is-centered {
  position: relative;
}

/* Taken out of flow so the content column centers against the full pane,
   not the pane minus the gutter. The numbers stay pinned to the left edge. */
.ide-body.is-centered .gutter {
  position: absolute;
  top: 0;
  left: 0;
}

.ide-body.is-centered .editor-content {
  flex: 0 1 900px;
  margin: 0 auto;
  align-self: flex-start;
  padding-left: 56px;
  padding-right: 56px;
}

.ide-body.is-centered .hero-intro {
  justify-content: center;
}

.ide-body.is-centered .section-lead {
  text-align: center;
}

.section-lead {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  background-color: #252526;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 20px;
  transition: all 0.15s ease;
}

.project-card:hover {
  border-color: var(--vscode-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-tag {
  color: #d7ba7d;
  font-size: 0.8rem;
}

.project-card h3 {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: #ffffff;
}

.status-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  background-color: #333;
  color: var(--text-muted);
}

.status-pill.active {
  background-color: rgba(78, 201, 176, 0.15);
  color: #4ec9b0;
  border: 1px solid rgba(78, 201, 176, 0.3);
}

.card-desc {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-pill {
  font-size: 0.72rem;
  background-color: #1e1e1e;
  color: #9cdcfe;
  border: 1px solid #3c3c3c;
  padding: 2px 8px;
  border-radius: 3px;
}

.card-links {
  display: flex;
  gap: 12px;
}

.project-btn {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.project-btn.demo {
  background-color: rgba(0, 120, 212, 0.2);
  color: #70b8ff;
  border: 1px solid rgba(0, 120, 212, 0.4);
}

.project-btn.demo:hover {
  background-color: var(--vscode-blue);
  color: #ffffff;
}

.project-btn.code {
  color: var(--text-muted);
  border: 1px solid #3c3c3c;
}

.project-btn.code:hover {
  color: var(--text-bright);
  background-color: #333;
}

/* ============================================================
   About Page Elements
   ============================================================ */
.about-section {
  margin-top: 26px;
}

.about-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
}

.about-heading .syn-md-hash {
  font-size: 1rem;
  margin-right: 0;
}

.about-text {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
  max-width: 70ch;
}

.about-text+.about-text {
  margin-top: 12px;
}

.placeholder {
  color: #7d7d7d;
  font-style: italic;
}

.experience-item {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid #2f2f2f;
  transition: border-color 0.15s ease;
}

.experience-item:hover {
  border-left-color: var(--vscode-blue);
}

.experience-role {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.experience-role .syn-md-hash {
  margin-right: 0;
  font-size: 0.9rem;
}

.experience-company {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.7);
  text-underline-offset: 3px;
}

.experience-company:hover {
  text-decoration-color: rgba(255, 255, 255, 0.85);
}

.experience-company:visited {
  color: #ffffff;
}

.experience-meta {
  margin-top: 3px;
  font-size: 0.78rem;
  /* color: var(--text-muted); */
}

.experience-list {
  list-style: none;
  margin-top: 10px;
}

.experience-list li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-main);
}

.experience-list li+li {
  margin-top: 4px;
}

.experience-list li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--syn-hash);
}

/* Centered about layout — gutter stays pinned left, content column centers */
.ide-body.is-centered .about-heading {
  justify-content: center;
}

.ide-body.is-centered .about-text {
  margin-left: auto;
  margin-right: auto;
}

.ide-body.is-centered .experience-item {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ide-body.is-centered .terminal-note {
  text-align: center;
}

/* ============================================================
   3. Authentic Windows VS Code Status Bar (Blue)
   ============================================================ */
.win-statusbar {
  background-color: var(--win-statusbar-bg);
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 0.72rem;
  color: #ffffff;
  user-select: none;
  flex-shrink: 0;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0 5px;
  height: 24px;
}

.status-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.remote-badge {
  background-color: #16825d;
  color: #ffffff;
  padding: 0 8px;
}

.remote-badge:hover {
  background-color: #1bb07d;
}

.errors-warnings {
  display: flex;
  gap: 6px;
}

/* Responsive Rules */
@media (max-width: 860px) {

  .win-menu,
  .search-box,
  .status-right {
    display: none;
  }

  .sidebar-explorer {
    width: 200px;
  }
}

@media (max-width: 680px) {
  .sidebar-explorer {
    position: absolute;
    left: 48px;
    top: 35px;
    bottom: 24px;
    z-index: 20;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.6);
  }

  .gutter {
    display: none;
  }

  .editor-content {
    padding: 18px 18px 40px;
  }

  .main-title {
    font-size: 1.8rem;
  }
}