/**
 * Volt Edge Card - Electric Border Effect
 * Dramatic card with animated SVG filter border effects
 */

/* CSS Variables */
.wml-volt-edge-card {
  --electric-border-color: #dd8448;
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  --gradient-color: oklch(from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4);
  --bg-color: oklch(0.185 0 0);
  --card-width: 350px;
  --card-height: 500px;
  --border-radius: 24px;
  --animation-duration: 6s;
}

/* Main container */
.wml-volt-edge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

/* SVG positioning */
.wml-vec-svg-container {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Card container */
.wml-vec-card-container {
  padding: 2px;
  border-radius: var(--border-radius);
  position: relative;
  background: linear-gradient(
      -30deg,
      var(--gradient-color),
      transparent,
      var(--gradient-color)
    ),
    linear-gradient(to bottom, var(--bg-color), var(--bg-color));
}

/* Inner container */
.wml-vec-inner-container {
  position: relative;
}

/* Border layers */
.wml-vec-border-outer {
  border: 2px solid rgba(221, 132, 72, 0.5);
  border-radius: var(--border-radius);
  padding-right: 4px;
  padding-bottom: 4px;
}

.wml-vec-main-card {
  width: var(--card-width);
  height: var(--card-height);
  border-radius: var(--border-radius);
  border: 2px solid var(--electric-border-color);
  margin-top: -4px;
  margin-left: -4px;
  /* Filter is applied via inline style in PHP for unique IDs */
}

/* Glow effects */
.wml-vec-glow-layer-1 {
  border: 2px solid rgba(221, 132, 72, 0.6);
  border-radius: var(--border-radius);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: blur(1px);
  pointer-events: none;
}

.wml-vec-glow-layer-2 {
  border: 2px solid var(--electric-light-color);
  border-radius: var(--border-radius);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: blur(4px);
  pointer-events: none;
}

/* Overlay effects */
.wml-vec-overlay-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  opacity: 1;
  mix-blend-mode: overlay;
  transform: scale(1.1);
  filter: blur(16px);
  background: linear-gradient(
    -30deg,
    white,
    transparent 30%,
    transparent 70%,
    white
  );
  pointer-events: none;
}

.wml-vec-overlay-2 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  opacity: 0.5;
  mix-blend-mode: overlay;
  transform: scale(1.1);
  filter: blur(16px);
  background: linear-gradient(
    -30deg,
    white,
    transparent 30%,
    transparent 70%,
    white
  );
  pointer-events: none;
}

/* Background glow */
.wml-vec-background-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  filter: blur(32px);
  transform: scale(1.1);
  opacity: 0.3;
  z-index: -1;
  background: linear-gradient(
    -30deg,
    var(--electric-light-color),
    transparent,
    var(--electric-border-color)
  );
  pointer-events: none;
}

/* Content container */
.wml-vec-content-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.wml-vec-content-container * {
  pointer-events: auto;
}

/* Content sections */
.wml-vec-content-top {
  display: flex;
  flex-direction: column;
  padding: 48px;
  padding-bottom: 16px;
  height: 100%;
}

.wml-vec-content-bottom {
  display: flex;
  flex-direction: column;
  padding: 48px;
  padding-top: 16px;
}

/* Scrollbar glass component */
.wml-vec-scrollbar-glass {
  background: radial-gradient(
      47.2% 50% at 50.39% 88.37%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    rgba(255, 255, 255, 0.04);
  position: relative;
  transition: background 0.3s ease;
  border-radius: 14px;
  width: fit-content;
  height: fit-content;
  padding: 8px 16px;
}

.wml-vec-scrollbar-glass:hover {
  background: radial-gradient(
      47.2% 50% at 50.39% 88.37%,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    rgba(255, 255, 255, 0.08);
}

.wml-vec-scrollbar-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.48) 16.73%,
    rgba(255, 255, 255, 0.08) 30.2%,
    rgba(255, 255, 255, 0.08) 68.2%,
    rgba(255, 255, 255, 0.6) 81.89%
  );
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* Typography */
.wml-vec-tag {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.wml-vec-title {
  font-size: 36px;
  font-weight: 500;
  margin-top: auto;
  margin-bottom: 0;
  color: #ffffff;
}

.wml-vec-description {
  opacity: 0.5;
  margin: 0;
  color: #ffffff;
}

/* Divider */
.wml-vec-divider {
  margin-top: auto;
  border: none;
  height: 1px;
  background-color: currentColor;
  opacity: 0.1;
  mask-image: linear-gradient(to right, transparent, black, transparent);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black,
    transparent
  );
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wml-volt-edge-card {
    --card-width: 300px;
    --card-height: 450px;
  }

  .wml-vec-content-top,
  .wml-vec-content-bottom {
    padding: 32px;
  }

  .wml-vec-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .wml-volt-edge-card {
    --card-width: 280px;
    --card-height: 400px;
  }

  .wml-vec-content-top,
  .wml-vec-content-bottom {
    padding: 24px;
  }

  .wml-vec-title {
    font-size: 24px;
  }

  .wml-vec-tag {
    font-size: 12px;
  }
}

/* Safari fallback for oklch() */
@supports not (color: oklch(0 0 0)) {
  .wml-volt-edge-card {
    --electric-light-color: var(--electric-border-color);
    --gradient-color: rgba(221, 132, 72, 0.4);
    --bg-color: #2f2f2f;
  }
}

