/* ===== BASE STYLES ===== */
:root {
  /* Dark Minecraft Color Palette */
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --card-bg: #1e1e1e;
  --input-bg: #2d2d2d;
  --border-color: #333;
  
  /* Vibrant Accents */
  --grass: #5cdb95;
  --diamond: #00ffff;
  --gold: #ffd700;
  --redstone: #ff5555;
  --emerald: #00fa9a;
  --nether: #9400d3;
}

/* ===== LAYOUT ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-background {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
              url('../assets/images/minecraft-bg.jpg') center/cover fixed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
  background-color: #1a1a1a;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: var(--grass);
  font-family: 'Minecraft', sans-serif;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--diamond);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--diamond);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  70% {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

.nav-link.active {
  color: var(--gold);
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--grass);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--diamond);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.primary-btn {
  background: linear-gradient(to right, var(--grass), var(--emerald));
  color: black;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(92, 219, 149, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--diamond);
}

.secondary-btn:hover {
  background: rgba(0, 255, 255, 0.1);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  margin: 4rem 0;
}

.section-title {
  font-family: 'Minecraft', sans-serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  color: var(--diamond);
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--grass);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #ccc;
  line-height: 1.6;
}

/* ===== STATUS PREVIEW ===== */
.status-preview {
  margin: 4rem 0;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.server-status-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--grass);
}

.server-status-card h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 1rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.status-indicator.online {
  background: rgba(92, 219, 149, 0.1);
  color: var(--grass);
}

.status-indicator.offline {
  background: rgba(255, 85, 85, 0.1);
  color: var(--redstone);
}

.status-indicator.checking {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.online .status-dot {
  background: var(--grass);
  box-shadow: 0 0 8px var(--grass);
}

.status-indicator.offline .status-dot {
  background: var(--redstone);
  box-shadow: 0 0 8px var(--redstone);
}

.status-indicator.checking .status-dot {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.player-count {
  color: var(--emerald);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--diamond);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.view-all-btn:hover {
  color: var(--gold);
}

/* ===== FOOTER ===== */
.footer {
  background: #0a0a0a;
  padding: 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo {
  font-family: 'Minecraft', sans-serif;
  font-size: 1.5rem;
  color: var(--grass);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--diamond);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #ccc;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  color: #666;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}