/* ========================================================
   LuminaAI Studio - Custom Styles & AdSense Aesthetics
   ======================================================== */

/* Grid background pattern */
.grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

/* Glassmorphic panels */
.glass-panel {
  background: rgba(14, 20, 36, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Custom Scrollbar */
.custom-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: rgba(18, 24, 41, 0.6);
  border-radius: 9999px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 9999px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* ========================================================
   ADSENSE CONTAINER STYLES (AdSense Policy Compliant)
   - Clear "Advertisement" labelling
   - Reserved space to eliminate Cumulative Layout Shift (CLS)
   - Distinct subtle styling so users are never misled
   ======================================================== */
.adsense-slot-container {
  position: relative;
  border-radius: 14px;
  background: rgba(12, 16, 29, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 8px;
  transition: all 0.25s ease;
  overflow: hidden;
}

.adsense-slot-container:hover {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(12, 16, 29, 0.85);
}

.adsense-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px 6px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
}

.adsense-inner-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 18, 0.7);
  border-radius: 8px;
  min-height: 80px;
}

/* Interactive Split Handle */
#sliderHandle {
  touch-action: none;
  transition: box-shadow 0.2s ease;
}

#sliderHandle:hover,
#sliderHandle.dragging {
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.9);
}

/* Preset selection button states */
.preset-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.preset-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(139, 92, 246, 0.25));
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

/* Custom Range Input */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: #1b243b;
  border-radius: 9999px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  transition: transform 0.15s ease, background 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #60a5fa;
}

input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #ffffff;
  cursor: pointer;
}

/* Toast Notifications */
.toast {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.fade-out {
  animation: slideOutRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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