/* ==========================================================================
   Glass Hexagonal Prism — component styles ONLY.
   No page background, no typography, no navigation, no layout system.
   Everything here scopes to .glass-prism-stage and its three children.

   Selectors are class-based so every shortcode instance on a page is
   styled identically, even though only the first instance keeps the
   legacy #glass-prism-stage ID (see includes/shortcode.php). The ID rules
   below are kept only for backward compatibility with any custom CSS a
   site may already reference by that ID — they are otherwise redundant
   with the class rules.
   ========================================================================== */

/* Structural reset so the component measures and renders edge-to-edge with
   no scrollbars when this file is opened standalone. Elementor's own page
   wrapper already resets these — safe to drop the block below entirely when
   embedding, it has no effect on anything outside the component. */
html,
body {
  margin: 0;
  padding: 0;
}

.glass-prism-stage,
#glass-prism-stage {

    position:relative;

    width:100%;

    max-width:560px;

    aspect-ratio:1/1;

    min-height:260px;

    pointer-events:auto;

    margin:auto;

    background:transparent;

    isolation:isolate;

}

.glass-prism-canvas,
#glass-prism-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
  touch-action: pan-y;
}

.glass-prism-loader,
#glass-prism-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass-prism-loader.is-hidden,
#glass-prism-loader.is-hidden {
  opacity: 0;
}

.glass-prism-loader__ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.18);
  border-top-color: #60a5fa;
  animation: glass-prism-spin 0.9s linear infinite;
}

@keyframes glass-prism-spin {
  to {
    transform: rotate(360deg);
  }
}

.glass-prism-fallback,
#glass-prism-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 13.5px;
  color: #8592ab;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 24px;
}

/* Hide when the HTML 'hidden' attribute is present */
.glass-prism-fallback[hidden],
#glass-prism-fallback[hidden] {
  display: none !important;
}

/* Respect reduced-motion preferences for the one pure-CSS animation here.
   The rotation/float/parallax animation itself is throttled from script.js
   by checking the same media query at runtime. */
@media (prefers-reduced-motion: reduce) {
  .glass-prism-loader__ring {
    animation-duration: 1.8s;
  }
}

@media (max-width: 979px) {
  .glass-prism-stage,
  #glass-prism-stage {
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .glass-prism-stage,
  #glass-prism-stage {
    max-width: 320px;
    min-height: 260px;
  }
}
