﻿/* ============================================================
   GLASSMORPHISM.CSS – makeCSS.com Glassmorphism Generator
   Standalone glass-specific visuals on shared generator shell
   ============================================================ */

.glass-preview-area .preview-area__canvas {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.glass-preview-canvas {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 78% 18%, rgba(236, 72, 153, 0.34), rgba(236, 72, 153, 0) 28%),
    radial-gradient(circle at 72% 78%, rgba(34, 211, 238, 0.26), rgba(34, 211, 238, 0) 26%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(29, 78, 216, 0.72) 34%, rgba(8, 145, 178, 0.72) 68%, rgba(248, 250, 252, 0.82) 100%);
}

.glass-preview-canvas::before,
.glass-preview-canvas::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.7;
  z-index: 0;
}

.glass-preview-canvas::before {
  width: 180px;
  height: 180px;
  top: 12%;
  left: -4%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(196, 181, 253, 0.22));
}

.glass-preview-canvas::after {
  width: 220px;
  height: 220px;
  right: -8%;
  bottom: -10%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.26), rgba(255, 255, 255, 0.16));
}

.glass-preview-box {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(150%) brightness(108%);
  -webkit-backdrop-filter: blur(18px) saturate(150%) brightness(108%);
  overflow: visible;
}

.glass-preview-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.02) 100%);
}

.glass-editor-note {
  padding: var(--space-sm) var(--space-md);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.82), rgba(241, 245, 249, 0.92));
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.6;
}

.glass-editor-root .editor-panel__badge {
  min-width: 54px;
  justify-content: center;
}

.glass-preset-scene {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 78% 26%, rgba(236, 72, 153, 0.26), rgba(236, 72, 153, 0) 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(29, 78, 216, 0.72) 40%, rgba(34, 211, 238, 0.6) 100%);
}

.glass-preset-pane {
  position: absolute;
  inset: 16px;
  overflow: hidden;
}

.glass-preset-pane::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 44%, rgba(255, 255, 255, 0) 100%);
}

@media (max-width: 720px) {
  .glass-preview-canvas::before {
    width: 130px;
    height: 130px;
  }

  .glass-preview-canvas::after {
    width: 160px;
    height: 160px;
  }
}