/*
 * pack.css — layout for individual pack pages (Packs/*.html)
 * Pack hero, thumbnails, features, description, download buttons, lightbox.
 * Loaded after site.css.
 */

/* Pack Details Page Specific Styles */

/* Pack Detail Container */
.pack-detail-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 50px;
  background-color: var(--background-card);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 1200px;
  margin: 0 auto 50px;
}

@media (min-width: 992px) {
  .pack-detail-container {
    flex-direction: row;
  }
}

/* Enhanced Hero Section with more visual flare */
.pack-detail-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  position: relative;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 110, 199, 0.1));
  padding: 25px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.pack-detail-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%238a2be2' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

/* Adjust the pack-detail-content to balance with the hero section */
.pack-detail-content {
  flex: 1.5;
}

/* Make sure the container maintains the proper layout */
@media (max-width: 992px) {
  .pack-detail-hero {
    max-width: 100%;
    margin-bottom: 30px;
  }
}

/* Enhanced thumbnails section */
.pack-thumbnails {
  margin-top: 30px;
  width: 100%;
  position: relative;
  z-index: 1;
  background-color: rgba(26, 26, 64, 0.4);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.pack-thumbnails:hover {
  background-color: rgba(26, 26, 64, 0.6);
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.thumbnails-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text);
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.thumbnails-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.thumbnail-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail-item:hover {
  transform: scale(1.08);
  border-color: var(--primary-light);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(138, 43, 226, 0.5);
  z-index: 2;
}

.thumbnail-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(255, 110, 199, 0.3));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.thumbnail-item:hover::before {
  opacity: 0.6;
}

.thumbnail-item::after {
  content: "\f00e";
  font-family: FontAwesome;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 1.5rem;
  z-index: 2;
  opacity: 0;
  transition: var(--transition);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.thumbnail-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

.view-all-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(138, 43, 226, 0.6);
}

.view-all-btn i {
  font-size: 1.1rem;
  transition: var(--transition);
}

.view-all-btn:hover i {
  transform: scale(1.2);
}

/* Enhanced pack cover with animation */
.pack-cover {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(138, 43, 226, 0.5);
  margin-bottom: 25px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.pack-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(138, 43, 226, 0.7);
  border-color: var(--primary-light);
}

/* Enhanced meta badges */
.pack-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.pack-badge {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.pack-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pack-badge.version {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
}

.pack-badge.theme {
  background-color: rgba(138, 43, 226, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(138, 43, 226, 0.3);
}

/* Remove star rating styles from pack detail pages */
.pack-rating {
  display: none;
}

/* Pack Content Section */
.pack-detail-content {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.pack-subtitle {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.pack-subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Enhanced Description Section */
.pack-description-block {
  background: linear-gradient(135deg, rgba(26, 26, 64, 0.7), rgba(26, 26, 64, 0.5));
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pack-description-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%238a2be2' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
}

.pack-description-block:hover {
  background: linear-gradient(135deg, rgba(26, 26, 64, 0.8), rgba(26, 26, 64, 0.6));
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(138, 43, 226, 0.3);
}

.description-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.description-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(138, 43, 226, 0.5);
  animation: pulse 2s infinite alternate;
}

.description-content {
  color: var(--text);
  line-height: 1.7;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* New description banner */
.description-banner {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  padding: 15px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.description-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.anime-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.pack-type {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

/* Description image */
.description-image-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 25px 0;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.description-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(138, 43, 226, 0.4);
}

.description-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.description-image-container:hover .description-image {
  transform: scale(1.05);
}

.description-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transition: var(--transition);
}

.description-image-container:hover .description-image-overlay {
  opacity: 1;
}

/* Enhanced highlights */
.description-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: rgba(26, 26, 64, 0.6);
  padding: 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.highlight-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.highlight-item:hover {
  background-color: rgba(26, 26, 64, 0.8);
  transform: translateY(-5px) translateX(5px);
  border-color: var(--primary-light);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.highlight-item:hover::before {
  opacity: 1;
}

.highlight-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.highlight-item:hover .highlight-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(138, 43, 226, 0.5);
}

.highlight-text h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 8px;
}

.highlight-text h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: var(--transition);
}

.highlight-item:hover .highlight-text h4::after {
  width: 50px;
}

.highlight-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Quote styling */
.description-quote {
  position: relative;
  background-color: rgba(26, 26, 64, 0.6);
  border-radius: var(--border-radius);
  padding: 25px 25px 25px 50px;
  margin-top: 30px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.description-quote:hover {
  background-color: rgba(26, 26, 64, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.quote-icon {
  color: var(--primary-light);
  font-size: 1.8rem;
  opacity: 0.5;
  position: absolute;
  top: 20px;
  left: 15px;
  transition: var(--transition);
}

.description-quote:hover .quote-icon {
  opacity: 0.8;
  transform: scale(1.1);
}

.quote-text {
  font-style: italic;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.6;
}

/* Enhanced Download Section */
.download-section {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 110, 199, 0.2));
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%238a2be2' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.download-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.download-title {
  font-size: 1.6rem;
  margin: 0 0 5px;
  color: var(--text);
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.download-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
}

@media (min-width: 576px) {
  .download-buttons {
    flex-direction: row;
  }
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 25px;
  border-radius: var(--border-radius);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  flex: 1;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  z-index: -1;
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.download-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
}

/* New vibrant colors for download buttons */
.download-btn.curseforge {
  background: linear-gradient(45deg, #ff4500, #ff8c00);
  border: 2px solid #ff6a00;
}

.download-btn.modrinth {
  background: linear-gradient(45deg, #00c853, #00e676);
  border: 2px solid #00d864;
}

.download-btn:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.download-btn.curseforge:hover {
  box-shadow: 0 15px 30px rgba(255, 69, 0, 0.3), 0 0 20px rgba(255, 140, 0, 0.4);
}

.download-btn.modrinth:hover {
  box-shadow: 0 15px 30px rgba(0, 200, 83, 0.3), 0 0 20px rgba(0, 230, 118, 0.4);
}

.download-btn:hover::before {
  transform: translateX(0);
}

.download-btn:hover::after {
  opacity: 1;
  animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.5);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

.button-icon {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: var(--transition);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.download-btn:hover .button-icon {
  transform: rotate(10deg) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.download-btn-text {
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.download-btn:hover .download-btn-text {
  transform: translateX(5px);
}

.btn-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.btn-site {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Enhanced features section */
.pack-features-block {
  margin-top: 30px;
  width: 100%;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(26, 26, 64, 0.6), rgba(26, 26, 64, 0.4));
  padding: 25px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.pack-features-block:hover {
  background: linear-gradient(135deg, rgba(26, 26, 64, 0.7), rgba(26, 26, 64, 0.5));
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(138, 43, 226, 0.3);
}

.features-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.features-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
  }
  100% {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
  }
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  background-color: rgba(26, 26, 64, 0.5);
  padding: 12px 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.features-list li:hover {
  background-color: rgba(26, 26, 64, 0.7);
  transform: translateX(8px);
  border-color: var(--primary-light);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.features-list li i {
  color: var(--primary-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.features-list li:hover i {
  transform: scale(1.2);
  color: var(--secondary);
}

/* Enhanced Compatibility Block */
.pack-compatibility-block {
  background-color: rgba(26, 26, 64, 0.5);
  border-radius: var(--border-radius);
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.pack-compatibility-block:hover {
  background-color: rgba(26, 26, 64, 0.7);
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.compatibility-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.compatibility-badge {
  padding: 12px 20px;
  background-color: rgba(26, 26, 64, 0.7);
  color: var(--text);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compatibility-badge::before {
  content: "\f00c";
  font-family: FontAwesome;
  color: var(--primary-light);
}

.compatibility-badge:hover {
  background-color: rgba(26, 26, 64, 0.9);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Gallery Showcase */
.gallery-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 992px) {
  .gallery-showcase {
    flex-direction: row;
    align-items: stretch;
  }
}

.gallery-featured {
  flex: 2;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 16 / 9;
  height: 100%;
}

.gallery-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.featured-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-featured:hover .featured-gallery-img {
  transform: scale(1.05);
}

.gallery-featured .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 1;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gallery-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.gallery-zoom {
  font-size: 0.9rem;
  opacity: 0.8;
}

.gallery-grid {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  height: 100%;
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 16 / 9;
  height: 100%;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item.add-more {
  background: linear-gradient(45deg, rgba(138, 43, 226, 0.3), rgba(255, 110, 199, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.more-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 10px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.more-overlay i {
  font-size: 2rem;
  opacity: 0.8;
}

.gallery-item.add-more:hover .more-overlay {
  transform: scale(1.1);
}

/* P5 Placement: After You Download - Native Design Integration */
.after-download-section {
  margin: 60px 0 50px 0;
  position: relative;
}

.after-download-section::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(138, 43, 226, 0.2) 50%, transparent 100%);
}

.download-next-step {
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-indicator {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(185, 128, 255, 0.12);
  border: 1px solid rgba(185, 128, 255, 0.25);
  border-radius: 8px;
  margin-bottom: 12px;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b980ff;
}

.step-heading {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #b980ff 0%, #ff6ec7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.step-subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 500;
}

.hosting-recommendation {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.06) 0%, rgba(255, 110, 199, 0.03) 100%);
  border: 1px solid rgba(138, 43, 226, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hosting-recommendation::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(185, 128, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hosting-recommendation:hover {
  border-color: rgba(138, 43, 226, 0.2);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.09) 0%, rgba(255, 110, 199, 0.05) 100%);
  box-shadow: 0 12px 36px rgba(138, 43, 226, 0.1);
}

@media (min-width: 768px) {
  .hosting-recommendation {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}

.host-card-left {
  flex: 1.2;
  position: relative;
  z-index: 1;
}

.host-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.host-lightning {
  width: 36px;
  height: 36px;
  color: #00d4ff;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.host-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.host-details {
  margin: 12px 0 0 0;
}

.host-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px 0;
}

.host-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 14px 0;
  line-height: 1.5;
}

.host-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.host-features li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 24px;
  position: relative;
}

.host-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00d4ff;
  font-weight: 700;
  font-size: 1.1rem;
}

.host-card-right {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  align-items: center;
}

@media (min-width: 768px) {
  .host-card-right {
    align-items: flex-start;
  }
}

.discount-highlight {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.discount-code-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1.5px solid #00d4ff;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2), inset 0 0 8px rgba(0, 212, 255, 0.05);
  animation: codePulse 2.5s ease-in-out infinite;
}

@keyframes codePulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2), inset 0 0 8px rgba(0, 212, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.35), inset 0 0 12px rgba(0, 212, 255, 0.1);
  }
}

.code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 212, 255, 0.8);
  font-weight: 600;
}

.code-display {
  font-size: 1.8rem;
  font-weight: 800;
  color: #00ffff;
  letter-spacing: 3px;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.discount-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff6ec7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.host-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.35);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.host-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.host-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(138, 43, 226, 0.5);
}

.host-cta:hover::before {
  left: 100%;
}

.host-disclosure {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .download-next-step {
    margin-bottom: 24px;
  }

  .step-heading {
    font-size: 1.5rem;
  }

  .hosting-recommendation {
    padding: 24px 20px;
    gap: 20px;
  }

  .host-title {
    font-size: 1.1rem;
  }

  .host-features {
    gap: 6px;
  }

  .code-display {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .host-cta {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}



/* Hide the pack-gallery section since we moved it */
.pack-gallery {
  display: none;
}

/* Installation Guide */
.pack-installation {
  margin-bottom: 50px;
  background-color: var(--background-card);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.installation-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.installation-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgba(26, 26, 64, 0.5);
  padding: 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.installation-step:hover {
  background-color: rgba(26, 26, 64, 0.7);
  transform: translateX(5px);
  border-color: var(--primary-light);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-content h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: var(--text-muted);
}

/* Enhanced modal styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  top: 50%;
  transform: translateY(-50%);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-60%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.mySlides {
  display: none; /* Keep hidden until a slide is selected. Do not override with flex here. */
  text-align: center;
  height: 80vh;
  align-items: center;
  justify-content: center;
}

.mySlides img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
  animation: imgFadeIn 0.5s ease;
  object-fit: contain;
  width: auto;
  height: auto;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1101;
  transition: var(--transition);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  padding: 0;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: var(--transition);
  border-radius: 50%;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.prev:hover,
.next:hover {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
}

#caption {
  margin: 20px auto;
  color: white;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Remove the download class since we're removing that feature */
.download {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pack-detail-hero {
    margin-bottom: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .installation-step {
    flex-direction: column;
  }

  .step-number {
    margin-bottom: 10px;
  }

  .prev,
  .next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .description-highlights {
    grid-template-columns: 1fr;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .compatibility-badges {
    flex-direction: column;
  }

  .compatibility-badge {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .pack-detail-container {
    padding: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .compatibility-badges {
    flex-direction: column;
  }

  .compatibility-badge {
    width: 100%;
    text-align: center;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .description-highlights {
    grid-template-columns: 1fr;
  }

  .description-banner {
    padding: 12px 15px;
  }

  .anime-title {
    font-size: 1.2rem;
  }
}

#information {
  background-color: rgba(12, 20, 55, 0.8);
  color: #8fb3bb;
  border-radius: 10px;
  margin: 60px auto 0; /* Remove bottom margin to prevent gap */
  max-width: 1200px;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  box-sizing: border-box;
}

#information .section-title {
  margin-top: 0;
}

#information .resources-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Ensure the footer sticks to the bottom */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.social-icon img {
  width: 20px;
  height: 20px;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  margin-top: 30px;
  font-size: 0.9rem;
}

/* Adblock message styling */
#adblock-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
}

.adblock-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--background-light);
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.adblock-container h2 {
  color: var(--secondary);
  margin-bottom: 20px;
}

.adblock-image {
  max-width: 100%;
  margin: 20px 0;
  border-radius: var(--border-radius);
}

.refresh-button {
  padding: 10px 20px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  margin-top: 20px;
}

.refresh-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.adsbox {
  height: 1px;
  width: 1px;
  position: absolute;
  left: -9999px;
  visibility: hidden;
}
/* Captions created by the visual editor must look like legacy #caption nodes. */
#myModal .caption {
  margin: 20px auto;
  color: white;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}


/* v3: Pack screenshot lightbox — center the image and give its caption a
   separate row.  Legacy pages use id="caption" for every slide, while new
   editor pages use class="caption"; support both without editing 47 pages. */
#myModal {
  overscroll-behavior: contain;
}

#myModal .modal-content {
  box-sizing: border-box;
  width: min(94vw, 1500px);
  max-width: none;
  height: min(90dvh, 980px);
  max-height: none;
  padding: 22px 76px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(180, 135, 255, 0.18);
  background: rgba(30, 26, 65, 0.97);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
}

#myModal .mySlides {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#myModal .mySlides img {
  display: block;
  width: auto !important; /* overrides width:100% inline on old pages */
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: calc(min(90dvh, 980px) - 108px);
  flex: 0 1 auto;
  object-fit: contain;
}

#myModal .mySlides .caption,
#myModal .mySlides [id="caption"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 22px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 6px;
  color: #e4a0ee;
  font-size: clamp(0.9rem, 1.7vw, 1.2rem);
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-text-fill-color: currentColor;
}

#myModal .prev,
#myModal .next {
  box-sizing: border-box;
  z-index: 2;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: 0;
  padding: 0;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: rgba(8, 8, 28, 0.85);
  line-height: 1;
}
#myModal .prev { left: 12px; right: auto; }
#myModal .next { right: 12px; left: auto; }
#myModal .prev:hover,
#myModal .next:hover {
  transform: translateY(-50%) scale(1.08);
}

#myModal .close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  line-height: 1;
  z-index: 4;
}

@media (max-width: 650px) {
  #myModal .modal-content {
    width: 98vw;
    height: auto;
    max-height: 84dvh;
    padding: 16px 40px;
    border-radius: 10px;
  }
  #myModal .mySlides {
    height: auto;
    gap: 10px;
  }
  #myModal .mySlides img {
    max-height: calc(min(84dvh, 800px) - 74px);
    border-radius: 7px;
  }
  #myModal .prev, #myModal .next {
    width: 34px;
    height: 40px;
    font-size: 24px;
  }
  #myModal .prev { left: 3px; }
  #myModal .next { right: 3px; }
  #myModal .mySlides .caption,
  #myModal .mySlides [id="caption"] {
    font-size: 0.88rem;
  }
}
