/* AI Toolbelt — shared synthwave theme */

@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600&display=swap");

:root {
  --color-bg: #0a0014;
  --color-text: #e0f7ff;
  --color-text-muted: rgba(224, 247, 255, 0.65);
  --color-cyan: #05d9e8;
  --color-magenta: #ff2a6d;
  --color-purple: #d400ff;
  --color-orange: #ff6c11;
  --color-yellow: #ffea00;
  --color-panel: rgba(10, 0, 30, 0.72);
  --color-border: rgba(5, 217, 232, 0.35);
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text);
  background: var(--color-bg);
}

/* ── Scene shell ── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.85;
}

.glow-horizon {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-magenta), var(--color-cyan), var(--color-purple), var(--color-magenta), transparent);
  box-shadow: 0 0 20px var(--color-magenta), 0 0 40px var(--color-cyan);
}

/* ── Layout ── */
.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 3rem 1.5rem 4rem;
}

.content--center {
  align-items: center;
  justify-content: center;
}

.content--app {
  align-items: stretch;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.interactive-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

/* ── Typography ── */
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-magenta), var(--color-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
  filter: drop-shadow(0 0 16px rgba(5, 217, 232, 0.35));
}

.page-sub {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  letter-spacing: 0.04em;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ── Navigation ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 2rem;
  color: var(--color-cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}

.back-link:hover {
  color: var(--color-magenta);
  text-shadow: 0 0 12px rgba(255, 42, 109, 0.5);
}

/* ── Panels & cards ── */
.panel {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(10, 0, 30, 0.65);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.btn:hover {
  border-color: var(--color-magenta);
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.35);
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, rgba(255, 42, 109, 0.25), rgba(5, 217, 232, 0.15));
  border-color: var(--color-magenta);
}

.btn--primary:hover {
  box-shadow: 0 0 24px rgba(255, 42, 109, 0.45), 0 0 12px rgba(5, 217, 232, 0.2);
}

/* ── Forms & upload ── */
.drop-zone {
  border: 2px dashed var(--color-border);
  border-radius: 2px;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: rgba(10, 0, 30, 0.4);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--color-magenta);
  box-shadow: 0 0 24px rgba(255, 42, 109, 0.2), inset 0 0 30px rgba(5, 217, 232, 0.05);
}

.drop-zone p { margin: 0.5rem 0; }

.drop-zone label,
.drop-zone .link {
  color: var(--color-cyan);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drop-zone label:hover,
.drop-zone .link:hover { color: var(--color-magenta); }

.file-input { display: none; }

.status {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* ── Tables ── */
.table-panel {
  margin-top: 1.5rem;
  overflow: hidden;
}

.table-panel table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.table-panel th,
.table-panel td {
  padding: 0.6rem 1rem;
  border: 1px solid rgba(5, 217, 232, 0.2);
  text-align: left;
}

.table-panel th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(5, 217, 232, 0.08);
  color: var(--color-cyan);
}

.table-panel td { color: var(--color-text); }

.is-hidden { display: none; }

/* ── Interactive emoji (demo apps) ── */
.interactive-emoji {
  font-size: clamp(80px, 20vw, 120px);
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s, filter 0.2s;
  filter: drop-shadow(0 0 20px rgba(5, 217, 232, 0.4));
}

.interactive-emoji:active {
  transform: scale(0.9);
}

.interactive-emoji:hover {
  filter: drop-shadow(0 0 30px rgba(255, 42, 109, 0.5));
}

.reaction-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan);
  height: 3rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
  text-shadow: 0 0 16px rgba(5, 217, 232, 0.6);
}

.reaction-text.show { opacity: 1; }

.footer {
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(212, 0, 255, 0.45);
  text-align: center;
}
