/* ===============================
   HOME PAGE STYLES
================================ */

/* ===============================
   UPDATES SECTION
================================ */

.updates {
  padding: 80px 8%;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.updates h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.update-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.update-item {
  background: rgba(18, 20, 40, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.25);
  border-left: 4px solid #7b5cff;
  border-radius: 12px;
  padding: 25px 30px;
  text-align: left;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.update-item:hover {
  transform: translateX(5px);
  box-shadow: 0 0 25px rgba(123, 92, 255, 0.3);
  border-left-color: #5f8cff;
}

.update-date {
  font-size: 0.85rem;
  color: #7b5cff;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.update-item h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
}

.update-item p {
  font-size: 0.95rem;
  color: #cfd3ff;
  line-height: 1.6;
  margin: 0;
}

/* ===============================
   HOW TO JOIN SECTION
================================ */

.how-to-join {
  padding: 80px 8%;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.how-to-join h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  position: relative;
  padding: 40px 30px;
  border-radius: 18px;
  background: rgba(18, 20, 40, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 35px rgba(123, 92, 255, 0.35);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b5cff, #5f8cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 20px rgba(123, 92, 255, 0.5);
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  margin-top: 10px;
  background: linear-gradient(90deg, #7b5cff, #5f8cff, #3fb7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.step p {
  font-size: 0.95rem;
  color: #cfd3ff;
  line-height: 1.6;
}

.step strong {
  color: #7b5cff;
  font-weight: 600;
}

/* ===============================
   INLINE CTA (within How to Join)
================================ */

.cta-inline {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(123, 92, 255, 0.2);
  text-align: center;
}

.cta-inline h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.cta-inline .buttons {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ===============================
   FAQ SECTION
================================ */

.faq {
  padding: 80px 8%;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
}

.faq h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: rgba(18, 20, 40, 0.85);
  border: 1px solid rgba(123, 92, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(123, 92, 255, 0.5);
}

.faq-question {
  padding: 20px 25px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
  text-align: left;
}

.faq-question:hover {
  background: rgba(123, 92, 255, 0.1);
}

.faq-icon {
  font-size: 1.5rem;
  color: #7b5cff;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  display: inline-block;
  transform-origin: center;
}

.faq-item.active .faq-icon {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  font-size: 0.95rem;
  color: #cfd3ff;
  line-height: 1.7;
  text-align: left;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px 25px;
}

.faq-answer strong {
  color: #7b5cff;
  font-weight: 600;
}

.faq-more {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  .updates h2,
  .faq h2,
  .how-to-join h2,
  .cta h2 {
    font-size: 1.8rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .update-item {
    padding: 20px;
  }

  .update-item h3 {
    font-size: 1.1rem;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 18px 20px;
  }
}

/* ===============================
   WELCOME BANNER (logged-in users)
================================ */

.welcome-banner {
  background: linear-gradient(135deg, rgba(123,92,255,0.18), rgba(63,183,255,0.12));
  border-bottom: 1px solid rgba(123,92,255,0.25);
  padding: 12px 8%;
  position: relative;
  z-index: 1;
  animation: welcomeSlide 0.4s ease;
}

@keyframes welcomeSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.welcome-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #cfd3ff;
}

.welcome-wave {
  font-size: 1.3rem;
  animation: wave 1.2s ease 1;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave {
  0%   { transform: rotate(0deg);   }
  20%  { transform: rotate(20deg);  }
  40%  { transform: rotate(-10deg); }
  60%  { transform: rotate(14deg);  }
  80%  { transform: rotate(-5deg);  }
  100% { transform: rotate(0deg);   }
}

.welcome-inner strong {
  color: #7b5cff;
  font-weight: 700;
}

.welcome-cta {
  margin-left: auto;
  padding: 6px 18px;
  background: rgba(123,92,255,0.2);
  border: 1px solid rgba(123,92,255,0.4);
  border-radius: 20px;
  color: #7b5cff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.welcome-cta:hover {
  background: rgba(123,92,255,0.35);
  color: #fff;
}

/* ── Hero IP pill ──────────────────────────────────── */
.hero-ip {
  margin-top: 14px;
  display: inline-block;
  background: rgba(123,92,255,0.12);
  border: 1px solid rgba(123,92,255,0.3);
  border-radius: 30px;
  padding: 6px 20px;
  font-size: 0.95rem;
  color: #cfd3ff;
}

.hero-ip strong { color: #7b5cff; }

/* Hero network status */
.hero-status {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.hero-status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.hero-status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Discord CTA section */
.discord-cta {
  padding: 60px 8%;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.discord-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.discord-cta-p {
  color: #cfd3ff;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.discord-cta a {
  color: #7b5cff;
  text-decoration: none;
}

.discord-cta a:hover {
  text-decoration: underline;
}