@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Fredoka:wght@600;700;800&family=Pacifico&family=Caveat:wght@700&family=Bungee&family=Gaegu:wght@700&family=Comfortaa:wght@700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bubble: 'Fredoka', cursive, sans-serif;
  --font-cursive: 'Pacifico', cursive;
  --font-graffiti: 'Bungee', cursive;
}

body {
  font-family: var(--font-sans);
  background-color: #0c0f1d;
  color: #f8fafc;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism elements */
.glass-panel {
  background: rgba(19, 24, 43, 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(19, 24, 43, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(236, 72, 153, 0.25);
  box-shadow: 0 0 35px -10px rgba(236, 72, 153, 0.2);
}

/* Gradient text */
.text-gradient-candy {
  background: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-sun {
  background: linear-gradient(135deg, #fbbf24 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Checkerboard transparent background for canvas */
.canvas-bg-checker {
  background-image: 
    linear-gradient(45deg, #1e293b 25%, transparent 25%), 
    linear-gradient(-45deg, #1e293b 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #1e293b 75%), 
    linear-gradient(-45deg, transparent 75%, #1e293b 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #0f172a;
}

/* Tracing Worksheet Lined Paper Canvas */
.lined-paper {
  background-color: #ffffff;
  background-image: 
    linear-gradient(#93c5fd 1px, transparent 1px),
    linear-gradient(to bottom, transparent 49%, #fca5a5 50%, transparent 51%),
    linear-gradient(#93c5fd 1px, transparent 1px);
  background-size: 100% 60px;
}

/* Ad placeholder container */
.ad-slot {
  min-height: 90px;
  background: rgba(19, 24, 43, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Print Specific Styling */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  header, footer, nav, .no-print, .ad-slot, button, input, select {
    display: none !important;
  }
  .print-only {
    display: block !important;
    width: 100% !important;
  }
  canvas {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}
