/* style.css — премиальный стиль для Laika Note */
:root {
  --bg-dark: #0f0f0f;
  --panel-bg: #1a1a1a;
  --text: #e0e0e0;
  --gold: #D4AF37;
  --mokko: #A47864;
  --canvas-bg: #fdf9f5;
  --border: #333;
  --button-hover: #2a2a2a;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  min-height: 100vh;
}

h1 {
  font-weight: 500;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--gold), var(--mokko));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

#drawingCanvas {
  background-color: var(--canvas-bg);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
  cursor: crosshair;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--panel-bg);
  border-radius: 16px;
  border: 1px solid var(--border);
  max-width: 800px;
  width: 100%;
}

.btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 140px;
}

.btn:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.btn.primary {
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 600;
}

.btn.primary:hover {
  background: #c69c2e;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--panel-bg);
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.modal-content h3 {
  margin-bottom: 1rem;
  color: var(--gold);
  font-weight: 500;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #252525;
  color: var(--text);
  font-size: 16px;
}

.modal-content textarea {
  height: 120px;
  resize: none;
  font-family: monospace;
  font-size: 14px;
}

.modal-content button {
  margin-top: 12px;
  margin-right: 10px;
}

/* Адаптивность */
@media (max-width: 600px) {
  .controls {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  h1 {
    font-size: 1.8rem;
  }

  #drawingCanvas {
    width: 100%;
    max-width: 360px;
    height: auto;
  }
}
