@import url("./navbar.css");

/* ================= BASE ================= */

body {
  margin: 0;
  min-height: 100vh;
  background: url("../assets/backgrounds/aura2.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  font-family: "Josefin Sans", "Montserrat", sans-serif;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* overlay suave */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.0);
  z-index: -1;
}

/* ================= HERO LAYOUT ================= */

.hero {
  width: 100%;
  max-width: 1400px;
  padding: 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: relative;
}

/* ================= CENTRO ================= */

.hero-content {
  flex: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  text-shadow: 0 0 20px #7aa2ff;
}

.hero p {
  color: #ccc;
  margin-bottom: 20px;
}

/* BOTONES */
.hero-buttons a {
  margin: 10px;
  padding: 12px 25px;
  border-radius: 10px;
  background: linear-gradient(90deg,#649cff,#a786ff);
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

.hero-buttons a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #7aa2ff;
}

/* ================= PANEL DERECHO ================= */

.info-panel {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-box {
  background: rgba(25,25,50,0.6);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(120,120,255,0.2);
  transition: 0.2s;
}

.info-box h2 {
  color: #ffd700;
}

.info-box p {
  margin: 5px 0;
  color: #ddd;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(120,120,255,0.3);
}

/* ================= STATUS ================= */

.server-status {
  position: absolute;
  top: -390px;
  left: -120px;

  padding: 6px 14px;
  border-radius: 10px;
  font-weight: bold;
}

.server-status.on {
  background: #2ecc71;
}

.server-status.off {
  background: #e74c3c;
}

/* ================= DISCORD ================= */

.hero-discord {
  position: absolute;
  bottom: -400px;
  left: -100px;
}

.hero-discord span {
  display: block;
  font-size: 0.9em;
  color: #aaa;
}

.hero-discord a {
  padding: 10px 20px;
  border-radius: 14px;
  background: rgba(88,101,242,0.2);
  border: 1px solid rgba(88,101,242,0.4);
  backdrop-filter: blur(6px);
  color: #cfd8ff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.hero-discord a:hover {
  background: #5865F2;
  color: white;
  transform: scale(1.05);
}

/* ================= ANIMACIONES ================= */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .info-panel {
    width: 100%;
    margin-top: 40px;
    align-items: center;
  }

  .info-box {
    width: 90%;
  }

  .server-status {
    position: static;
    margin-bottom: 20px;
  }

  .hero-discord {
    position: static;
    margin-top: 20px;
  }
}