/* Modern Mod Page Styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-image: url("../images/bg/modsclub.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #ffffff;
  overflow-y: auto;
}

/* Dark overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

/* Main container styles */
#mod-container {
  max-width: 900px; /* Wider container for better content layout */
  margin: 80px auto 40px;
  padding: 30px 40px;
  background: rgba(30, 30, 40, 0.85);
  border-radius: 15px; /* More rounded corners */
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5); /* Enhanced shadow for depth */
  animation: fadeIn 0.8s ease;
}

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

/* Title styling */
.mod-content h1 {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: #ffffff;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
}

/* Add decorative underline to title */
.mod-content h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(142, 45, 226, 0.4),
    rgba(142, 45, 226, 1),
    rgba(142, 45, 226, 0.4)
  );
  border-radius: 2px;
}

/* Image container and styling */
.mod-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 25px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mod-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Play button overlay for video mods */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.play-overlay:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.play-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: #8e2de2;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.play-overlay:hover .play-icon {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.95);
}

.hidden {
  display: none !important;
}

/* Video iframe styling */
.video-iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 700px;
  margin: 25px auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.video-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Mod info section */
.mod-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #e0e0e0;
}

/* Styling for the info items (author, category, etc.) */
.mod-content p strong {
  color: #ffffff;
  font-weight: 600;
}

/* Description styling */
.mod-content p:nth-of-type(4) strong {
  font-size: 1.3rem;
  color: #ffffff;
  display: block;
  margin-top: 30px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(142, 45, 226, 0.5);
}

.mod-content p:nth-of-type(5) {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 8px;
  font-style: italic;
  text-align: justify;
  margin-bottom: 30px;
}

/* Download section */
.mod-download {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.download-button {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6a0dad, #4b0049);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-button:hover {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mod-download p {
  width: 100%;
  text-align: center;
  color: #aaa;
  font-style: italic;
}

/* Error message styling */
.error-message {
  text-align: center;
  padding: 30px;
}

.error-message h2 {
  color: #ff6666;
  margin-bottom: 15px;
}

.error-message a {
  color: #8e2de2;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.error-message a:hover {
  color: #ff69b4;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #mod-container {
    margin: 60px 15px 30px;
    padding: 20px 15px;
  }

  .mod-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .mod-image-wrapper {
    height: auto;
    max-height: 200px;
  }

  .mod-image {
    height: auto;
    max-height: 200px;
  }

  .mod-info {
    font-size: 0.95rem;
  }

  .mod-info p {
    margin-bottom: 10px;
  }

  .mod-content p:nth-of-type(5) {
    padding: 15px;
    margin-bottom: 20px;
  }

  .mod-download {
    gap: 10px;
    padding-top: 15px;
  }

  .download-button {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    margin-bottom: 5px;
  }

  /* Better video handling on mobile */
  .video-iframe-wrapper {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    position: relative;
  }

  .video-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* For very large screens */
@media (min-width: 1400px) {
  #mod-container {
    max-width: 1000px;
  }
}
