﻿/* styles.css - Modern Cyber Studio & Glassmorphism Aesthetic */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #0b0f19;
  color: #f1f5f9;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.15);
}

/* Dual Canvas Wrapper */
.canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #020617;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  cursor: crosshair;
  touch-action: none;
}

.canvas-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#guide-canvas {
  pointer-events: none;
  z-index: 10;
}

#draw-canvas {
  z-index: 20;
}

/* Confetti overlay */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* Pulse animation */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

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

/* Article / Principle Content Styling */
.principle-content h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
}
.principle-content p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.principle-content ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.5;
}
.principle-content strong {
  color: #f8fafc;
}