/* Enhanced Comic Effects for Ninja School Online */

/* Comic Style Panel Variations */
.comic-panel-enhanced {
  background-color: white;
  border: 4px solid var(--manga-border-color);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  transform: rotate(-0.5deg);
  transition: all 0.3s ease;
}

.comic-panel-enhanced:hover {
  transform: rotate(0);
}

/* Zig-zag frame */
.comic-zigzag-frame {
  position: relative;
  overflow: visible;
  padding: 3px;
}

.comic-zigzag-frame::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: transparent;
  border: 3px solid black;
  clip-path: polygon(
    0% 15%,
    15% 0%,
    30% 15%,
    45% 0%,
    60% 15%,
    75% 0%,
    90% 15%,
    100% 0%,
    100% 100%,
    85% 85%,
    70% 100%,
    55% 85%,
    40% 100%,
    25% 85%,
    10% 100%,
    0% 85%
  );
  z-index: 1;
}

/* Explosion frame for featured items */
.comic-explosion-frame {
  position: relative;
  padding: 5px;
  border: 3px solid var(--manga-border-color);
}

.comic-explosion-frame::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: var(--ninjaschoolonline-orange);
  z-index: -1;
  clip-path: polygon(
    50% 0%,
    63% 38%,
    100% 38%,
    69% 59%,
    82% 100%,
    50% 75%,
    18% 100%,
    31% 59%,
    0% 38%,
    37% 38%
  );
}

/* Comic style speech bubble */
.comic-speech {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 15px;
  border: 3px solid var(--manga-border-color);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  margin: 20px;
  max-width: 300px;
}

.comic-speech::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 30px;
  border-width: 20px 15px 0;
  border-style: solid;
  border-color: var(--manga-border-color) transparent;
  display: block;
  width: 0;
}

.comic-speech::before {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 33px;
  border-width: 17px 12px 0;
  border-style: solid;
  border-color: white transparent;
  display: block;
  width: 0;
  z-index: 1;
}

/* Comic action effects */
.comic-action {
  position: relative;
  display: inline-block;
}

.comic-action::before {
  content: "BAM!";
  position: absolute;
  top: -20px;
  right: -30px;
  background: var(--ninjaschoolonline-orange);
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 50%;
  font-size: 0.8rem;
  transform: rotate(15deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* Comic frame with torn paper effect */
.comic-torn-frame {
  position: relative;
  padding: 10px;
  background: white;
  border: 3px solid var(--manga-border-color);
  filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.5));
  clip-path: polygon(
    0% 5%,
    3% 0%,
    10% 6%,
    15% 0%,
    20% 4%,
    25% 0%,
    30% 3%,
    35% 0%,
    42% 5%,
    50% 0%,
    60% 3%,
    70% 0%,
    80% 5%,
    90% 0%,
    95% 5%,
    100% 0%,
    98% 10%,
    100% 15%,
    98% 20%,
    100% 25%,
    97% 35%,
    100% 40%,
    98% 50%,
    100% 60%,
    97% 70%,
    100% 80%,
    98% 90%,
    100% 95%,
    95% 100%,
    90% 98%,
    80% 100%,
    70% 97%,
    60% 100%,
    50% 98%,
    40% 100%,
    30% 97%,
    20% 100%,
    15% 98%,
    5% 100%,
    0% 95%,
    2% 90%,
    0% 80%,
    3% 70%,
    0% 60%,
    2% 50%,
    0% 40%,
    3% 30%,
    0% 20%,
    2% 10%
  );
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .comic-panel-enhanced {
    padding: 15px;
    border-width: 3px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.7);
  }

  .comic-zigzag-frame::before {
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-width: 2px;
  }

  .comic-explosion-frame::before {
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }

  .comic-speech {
    padding: 10px;
    margin: 15px;
    border-width: 2px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  }

  .loader-container {
    padding: 15px;
    border-width: 2px;
  }

  .shuriken-spinner {
    width: 50px;
    height: 50px;
  }

  .loader-text {
    font-size: 1.2rem;
  }
}
