/* ========================================
   GHOSTPAPER — Tactical Brutalism Design System
   ======================================== */

/* --- Base --- */
* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100dvh;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

/* --- Scanline CRT Effect --- */
.scanline {
  background: linear-gradient(to bottom, transparent 50%, rgba(21, 255, 209, 0.02) 50%);
  background-size: 100% 4px;
}

/* --- Glow Effects --- */
.glow-cyan {
  box-shadow: 0 0 20px rgba(21, 255, 209, 0.08);
}

/* --- Chip Buttons (degree, category, wordcount) --- */
.chip-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid #494847;
  background-color: #1a1919;
  color: #adaaaa;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.chip-btn:hover {
  border-color: #15ffd1;
  color: #ffffff;
}

.chip-btn.active {
  border: 2px solid #15ffd1;
  color: #15ffd1;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(21, 255, 209, 0.1);
}

.chip-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Speed Cards --- */
.speed-card {
  background-color: #1a1919;
  padding: 1rem;
  border: 1px solid #494847;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.speed-card:hover {
  border-color: #15ffd1;
}

.speed-card.active {
  border: 2px solid #15ffd1;
}

.speed-card.active::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  background: #15ffd1;
  transform: rotate(45deg) translate(1rem, -1rem);
}

/* --- Step Lock State --- */
.step-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.step-locked.unlocked {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

/* --- Drop Zone States --- */
#drop-zone.drag-over {
  border-color: #15ffd1;
  background-color: rgba(21, 255, 209, 0.03);
}

#drop-zone.has-file {
  border-style: solid;
  border-color: #15ffd1;
  opacity: 0.5;
  pointer-events: none;
}

/* --- Page Transitions --- */
#page-submit, #page-query {
  transition: opacity 0.2s ease;
}

/* --- Input Focus Glow --- */
input:focus, textarea:focus {
  box-shadow: 0 4px 12px -2px rgba(21, 255, 209, 0.1);
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #494847;
}
::-webkit-scrollbar-thumb:hover {
  background: #777575;
}

/* --- Mobile Bottom Bar Spacing --- */
@media (max-width: 1023px) {
  #page-submit {
    padding-bottom: 8rem;
  }
}

/* --- Animations --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(21, 255, 209, 0); }
  50% { box-shadow: 0 0 20px rgba(21, 255, 209, 0.15); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade-in 0.3s ease-out forwards;
}
