/* Enhanced Guide Page Styles for Ninja School */
.guide-section {
  padding: 20px 0;
}

.guide-nav {
  margin-bottom: 30px;
}

.guide-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  overflow-x: auto;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--manga-border-color);
  border-radius: 10px;
}

.guide-tabs li {
  padding: 15px 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.guide-tabs li:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.guide-tabs li.active {
  background-color: var(--primary-color);
  color: white;
}

.guide-tabs li.active:after {
  width: 80%;
}

.guide-tabs li:hover:not(.active) {
  background-color: rgba(255, 103, 0, 0.1);
}

.guide-tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.guide-tab-content.active {
  display: block;
}

.guide-step {
  display: flex;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--manga-border-color);
  padding: 20px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.guide-step:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    transparent 75%,
    rgba(255, 103, 0, 0.2) 75%
  );
  z-index: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 3px solid var(--manga-border-color);
  margin-right: 20px;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.5rem;
  color: var(--ninjaschoolonline-orange);
  margin-bottom: 10px;
  border-bottom: 2px dashed var(--manga-border-color);
  padding-bottom: 5px;
}

.guide-image {
  max-width: 100%;
  margin-top: 15px;
  border: 2px solid var(--manga-border-color);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

/* Ninja Class List */
.ninja-class-list {
  padding-left: 20px;
  margin: 15px 0;
}

.ninja-class-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Controls Section */
.controls-section {
  margin-bottom: 40px;
}

.controls-table {
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--manga-border-color);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.control-row {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  align-items: center;
}

.control-row:last-child {
  border-bottom: none;
}

.control-key {
  display: inline-block;
  background-color: var(--dark-color);
  color: white;
  padding: 3px 10px;
  border-radius: 5px;
  margin-right: 15px;
  min-width: 80px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.control-desc {
  flex: 1;
}

.shortcut-list {
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--manga-border-color);
  padding: 15px 15px 15px 35px;
  border-radius: 10px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.shortcut-list li {
  margin-bottom: 10px;
}

/* Mission Types */
.mission-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mission-type {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--manga-border-color);
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.mission-type h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--manga-border-color);
  font-size: 1.4rem;
}

.mission-type p {
  margin-bottom: 15px;
}

.mission-rank {
  padding: 10px;
  text-align: center;
  background-color: #f4f4f4;
  border-radius: 8px;
  font-weight: bold;
  border: 1px solid #ddd;
  margin-top: 15px;
  color: var(--ninjaschoolonline-orange);
}

.mission-rewards,
.item-list,
.item-effects {
  padding-left: 20px;
}

.mission-rewards li,
.item-list li,
.item-effects li {
  margin-bottom: 5px;
}

.mission-note {
  margin-top: 15px;
  padding: 10px;
  background-color: #fff9c4;
  border-radius: 8px;
  border: 1px solid #fbc02d;
}

.mission-reward-special {
  margin-top: 15px;
  padding: 10px;
  background-color: #e3f2fd;
  border-radius: 8px;
  border: 1px solid #2196f3;
  text-align: center;
}

.mission-reward-special span {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

/* Items Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.item-category {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--manga-border-color);
  padding: 20px;
  border-radius: 10px;
}

.item-category h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 2px dashed var(--manga-border-color);
  padding-bottom: 8px;
  font-size: 1.4rem;
}

.item-image {
  max-width: 100%;
  margin-top: 15px;
  border: 1px solid var(--manga-border-color);
  border-radius: 8px;
}

.item-grades {
  display: flex;
  justify-content: space-between;
  margin: 15px 0 10px;
  flex-wrap: wrap;
  gap: 5px;
}

.grade {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.grade.normal {
  background-color: #e0e0e0;
  color: #555;
}

.grade.good {
  background-color: #81c784;
  color: white;
}

.grade.rare {
  background-color: #5c6bc0;
  color: white;
}

.grade.mythic {
  background-color: #ffd700;
  color: #333;
}

/* Skills Container */
.skills-container {
  margin-top: 20px;
}

.skill-class {
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--manga-border-color);
  border-radius: 10px;
  padding: 20px;
}

.skill-class h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.skill-class p {
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-item {
  display: flex;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--manga-border-color);
  border-radius: 8px;
  padding: 15px;
  align-items: center;
  transition: all 0.3s ease;
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  border: 2px solid var(--manga-border-color);
  position: relative;
}

.skill-icon.earth {
  background: linear-gradient(135deg, #ff9800, #ff5722);
}

.skill-icon.Hyuga {
  background: linear-gradient(135deg, #03a9f4, #0288d1);
}

.skill-icon.Uchiha {
  background: linear-gradient(135deg, #f44336, #b71c1c);
}

.skill-icon:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 70%
  );
}

.skill-details {
  flex: 1;
}

.skill-details h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--ninjaschoolonline-orange);
}

.skill-details p {
  margin-bottom: 8px;
  text-align: left;
  font-style: normal;
  font-size: 0.95rem;
}

.skill-stats {
  font-size: 0.85rem;
  color: #666;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

/* Unified Comic Title Styling */
.comic-ranking-header {
  position: relative;
  margin: 0 auto 25px;
  text-align: center;
}

.manga-splash-title {
  background-color: #ff6700;
  border: 4px solid #000;
  border-radius: 8px;
  padding: 12px 20px;
  display: inline-block;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
  transform: rotate(-1deg);
  margin: 0 auto;
  max-width: 90%;
}

.splash-text {
  color: white;
  font-family: "Bangers", cursive, var(--heading-font);
  font-size: 2.2rem;
  margin: 0;
  text-shadow: 2px 2px 0 #000;
  -webkit-text-stroke: 1px black;
  letter-spacing: 1px;
}

.splash-subtitle {
  color: white;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 3px;
  text-shadow: 1px 1px 0 #000;
}

/* Remove old title styling */
.comic-title-bubble {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .guide-tabs {
    padding-bottom: 5px;
  }

  .guide-tabs li {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .guide-step {
    flex-direction: column;
    padding: 15px;
  }

  .step-number {
    margin-bottom: 15px;
    align-self: flex-start;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .skill-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .skill-icon {
    margin-bottom: 10px;
  }

  .manga-splash-title {
    padding: 10px 15px;
    border-width: 3px;
  }

  .splash-text {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .comic-ranking-header {
    margin: 0 auto 20px;
  }

  .manga-splash-title {
    padding: 8px 12px;
    border-width: 3px;
    transform: rotate(0deg);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
  }

  .splash-text {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }

  .splash-subtitle {
    font-size: 0.85rem;
    margin-top: 2px;
  }
}

@media (max-width: 480px) {
  .guide-tabs li {
    padding: 10px;
    font-size: 0.85rem;
  }

  .step-content h3 {
    font-size: 1.3rem;
  }

  .control-key {
    min-width: 60px;
    font-size: 0.85rem;
  }
}

/* Ensure proper display of Vietnamese characters */
.guide-section * {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
