/* ═══════════════════════════════════════════════════════════════
   PHOTO FILTER SYSTEM STYLES
   ═══════════════════════════════════════════════════════════════ */

.editor-photo-filters {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn-preview {
  padding: 6px 12px;
  background: var(--text, #fff);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-clear {
  padding: 6px 12px;
  background: #444;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Filter Preview Modal */
.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.filter-modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #444;
}

.filter-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.modal-close {
  width: 40px;
  height: 40px;
  background: #444;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #666;
  transform: rotate(90deg);
}

.filter-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.filter-preview-item {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
}

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

.filter-preview-image {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}

.filter-preview-label {
  background: #222;
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

/* Individual Image Filter Menu */
.image-filter-menu {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border: 2px solid #444;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  min-width: 250px;
  animation: popIn 0.2s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.filter-menu-header {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-menu-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.filter-menu-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-muted, #999);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.filter-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--text, #fff);
  transform: translateX(4px);
}

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

.filter-menu-close {
  width: 100%;
  padding: 10px;
  background: #444;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-menu-close:hover {
  background: #666;
}

/* Image hover hint */
img[data-filter] {
  transition: all 0.3s ease;
}

img[data-filter]:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Ctrl+Click tooltip */
.profile-hero img::after,
.profile-image::after,
.showcase-slide img::after {
  content: 'Ctrl+Click to edit filter';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.profile-hero img:hover::after,
.profile-image:hover::after,
.showcase-slide img:hover::after {
  opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .filter-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .filter-modal-content {
    padding: 16px;
  }
  
  .image-filter-menu {
    min-width: 200px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   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);
  }
}

