/*
 * NPC Pivot Hero frontend styles.
 * Scope: Only the [npc_pivot_hero] shortcode output.
 */

.npc-pivot-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #ffffff !important;
  z-index: 1;
}

.npc-pivot-scene {
  position: relative;
  width: min(1000px, 100%);
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: #ffffff !important;
  margin-bottom: 0;
  padding-bottom: 0;
  z-index: 1;
}

.npc-side {
  position: absolute;
  width: 38%;
  max-width: 430px;
  z-index: 2;
  pointer-events: none;
  background: #ffffff !important;
  will-change: transform;
}

.npc-side-left {
  left: 12%;
  top: 10%;
  aspect-ratio: 700 / 523;
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

.npc-side-right {
  right: 12%;
  top: 51%;
  aspect-ratio: 600 / 433;
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

.npc-side img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: none;
  background: #ffffff !important;
}

.npc-pivot-logo {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: auto;
  transform: translate3d(0, 0, 0);
}

/*
 * Real tinted glass disc:
 * - Centre stays transparent enough to see through.
 * - Slight grey/black tint makes it look like real glass.
 * - Darker outermost edge creates the visible glass rim.
 * - Logo stays sharp above all reflections.
 */
.npc-pivot-logo-glass {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at 34% 24%,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(225, 225, 225, 0.16) 28%,
      rgba(150, 150, 150, 0.10) 58%,
      rgba(70, 70, 70, 0.075) 100%
    );

  backdrop-filter: blur(1.25px) saturate(118%) contrast(104%);
  -webkit-backdrop-filter: blur(1.25px) saturate(118%) contrast(104%);

  border: 1px solid rgba(255, 255, 255, 0.82);

  box-shadow:
    0 0 0 1px rgba(25, 25, 25, 0.42),
    0 0 0 2px rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(15, 23, 42, 0.10),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(35, 35, 35, 0.30),
    inset 0 0 0 2px rgba(255, 255, 255, 0.14),
    inset 0 0 22px rgba(120, 120, 120, 0.14);

  overflow: hidden;
}

/* Top curved glass reflection */
.npc-pivot-logo-glass::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 78%;
  height: 28%;
  top: 8%;
  left: 11%;
  border-radius: 999px;

  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.18) 45%,
      rgba(255, 255, 255, 0.025) 100%
    );

  filter: blur(1px);
  pointer-events: none;
}

/* Inner bevel and subtle diagonal shine */
.npc-pivot-logo-glass::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 4px;
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      transparent 0%,
      transparent 39%,
      rgba(255, 255, 255, 0.20) 46%,
      rgba(255, 255, 255, 0.07) 52%,
      transparent 61%,
      transparent 100%
    );

  border: 1px solid rgba(255, 255, 255, 0.28);

  box-shadow:
  inset 0 0 0 1px rgba(70, 70, 70, 0.16),
  inset 0 0 12px rgba(255, 255, 255, 0.14),
  inset 0 -8px 14px rgba(45, 45, 45, 0.10);

  pointer-events: none;
}

.npc-pivot-logo-glass img {
  position: relative;
  z-index: 3;
  display: block;
  width: 64%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.45))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

/* Tablet */
@media (max-width: 1024px) {
  .npc-pivot-scene {
    height: 420px;
  }

  .npc-side {
    width: 31%;
    max-width: 300px;
  }

  .npc-side-left {
    top: 11%;
    left: 21%;
  }

  .npc-side-right {
    top: 48%;
    right: 19%;
  }

  .npc-pivot-logo-glass {
    width: 124px;
    height: 124px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .npc-pivot-wrap {
    padding: 0 10px;
  }

  .npc-pivot-scene {
    height: 240px;
  }

  .npc-side {
    width: 50%;
    max-width: none;
  }

  .npc-side-left {
    left: 1%;
    top: 6%;
  }

  .npc-side-right {
    right: 1%;
    top: 50%;
  }

  .npc-pivot-logo-glass {
    width: 90px;
    height: 90px;
  }

  .npc-pivot-logo-glass img {
    width: 62%;
  }
}