/* UNIVERSAL PAPERCLIPS AESTHETIC - Clean, Minimal, Data-Driven */

:root {
  --bg: #f5f5f5;
  --bg-dark: #e8e8e8;
  --text: #333;
  --text-dim: #555;  /* WCAG AA compliant: 6.5:1 on #f5f5f5 */
  --text-light: #555;  /* Updated from #999 for accessibility */
  --border: #ccc;
  --border-dark: #999;
  --accent: #4a7c9b;
  --accent-hover: #3a6c8b;
}

* {
  font-weight: normal !important;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-dark);
}

/* Buttons */
button, .btn {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.1s;
}

button:hover, .btn:hover {
  background: var(--border);
}

button:active, .btn:active {
  background: var(--border-dark);
}

/* Panels/Boxes */
.panel {
  background: white;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.panel-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.panel-body {
  padding: 10px;
}

/* Status bar */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 15px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  z-index: 100;
}

/* Data displays */
.stat-box {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 8px 15px;
  margin: 5px;
  background: white;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  color: var(--text);
}

.stat-label {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 3px;
}

/* Lists */
.data-row {
  display: flex;
  padding: 6px 10px;
  border-bottom: 1px solid var(--bg-dark);
}

.data-row:hover {
  background: var(--bg-dark);
}

.data-row:last-child {
  border-bottom: none;
}

/* Section headers */
.section-title {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

/* Terminal window - now just a clean bordered box */
.terminal-window {
  border: 1px solid var(--border);
  background: white;
  margin: 10px 0;
}

.terminal-header {
  background: var(--bg-dark);
  color: var(--text-dim);
  padding: 5px 10px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.terminal-body {
  padding: 15px;
}

/* Dividers */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 15px 0;
}

/* Input fields */
input, textarea {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 4px 8px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--bg-dark);
}

tr:hover td {
  background: var(--bg-dark);
}

/* Navigation */
.nav-link {
  color: var(--text-dim);
  padding: 3px 0;
  display: inline-block;
}

.nav-link:hover {
  color: var(--text);
}

/* Tags */
.tag {
  display: inline-block;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 1px 6px;
  font-size: 10px;
  color: var(--text-dim);
  margin-right: 4px;
}

/* Progress indicator */
.progress {
  height: 8px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

/* Blinking cursor - subtle */
.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--text);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Message/log style */
.log-entry {
  padding: 3px 0;
  color: var(--text-dim);
  font-size: 12px;
}

.log-entry.highlight {
  color: var(--text);
}

/* Clickable rows */
.clickable {
  cursor: pointer;
}

.clickable:hover {
  background: var(--bg-dark);
}

/* Pulse blue animation - reusable module */
.pulse-blue {
  animation: bluePulse 2s ease-in-out infinite;
}

@keyframes bluePulse {
  0%, 100% { color: var(--text-dim); }
  50% { color: #2563eb; }
}

/* Sequential pulse - 3 items take turns */
.pulse-blue-seq {
  animation: bluePulseSeq 4.5s ease-in-out infinite;
}

.pulse-blue-seq-1 { animation-delay: 0s; }
.pulse-blue-seq-2 { animation-delay: 1.5s; }
.pulse-blue-seq-3 { animation-delay: 3s; }
.pulse-blue-seq-4 { animation-delay: 4s; }

@keyframes bluePulseSeq {
  0%, 100% { color: var(--text-dim); }
  16.67% { color: #2563eb; }
  33.33%, 100% { color: var(--text-dim); }
}

/* Video player container */
.video-container {
  background: #000;
  aspect-ratio: 16/9;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 12px;
  }

  .stat-box {
    padding: 6px 10px;
    margin: 3px;
  }

  .stat-value {
    font-size: 18px;
  }
}
/* Accessibility Improvements */

/* Skip to Main Content Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: 999;
}

.skip-link:focus {
  top: 0;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

/* Focus visible for all interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default outline and ensure visible focus */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  :root {
    --text-dim: #333;
    --border: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Scroll-to-Next-Page Transitions
   ======================================== */

/* Page slide-away animation */
html.slide-away {
  transform: translateY(-30%);
  transition: transform 0.5s ease;
}

/* Overlay that slides up from bottom */
.transition-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--bg-dark, #e8e8e8);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.transition-overlay.active {
  transform: translateY(0);
}

/* Scroll-to-next indicator */
.scroll-next-indicator {
  text-align: center;
  padding: 30px 20px 40px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-dim, #555);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-next-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-next-arrow {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
