/* Homepage Specific Styles */

.fullscreen-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('../images/websitebackground.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: -2rem; /* Remove space between header and hero */
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 8, 16, 0.5);
  z-index: 1;
}

.hero-center-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  margin-bottom: 2rem;
  text-align: center;
}

.hero-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 5rem;
  color: white;
  text-shadow: 0 0 15px rgba(185, 128, 229, 0.7), 
               0 0 30px rgba(185, 128, 229, 0.5),
               0 0 45px rgba(185, 128, 229, 0.3);
  margin: 0 auto;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.hero-tagline {
  font-size: 1.5rem;
  color: white;
  margin: 2rem auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-ip-container {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  margin: 1rem auto 2.5rem;
  display: inline-block;
  border: 1px solid rgba(185, 128, 229, 0.3);
  box-shadow: 0 0 20px rgba(185, 128, 229, 0.2);
}

.hero-ip-container .clickable-ip {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.8rem;
  padding: 0.5rem 1.2rem;
  color: white;
  background-color: rgba(94, 59, 132, 0.5);
  border-radius: 4px;
  border: 2px solid rgba(185, 128, 229, 0.5);
  transition: all 0.3s ease;
}

.hero-ip-container .clickable-ip:hover {
  background-color: rgba(94, 59, 132, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 128, 229, 0.4);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.mc-button {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.primary-button {
  background-color: #5e3b84;
  color: white;
  border: 2px solid #8547b5;
}

.primary-button:hover {
  background-color: #8547b5;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.secondary-button {
  background-color: #373737;
  color: white;
  border: 2px solid #555555;
}

.secondary-button:hover {
  background-color: #555555;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Main Navigation Buttons */
.main-navigation {
  background-color: rgba(8, 8, 16, 0.8);
  padding: 1rem 0;
  position: relative;
  z-index: 10;
}

.nav-button-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: #373737;
  color: white;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #555555;
}

.nav-button i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.nav-button:hover {
  background-color: #555555;
  transform: translateY(-3px);
  color: white;
  text-shadow: none;
}

.nav-button.active {
  background-color: #5e3b84;
  border: 2px solid #8547b5;
}

.nav-button.active:hover {
  background-color: #8547b5;
}

/* Map Preview Styles */
.map-preview {
  padding: 2rem 1rem 4rem;
  max-width: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.map-preview h2 {
  font-family: 'Minecraft', sans-serif;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
}

.map-preview-container {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--tertiary-color);
  background-color: var(--bg-dark);
  padding: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  contain: content;
}

.map-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background-color: var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-preview-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(0.8) saturate(1.2);
  transition: all 0.3s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.map-preview-container:hover .map-preview-img {
  filter: brightness(0.9) saturate(1.3);
}

.map-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--bg-light);
}

.bluemap-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.map-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

.map-overlay-simple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.map-preview-container:hover .map-overlay-simple {
  opacity: 1;
}

.map-overlay-content {
  text-align: center;
  color: white;
  padding: 1.5rem;
  max-width: 80%;
}

.map-overlay-content h3 {
  font-family: 'Minecraft', sans-serif;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.map-overlay-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Add hover effects for iframes */
.map-preview-container:hover .bluemap-preview {
  filter: brightness(1.1);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-button-container {
    gap: 0.5rem;
  }
  
  .nav-button {
    min-width: 80px;
    padding: 0.8rem;
  }
  
  .map-preview-container {
    border-width: 2px;
  }
    .map-overlay {
    bottom: 10px;
    right: 10px;
  }
  
  .map-overlay-content h3 {
    font-size: 1.2rem;
  }
  
  .map-overlay-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .hero-ip-container .clickable-ip {
    font-size: 1.2rem;
  }
}
