/* Editor Section */
.editor-section {
  padding: 0 24px 48px;
}

.editor {
  max-width: 560px;
  margin: 0 auto;
}

.editor h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: #111;
}

.editor-hint {
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Message Cards */
.editor-card {
  background: #fff;
  border: 1.5px solid #E0E0E0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.editor-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #FAFAFA;
  border-bottom: 1px solid #E0E0E0;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.editor-card-remove {
  background: none;
  font-size: 20px;
  color: #999;
  padding: 0 4px;
  line-height: 1;
  cursor: pointer;
  border: none;
}

.editor-card-remove:hover {
  color: #E00;
}

.editor-textarea {
  width: 100%;
  border: none;
  padding: 12px 14px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 1.7;
  resize: none;
  background: #fff;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

.editor-textarea:focus {
  outline: none;
}

.editor-textarea::placeholder {
  color: #CCC;
}

/* Add Button */
.editor-add {
  background: none;
  border: 2px dashed #DDD;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  margin-bottom: 20px;
  cursor: pointer;
}

.editor-add:hover {
  border-color: #BBB;
  color: #666;
}

/* Action Buttons */
.editor-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.editor-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.editor-btn.preview {
  background: #F0F0F0;
  color: #333;
}

.editor-btn.preview:hover {
  background: #E5E5E5;
}

.editor-btn.generate {
  background: #000;
  color: #fff;
}

.editor-btn.generate:hover {
  background: #222;
}

/* Generated URL */
.editor-result {
  display: flex;
  gap: 8px;
  align-items: center;
}

.editor-result input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #E0E0E0;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: #FAFAFA;
  color: #333;
  min-width: 0;
}

.editor-copy {
  padding: 10px 16px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.editor-copy:hover {
  background: #222;
}

.editor-open {
  padding: 10px 16px;
  background: #F0F0F0;
  color: #333;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.editor-open:hover {
  background: #E5E5E5;
}

/* Kiosk Mode */
body.kiosk-mode {
  background: #111;
  margin: 0;
}

body.kiosk-mode .page-frame {
  max-width: none;
  margin: 0;
  border-radius: 0;
  min-height: 100vh;
  box-shadow: none;
  background: #111;
}

body.kiosk-mode .header,
body.kiosk-mode .hero,
body.kiosk-mode .editor-section {
  display: none !important;
}

body.kiosk-mode .board-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.kiosk-mode .board {
  border-radius: 0;
  box-shadow: none;
  background: #111;
}

.kiosk-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.5s;
}

/* Mobile */
@media (max-width: 600px) {
  .editor-section {
    padding: 0 12px 32px;
  }

  .editor h2 {
    font-size: 22px;
  }

  .editor-actions {
    flex-direction: column;
  }

  .editor-result {
    flex-wrap: wrap;
  }

  .editor-result input {
    width: 100%;
  }
}
