/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  z-index: 2000;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

/* Static resume — hidden when JS is active */
#static-resume {
  display: none;
  padding: 32px 16px;
  max-width: 700px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
  color: #222;
  line-height: 1.6;
}

/* Resume overlay (toggled by resume command) */
#static-resume.resume-visible {
  display: block !important;
  position: fixed;
  top: 5vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  color: #222;
  padding: 32px 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.15);
  z-index: 500;
}

.resume-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 501;
}

.resume-close:hover {
  background: var(--highlight);
}

#static-resume h1 { font-size: 28px; margin-bottom: 4px; }
#static-resume h2 { font-size: 20px; margin-top: 24px; margin-bottom: 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
#static-resume h3 { font-size: 16px; margin-top: 16px; margin-bottom: 4px; }
#static-resume p { margin-bottom: 8px; }
#static-resume ul { margin-left: 20px; margin-bottom: 12px; }
#static-resume li { margin-bottom: 4px; list-style: disc; }

/* Quick commands — hidden by default, shown on mobile */
.quick-commands {
  display: none;
  padding: 8px 16px;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.quick-commands button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quick-commands button:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.quick-commands button:active {
  background: var(--highlight);
  border-color: var(--highlight);
  color: var(--bg);
  transform: scale(0.96);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #cursor {
    animation: none;
    opacity: 1;
  }

  .dashboard {
    transition: none;
  }

  .bar-fill {
    transition: none;
  }

  .status-dot.available {
    animation: none;
  }

  #boot-screen {
    display: none !important;
  }

  .output-line,
  .welcome-box,
  .section-header {
    animation: none;
  }

  .thinking-dots::after {
    animation: none;
    content: '...';
  }

  .output-line a,
  .cmd-link {
    transition: none;
  }

  .quick-commands button {
    transition: none;
  }
}

/* Mobile: <=768px */
@media (max-width: 768px) {
  :root {
    --font-size: 13px;
  }

  .quick-commands {
    display: flex;
  }

  #terminal-output {
    padding: 12px;
  }

  #input-line {
    padding: 8px 12px;
  }

  /* Prompt: shorten on mobile */
  .prompt .host {
    display: none;
  }

  .prompt .separator:nth-of-type(1),
  .prompt .separator:nth-of-type(2) {
    display: none;
  }

  /* Hide dashboard toggle on mobile */
  .dashboard-toggle {
    display: none;
  }

  /* Dashboard: overlay on mobile */
  .dashboard {
    width: 100%;
    border-left: none;
  }

  body:has(.dashboard:not(.hidden)) #terminal-output,
  body:has(.dashboard:not(.hidden)) #input-line,
  body:has(.dashboard:not(.hidden)) #quick-commands {
    margin-right: 0;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  :root {
    --font-size: 12px;
  }

  .quick-commands button {
    padding: 5px 10px;
    font-size: 11px;
  }

  .uptime-big {
    font-size: 20px;
  }

  .github-stat-value {
    font-size: 16px;
  }
}
