/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.sidebar {
  width: 220px;
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  padding-bottom: 24px;
  border-bottom: 1px solid #313244;
  margin-bottom: 24px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #a6adc8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-item:hover {
  background: #313244;
  color: #cdd6f4;
}

.nav-item.active {
  background: #45475a;
  color: #fff;
}

/* ─── Main Editor ─── */
.editor {
  flex: 1;
  padding: 32px 40px;
  overflow-y: auto;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.editor-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.editor-actions {
  display: flex;
  gap: 10px;
}

/* ─── Buttons ─── */
.btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.2s;
}

.btn-outline {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-outline:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-green {
  background: #10b981;
  color: #fff;
  border: none;
}

.btn-green:hover {
  background: #059669;
}

/* ─── Editor Body ─── */
.editor-body {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ─── Image Grid Section ─── */
.image-grid-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #f0f0f0;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* Placeholder boxes */
.grid-placeholder {
  width: 140px;
  height: 140px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  background: #fafafa;
}

/* Inserted image cards */
.image-container {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Picker Buttons ─── */
.picker-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Title ─── */
.editor-title {
  width: 100%;
  border: none;
  font-size: 28px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: #1a1a1a;
  outline: none;
  margin-bottom: 20px;
  padding: 0;
}

.editor-title::placeholder {
  color: #d1d5db;
}

/* ─── Content ─── */
.editor-content {
  width: 100%;
  min-height: 250px;
  border: none;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  color: #374151;
  line-height: 1.7;
  outline: none;
  resize: vertical;
}

.editor-content::placeholder {
  color: #d1d5db;
}
