/* ═══════════════════════════════════════════════════════════════
   LAYOUT EDITOR TOP BAR STYLES
   ═══════════════════════════════════════════════════════════════ */

.layout-editor-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111;
  border-bottom: 1px solid #333;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.editor-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-section label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #999);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.editor-section select,
.editor-section input[type="number"],
.editor-section input[type="text"] {
  padding: 6px 10px;
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  min-width: 80px;
  transition: all 0.2s ease;
}

.editor-section select:focus,
.editor-section input:focus {
  outline: none;
  border-color: var(--text, #fff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.editor-section input[type="color"] {
  width: 40px;
  height: 32px;
  border: 2px solid #444;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-section input[type="color"]:hover {
  border-color: var(--text, #fff);
  transform: scale(1.1);
}

.btn-group {
  display: flex;
  gap: 4px;
  background: #1a1a1a;
  padding: 4px;
  border-radius: 6px;
}

.btn-group button {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-group button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #444;
}

.btn-group button:active {
  transform: scale(0.95);
}

.editor-actions {
  margin-left: auto;
  gap: 12px;
}

.btn-reset,
.btn-reset-all,
.btn-save {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset {
  background: #444;
  color: #fff;
}

.btn-reset:hover {
  background: #555;
  transform: translateY(-1px);
}

.btn-reset-all {
  background: #444;
  color: #fff;
}

.btn-reset-all:hover {
  background: #555;
  transform: translateY(-1px);
}

.btn-save {
  background: var(--text, #fff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.btn-save:active {
  transform: translateY(0);
}

/* Cover Layout Classes */
.cover-editorial-1 {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.cover-editorial-2 {
  position: relative;
  background: linear-gradient(45deg, #2d1b3d 0%, #1a1a2e 100%);
}

.cover-cover-shoot {
  position: relative;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
}

.cover-bts {
  position: relative;
  background: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.5) 10px,
    rgba(255,255,255,0.1) 10px,
    rgba(255,255,255,0.1) 20px
  );
}

.cover-fashion-week {
  position: relative;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
  border-bottom: 4px solid gold;
}

.cover-magazine-split {
  position: relative;
  background: linear-gradient(90deg, #1a1a1a 50%, #2d2d2d 50%);
}

.cover-collage-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.cover-minimal {
  position: relative;
  background: #fff;
  color: #000;
}

.cover-portrait-focus {
  position: relative;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.9) 70%);
}

.cover-cinematic {
  position: relative;
  background: linear-gradient(180deg, #000 0%, #1a1a1a 50%, #000 100%);
  aspect-ratio: 21/9;
}

/* Name Position Classes */
.hero-name.pos-left {
  align-self: flex-start;
  text-align: left;
}

.hero-name.pos-center {
  align-self: center;
  text-align: center;
  margin: 0 auto;
}

.hero-name.pos-right {
  align-self: flex-end;
  text-align: right;
}

/* Avatar Position Classes */
.profile-image-container.avatar-left {
  margin-right: auto;
  margin-left: 0;
}

.profile-image-container.avatar-center {
  margin-left: auto;
  margin-right: auto;
}

.profile-image-container.avatar-right {
  margin-left: auto;
  margin-right: 0;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
  .layout-editor-bar {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  
  .editor-section {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .editor-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}

/* Notification Styles */
.notification {
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

.notification-success {
  background: var(--bg-card, #111) !important;
}

.notification-warning {
  background: var(--bg-card, #111) !important;
}

.notification-error {
  background: var(--bg-card, #111) !important;
}

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL THEME BUTTON OVERRIDES - Black & White Only
   ═══════════════════════════════════════════════════════════════ */

/* Layout Editor Bar - Editorial Theme */
.layout-editor-bar {
  background: var(--bg-card, #111);
  border-bottom: 1px solid var(--border, #333);
  color: var(--text, #fff);
}

.editor-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light, #222);
}

.editor-section label {
  color: var(--text-muted, #999);
}

/* All Buttons - Grayscale Only */
.btn-save,
.btn-preview,
button[onclick*="save"],
button[onclick*="apply"] {
  background: var(--text, #fff);
  color: var(--bg, #000);
  border: 1px solid var(--text, #fff);
}

.btn-save:hover,
.btn-preview:hover {
  background: var(--text-secondary, #ccc);
  color: var(--bg, #000);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-reset,
.btn-clear {
  background: transparent;
  color: var(--text-muted, #999);
  border: 1px solid var(--border, #333);
}

.btn-reset:hover,
.btn-clear:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #fff);
  border-color: var(--text-muted, #666);
}

.btn-reset-all {
  background: transparent;
  color: var(--text-muted, #999);
  border: 1px solid var(--border, #333);
}

.btn-reset-all:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #fff);
  border-color: var(--text-muted, #666);
}

/* Button Groups */
.btn-group button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #999);
}

.btn-group button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #fff);
  border-color: var(--border, #333);
}

/* Inputs & Selects */
.editor-section select,
.editor-section input[type="number"],
.editor-section input[type="text"] {
  background: var(--bg-alt, #0a0a0a);
  border: 1px solid var(--border, #333);
  color: var(--text, #fff);
}

.editor-section select:focus,
.editor-section input:focus {
  outline: none;
  border-color: var(--text-muted, #666);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.editor-section input[type="color"] {
  border: 2px solid var(--border, #333);
}

.editor-section input[type="color"]:hover {
  border-color: var(--text-muted, #666);
}

/* Photo Filter Modal */
.filter-modal {
  background: rgba(0, 0, 0, 0.95);
}

.filter-modal-content {
  background: var(--bg-card, #111);
  border: 1px solid var(--border, #333);
}

.filter-modal-header h2 {
  color: var(--text, #fff);
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border, #333);
  color: var(--text-muted, #999);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #fff);
  border-color: var(--text-muted, #666);
}

.filter-preview-item {
  border: 2px solid transparent;
}

.filter-preview-item:hover {
  border-color: var(--text, #fff);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.filter-preview-label {
  background: var(--bg-alt, #0a0a0a);
  color: var(--text, #fff);
}

/* Individual Image Filter Menu */
.image-filter-menu {
  background: var(--bg-card, #111);
  border: 2px solid var(--border, #333);
}

.filter-menu-header {
  color: var(--text, #fff);
  border-bottom: 1px solid var(--border, #333);
}

.filter-menu-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light, #222);
  color: var(--text-secondary, #ccc);
}

.filter-menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #fff);
  border-color: var(--border, #333);
}

.filter-menu-btn.active {
  background: var(--text, #fff);
  color: var(--bg, #000);
  border-color: var(--text, #fff);
}

.filter-menu-close {
  background: transparent;
  border: 1px solid var(--border, #333);
  color: var(--text-muted, #999);
}

.filter-menu-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text, #fff);
}

/* Notifications */
.notification {
  background: var(--bg-card, #111);
  color: var(--text, #fff);
  border: 1px solid var(--border, #333);
}

.notification-success {
  background: var(--bg-card, #111) !important;
  border-color: var(--text-muted, #666) !important;
}

.notification-warning {
  background: var(--bg-card, #111) !important;
  border-color: var(--text-muted, #666) !important;
}

.notification-error {
  background: var(--bg-card, #111) !important;
  border-color: var(--text-muted, #666) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .layout-editor-bar {
    background: var(--bg, #000);
  }
}






/* ═══════════════════════════════════════════════════════════════
   Edit Layout Toggle Button (Floating)
   ═══════════════════════════════════════════════════════════════ */

.edit-layout-toggle-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9998;
  padding: 12px 24px;
  background: var(--text, #fff);
  color: var(--bg, #000);
  border: 1px solid var(--text, #fff);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.edit-layout-toggle-btn:hover {
  background: var(--text-secondary, #ccc);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.edit-layout-toggle-btn:active {
  transform: translateY(0);
}

/* Hide editor bar by default */
.layout-editor-bar {
  display: none;
}

/* When editor is visible, adjust button position */
.layout-editor-bar[style*="display: flex"] ~ .edit-layout-toggle-btn {
  top: 80px; /* Move button down when editor is showing */
}

/* Mobile responsive */
@media (max-width: 768px) {
  .edit-layout-toggle-btn {
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    font-size: 12px;
  }
}

