/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */


:root {
  /* Color System */
/* Primary - Pink/Magenta (#d6047a based) */
   /* Primary - Pink/Magenta (#d6047a based) */
  --primary-50:  #fff0f7;
  --primary-100: #ffe0ef;
  --primary-200: #ffb3d3;
  --primary-300: #ff80b5;
  --primary-400: #f54a9a;
  --primary-500: #aa0d6d; /* Main Brand Color */
  --primary-600: #b70368;
  --primary-700: #940255;
  --primary-800: #710141;
  --primary-900: #52002f;

  /* Secondary - Teal/Cyan Contrast */
  --secondary-50:  #ecfeff;
  --secondary-100: #cffafe;
  --secondary-200: #a5f3fc;
  --secondary-300: #67e8f9;
  --secondary-400: #22d3ee;
  --secondary-500: #14b8a6; /* Accent Color */
  --secondary-600: #0891b2;
  --secondary-700: #0e7490;
  --secondary-800: #155e75;
  --secondary-900: #164e63;

  --success-500: #10b981;
  --warning-500: #f59e0b;
  --error-500: #ef4444;
  --accent-500: #f97316;


  /* Dark neutrals (surfaces) */
  --bg-primary:   #0f172a; /* main app background */
  --bg-secondary: #1e293b; /* panels / sections */
  --bg-alt:       #334155; /* cards / elevated */

  /* Text */
  --text-primary:   #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted:     #94a3b8;

  /* Borders & dividers */
  --border-color: #334155; /* tuned to match the above neutrals */

  /* Brand-driven states (useful for buttons, links, focus) */
  --accent:            var(--primary-500);
  --accent-500: #f97316;
  --accent-hover:      var(--primary-600);
  --accent-contrast:   #ffffff;

  --link:        var(--secondary-500);
  --link-hover:  var(--secondary-600);

  --focus-ring:  0 0 0 3px rgba(214, 4, 122, 0.35); /* primary glow */

  /* Shadow */
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
            0 4px 6px -2px rgba(0, 0, 0, 0.2);

  /* Spacing System (8px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --line-height-body: 1.5;
  --line-height-heading: 1.2;
}



.gradient-text h1, .gradient-text h2{
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-box {
  background: linear-gradient(135deg, #283447, #0e1629);
  border-color: #8e4198;

}



/* Game Stats */
.game-stats {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
  column-gap: 20px;
}

.game-stats > div {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: var(--space-4);
  border: 1px solid var(--border-color);
  display: flex;
  gap: var(--space-6);
  font-size: 1.0rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-weight: 700;
  color: var(--primary-600);
}

.stat-label {
  color: var(--text-secondary);
}

/* Game Container */
.game-container {
  background: var(--bg-primary);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  padding: var(--space-6);
}

.game-start {
  text-align: center;
  padding: var(--space-20) 0;
}

.game-start h2 {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.game-start p {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.start-btn {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: white;
  font-weight: 600;
  padding: var(--space-3) var(--space-8);
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Game Active */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.game-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-primary);
}

.back-btn {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: var(--text-secondary);
}

/* Canvas Container */
.canvas-container {
  position: relative;
  margin-bottom: var(--space-4);
}

#drawing-canvas {
  width: 100%;
  height: 400px;
  background: #000000;
  border: 2px solid #374151;
  border-radius: 0.75rem;
  cursor: crosshair;
  transition: all 0.3s ease;
  display: block;
}

.dark #drawing-canvas {
  background: #000000;
  border-color: #4b5563;
}

#drawing-canvas:hover {
  border-color: var(--primary-400);
}

/* Canvas Instructions */
.canvas-instructions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.instruction-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: var(--space-2);
}

.instruction-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Results Overlay */
.results-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.results-content {
  text-align: center;
  padding: var(--space-8);
  max-width: 400px;
}

.score-display {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--primary-400), var(--secondary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.best-display {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: var(--space-6);
}

.score-message {
  background: rgba(55, 65, 81, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid #4b5563;
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.share-btn, .copy-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.share-btn {
  background: var(--secondary-600);
  color: white;
}

.share-btn:hover {
  background: var(--secondary-700);
}

.copy-btn {
  background: var(--error-500);
  color: white;
}

.copy-btn:hover {
  background: #dc2626;
}

.try-again-btn {
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.try-again-btn:hover {
  color: white;
}

/* Canvas Controls */
.canvas-controls {
  display: flex;
  justify-content: center;
}

.clear-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-6);
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.clear-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}