:root {
  /* ── GLOBAL FONT SYSTEM ──
     Primary:   Bebas Neue           → headlines, logo, labels
     Secondary: Lato                 → body, paragraphs, UI
     Accent:    Cormorant Garamond   → prices, pull quotes, decorative
  */
  --font-primary: 'Bebas Neue', sans-serif;
  --font-body:    'Lato', sans-serif;
  --font-accent:  'Cormorant Garamond', serif;
}

/* Reset & Body */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body), sans-serif;
}

body {
  background-color: #f0f2f5;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- User Bar ---- */
.user-bar {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.user-email {
  font-size: 13px;
  color: #555;
}

.my-collection-link {
  font-size: 13px;
  color: #2d6cdf;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.my-collection-link:hover {
  color: #1b4bb8;
  text-decoration: underline;
}

.signout-btn {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.signout-btn:hover {
  background: #f0f2f5;
  color: #222;
}

/* Container */
.form-container {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Title */
h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
  font-weight: 600;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #34495e;
}

/* Inputs & Selects */
input, select, textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2d6cdf;
  box-shadow: 0 0 5px rgba(45, 108, 223, 0.3);
}

/* File inputs */
input[type="file"] {
  padding: 6px 10px;
  cursor: pointer;
  background-color: #f8f9fa;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 60px;
}

/* Image preview thumbnails */
.image-preview {
  display: none;
  margin-top: 8px;
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  object-fit: cover;
}

/* ---- Privacy Toggle ---- */
.privacy-group {
  margin-top: 4px;
  margin-bottom: 20px;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 400;
}

.privacy-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: #2d6cdf;
  cursor: pointer;
}

.privacy-text {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.privacy-text strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #2d6cdf;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #1b4bb8;
}

.submit-btn:disabled {
  background-color: #93b4f0;
  cursor: not-allowed;
}

/* Status Message */
.status {
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .form-container {
    padding: 20px;
  }

  input, select, textarea {
    font-size: 14px;
  }

  .submit-btn {
    font-size: 16px;
    padding: 10px;
  }
}

.dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.add-btn:hover {
  background-color: #27ae60;
}

.dropdown-wrapper select {
  flex: 1;
}

/* ---- Multi-image preview strip ---- */
.preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.preview-strip-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  flex-shrink: 0;
}

.preview-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-strip-item .remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.preview-strip-item .remove-btn:hover { background: rgba(200,0,0,0.75); }

.preview-count {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}
.comments-section {
  margin-top: 40px;
}

.comment-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.comment-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.comment-user {
  color: var(--accent);
  font-weight: 600;
}

.comment-edited {
  font-style: italic;
  opacity: 0.7;
}

.comment-content {
  font-size: 14px;
  margin-bottom: 8px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-like {
  cursor: pointer;
}

.comment-edit,
.comment-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
}

.comment-delete {
  color: var(--danger);
}

.comment-edit {
  color: var(--accent2);
}