/* AI Product Canvas */

:root {
  --primary: #7c3aed;
  --primary-light: #a855f7;
  --surface: #ffffff;
  --surface-alt: #f3f4f6;
  --on-surface: #1e293b;
  --on-surface-secondary: #64748b;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  min-height: 100vh;
  color: var(--on-surface);
}

.app-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--on-surface-secondary);
  font-size: 0.9rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Canvas Grid */
.canvas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.canvas-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: 0.15s ease;
}

.canvas-card:hover {
  transform: translateY(-2px);
}

.canvas-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface-alt);
}

.canvas-card textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.canvas-card textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(124, 58, 213, 0.2);
}

/* Actions */
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.primary-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.primary-btn:hover {
  background: var(--primary-light);
}

.secondary-btn {
  padding: 12px 24px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.secondary-btn:hover {
  background: var(--surface-alt);
}