/* === FONT Minecraft === */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* === Variabili colori === */
:root {
  --bg-1: #0b0012;
  --bg-2: #1b0630;
  --accent: #b388ff;
  --accent-2: #7b4fff;
  --text: #efe9ff;
  --muted: #bfb2da;
  --glass: rgba(255,255,255,0.04);
}

/* === BASE === */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  background:
    radial-gradient(1000px 500px at 20% 20%, rgba(179,136,255,0.06), transparent 10%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--text);
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 999;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; }
.brand-text { color: var(--accent); font-size: 12px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* === HAMBURGER === */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 32px; height: 32px;
  cursor: pointer;
}
.nav-toggle .burger {
  width: 20px; height: 2px; background: var(--accent);
  display: block; position: relative;
}
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: ""; position: absolute; width: 20px; height: 2px; background: var(--accent);
}
.nav-toggle .burger::before { top: -6px; }
.nav-toggle .burger::after { top: 6px; }

/* === HERO === */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
  max-width: 1100px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.hero-left {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.title {
  color: var(--accent);
  font-size: 24px;
}
.subtitle {
  color: var(--muted);
  line-height: 1.6;
  font-size: 9px;
  max-width: 500px;
}

/* === BOTTONI === */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--accent);
}

/* === CAMPO IP === */
.server-ip {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.ip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--glass);
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 260px;
}
#serverIp {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.copy-btn {
  border: 0;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 10px;
}
.copy-btn:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.copy-hint {
  color: var(--accent);
  font-size: 9px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s;
  height: 10px;
}
.copy-hint.show { opacity: 1; }

/* === LOGO === */
.logo-img {
  width: 260px;
  max-width: 70%;
  image-rendering: pixelated;
  transition: transform 0.3s;
}
.logo-img:hover { transform: translateY(-5px); }

/* === SEZIONI === */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  justify-content: center;
}
section {
  flex: 1 1 320px;
  background: rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}
h2 { color: var(--accent); font-size: 12px; }
p, li, a { font-size: 9px; line-height: 1.5; color: var(--text); }
.vote-list { display: flex; flex-direction: column; gap: 8px; }
.vote-list a { color: var(--accent); text-decoration: none; font-weight: bold; }

/* === FOOTER === */
.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    background: rgba(0,0,0,0.9);
    width: 200px;
    height: calc(100% - 64px);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.25s;
  }
  .nav-links.show { transform: translateX(0); }
  .hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .hero-left { align-items: center; }
}
