/* Fursona Stats Grid */
.fursona-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 450px;
}

.stat-item span {
  color: var(--primary-color);
  font-weight: bold;
  display: block;
  margin-bottom: 3px;
}

/* Reference Sheet Styling */
.refsheet-container {
  width: 100%;
  max-width: 450px;
  margin: 10px 0 20px 0;
}

.refsheet-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2px solid var(--primary-color);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.refsheet-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(130, 169, 88, 0.3);
}

/* Art Carousel */
.carousel-container {
  max-width: 300px !important;
  margin: 10px 0 20px 0;
}

.carousel-title {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-wrapper {
  position: relative;
  max-width: 260px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid var(--primary-color);
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: 0.3s ease;
}

.carousel-btn:hover {
  background-color: var(--primary-color);
  color: var(--card-bg);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Lightbox / Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  animation: fadeInLightbox 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 16px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(130, 169, 88, 0.3);
  object-fit: contain;
  animation: zoomInImage 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Lightbox Animations */
@keyframes zoomInImage {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--text-color);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--primary-hover);
}

@keyframes fadeInLightbox {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================= */
/* --- Mobile Version (up to 600px) --- */
/* ========================================= */
@media (max-width: 600px) {
  body {
    padding: 3vh 0 0 0;
    gap: 20px;
  }

  .container {
    width: 95%;
    padding: 30px 15px;
    border-radius: 24px;
  }

  nav {
    gap: 4px;
    padding: 6px;
    border-radius: 16px;
  }

  nav a {
    padding: 8px 6px;
    font-size: 0.75em;
    border-radius: 10px;
  }

  h1 {
    font-size: 1.5em;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }
}
