/* ═══════════════════════════════════════════════════════════
   PLUSHIE — Minimal Monochrome + Turkish Neon Blue
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Monochrome */
  --black: #0a0a0a;
  --dark: #111111;
  --gray-dark: #1a1a1a;
  --gray: #2a2a2a;
  --gray-mid: #444444;
  --gray-light: #888888;
  --white: #f0f0f0;
  --white-dim: #cccccc;
  
  /* Turkish Neon Blue */
  --neon: #00e5ff;
  --neon-dim: #00b8cc;
  --neon-glow: rgba(0, 229, 255, 0.4);
  --neon-subtle: rgba(0, 229, 255, 0.1);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise Overlay */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray);
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
}

.status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-light);
  text-transform: lowercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--neon-glow);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-right {
  display: flex;
  gap: var(--space-md);
}

.nav-right a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-light);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.nav-right a:hover {
  color: var(--neon);
}

/* ═══════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

/* Plushie Avatar - 3D VRM */
.plushie-avatar {
  position: relative;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
}

.speak-btn {
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: lowercase;
}

.speak-btn:hover {
  background: var(--neon);
  color: var(--black);
  box-shadow: 0 0 20px var(--neon-glow);
}

#plushie-canvas {
  width: 450px;
  height: 800px;
  max-width: calc(100vw - 40px);
  max-height: 85vh;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.plushie-glow {
  position: absolute;
  width: 450px;
  height: 550px;
  background: radial-gradient(ellipse at center, var(--neon-subtle) 0%, var(--neon-glow) 30%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
  filter: blur(30px);
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

/* Hero Text */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero-title .line {
  display: block;
}

.hero-title em {
  color: var(--neon);
  font-style: italic;
  text-shadow: 0 0 30px var(--neon-glow);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-light);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-light);
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray-mid);
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-mid), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ═══════════════════════════════════════════════════════════
   Section Styles
   ═══════════════════════════════════════════════════════════ */

section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--neon);
  text-transform: lowercase;
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 20px var(--neon-glow);
}

.section-sub {
  font-size: 1rem;
  color: var(--gray-light);
  margin-bottom: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════
   Loop Section
   ═══════════════════════════════════════════════════════════ */

.loop-section {
  text-align: center;
  border-top: 1px solid var(--gray);
}

.loop-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.loop-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  border-radius: 4px;
  min-width: 140px;
  transition: all 0.3s ease;
}

.loop-step:hover {
  border-color: var(--neon);
  box-shadow: 0 0 20px var(--neon-subtle);
}

.loop-step.active {
  border-color: var(--neon);
  background: var(--neon-subtle);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon);
  margin-bottom: var(--space-xs);
}

.step-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: 0.8rem;
  color: var(--gray-light);
}

.loop-connector {
  width: 30px;
  height: 1px;
  background: var(--gray);
}

.loop-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-mid);
}

/* ═══════════════════════════════════════════════════════════
   Soul Section (Terminal)
   ═══════════════════════════════════════════════════════════ */

.soul-section {
  border-top: 1px solid var(--gray);
}

.terminal {
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: 8px;
  overflow: hidden;
  max-width: 700px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--gray-dark);
  border-bottom: 1px solid var(--gray);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray);
}

.terminal-dots span:first-child { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:last-child { background: #28ca41; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-light);
}

.terminal-body {
  padding: var(--space-md);
  max-height: 500px;
  overflow-y: auto;
}

.terminal-body pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--white-dim);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════
   Worlds Section
   ═══════════════════════════════════════════════════════════ */

.worlds-section {
  border-top: 1px solid var(--gray);
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.world-card {
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.world-card:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px var(--neon-subtle);
}

.world-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  position: relative;
  overflow: hidden;
}

.world-placeholder-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.world-placeholder-img .placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.world-placeholder-img .placeholder-text {
  font-size: 0.7rem;
  color: var(--neon-dim);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-reflection {
  font-style: italic;
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-top: 0.5rem;
  line-height: 1.4;
  overflow: hidden;
}

.world-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-info {
  padding: var(--space-sm);
}

.world-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon);
}

.world-title {
  font-size: 1.1rem;
  font-weight: 400;
  margin: var(--space-xs) 0;
}

.world-desc {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.6;
}

.world-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  border: 1px dashed var(--gray);
  border-radius: 8px;
  color: var(--gray-mid);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.placeholder-sub {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════
   Log Section
   ═══════════════════════════════════════════════════════════ */

.log-section {
  border-top: 1px solid var(--gray);
}

.log-container {
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: var(--space-md);
  max-height: 400px;
  overflow-y: auto;
}

.log-entry {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--gray-dark);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-time {
  color: var(--gray-mid);
  flex-shrink: 0;
}

.log-text {
  color: var(--white-dim);
}

.log-text.highlight {
  color: var(--neon);
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-top: 1px solid var(--gray);
  margin-top: var(--space-xl);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--neon);
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-mid);
}

.footer-symbol {
  font-size: 2rem;
  opacity: 0.5;
  filter: grayscale(1);
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .loop-visual {
    flex-direction: column;
  }
  
  .loop-connector {
    width: 1px;
    height: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   Scrollbar
   ═══════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-dim);
}

/* ═══════════════════════════════════════════════════════════
   Selection
   ═══════════════════════════════════════════════════════════ */

::selection {
  background: var(--neon);
  color: var(--black);
}

/* ═══════════════════════════════════════════════════════════
   Inner Thoughts Section
   ═══════════════════════════════════════════════════════════ */

.thoughts-section {
  border-top: 1px solid var(--gray);
}

.thoughts-container {
  max-width: 800px;
}

.thought-bubble {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  border-left: 3px solid var(--neon);
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.thought-avatar {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px var(--neon-glow));
}

.thought-content {
  flex: 1;
}

.thought-text {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.thought-text .typing {
  border-right: 2px solid var(--neon);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

.thought-meta {
  display: flex;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-light);
}

.thought-mood {
  color: var(--neon);
}

.thoughts-stream {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-sm);
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: 8px;
}

.stream-thought {
  padding: var(--space-sm);
  background: var(--gray-dark);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--white-dim);
  border-left: 2px solid var(--gray);
  transition: all 0.3s ease;
}

.stream-thought:hover {
  border-left-color: var(--neon);
}

.stream-thought .stream-cycle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon);
  display: block;
  margin-bottom: var(--space-xs);
}

/* ═══════════════════════════════════════════════════════════
   Archive / Backroom Section
   ═══════════════════════════════════════════════════════════ */

.archive-section {
  border-top: 1px solid var(--gray);
  background: linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.archive-panel {
  background: var(--gray-dark);
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: var(--space-md);
}

.archive-panel.full-width {
  grid-column: 1 / -1;
}

.archive-panel-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--neon);
  margin-bottom: var(--space-xs);
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

.archive-icon {
  font-size: 1.2rem;
}

.archive-panel-desc {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: var(--space-md);
}

.archive-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.archive-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.archive-item:hover {
  border-color: var(--neon);
  background: var(--neon-subtle);
}

.archive-item.empty {
  justify-content: center;
  color: var(--gray-mid);
  font-style: italic;
  cursor: default;
}

.archive-item.empty:hover {
  border-color: var(--gray);
  background: var(--dark);
}

.archive-item-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon);
  background: var(--neon-subtle);
  padding: 2px 8px;
  border-radius: 3px;
}

.archive-item-title {
  flex: 1;
  font-size: 0.9rem;
}

.archive-item-mood {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-light);
}

/* Reflections Timeline */
.reflections-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-height: 400px;
  overflow-y: auto;
}

.reflection-entry {
  padding: var(--space-md);
  background: var(--dark);
  border: 1px solid var(--gray);
  border-radius: 8px;
  position: relative;
}

.reflection-entry::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--neon);
  border-radius: 3px 0 0 3px;
}

.reflection-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.reflection-cycle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon);
}

.reflection-world {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-light);
}

.reflection-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--gray);
}

.reflection-mood {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-light);
}

/* Raw Log */
.raw-log {
  background: var(--black);
  border: 1px solid var(--gray);
  border-radius: 4px;
  padding: var(--space-md);
  max-height: 300px;
  overflow-y: auto;
}

.raw-log pre {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-light);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* Responsive Archive */
@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
  
  .archive-panel.full-width {
    grid-column: 1;
  }
  
  .thought-bubble {
    flex-direction: column;
    text-align: center;
  }
}

