/* styles.css */
:root{
  --panel: rgba(20, 20, 20, 0.78);
  --panel-strong: rgba(10, 10, 10, 0.88);
  --text: #f2f2f2;
  --muted: #cfcfcf;
  --accent: #7CFC00; /* Minecraft-ish green */
  --border: rgba(255,255,255,0.12);
}

*{ box-sizing: border-box; }

body{
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
}

.main p, .card p{
  line-height: 1.8;
}


html, body{
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

/* Dirt-block style background (pure CSS) */
body{
  background:
    /* subtle vignette */
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.75) 100%),
    /* pixel-ish speckles */
    repeating-linear-gradient(0deg, rgba(0,0,0,0.10) 0 2px, rgba(255,255,255,0.03) 2px 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.10) 0 2px, rgba(255,255,255,0.03) 2px 4px),
    /* dirt base */
    linear-gradient(#6b4a2f, #5a3e27);
  background-attachment: fixed;
}

/* Layout */
.wrapper{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr 360px;
  gap: 16px;
  padding: 16px;
}

.panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.sidebar{
  padding: 16px;
}

.brand{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.brand h1{
  font-size: 20px;
  margin: 0;
  letter-spacing: 0.5px;
}

.brand .tagline{
  color: var(--muted);
  font-size: 13px;
}

.nav{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav a{
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
}

.nav a:hover{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
}

.nav a.active{
  border-color: rgba(124,252,0,0.35);
  box-shadow: 0 0 0 2px rgba(124,252,0,0.12) inset;
}

.main{
  padding: 18px;
}

.main h2{
  margin: 0 0 10px 0;
  font-size: 22px;
}

.main p{
  margin: 0 0 12px 0;
  color: var(--muted);
  line-height: 1.55;
}

.callouts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.card{
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.card h3{
  margin: 0 0 6px 0;
  font-size: 15px;
  color: var(--text);
}

.card p{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.badge{
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(124,252,0,0.35);
  background: rgba(124,252,0,0.10);
  color: var(--text);
}

.embed{
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.embed h3{
  margin: 6px 6px 0 6px;
  font-size: 14px;
  color: var(--text);
}

.iframe-wrap{
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}

.iframe-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-note{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* Dynmap sizing */
.dynmap-frame{
  height: 70vh;
  min-height: 520px;
}

/* Discord sizing */
.discord-frame{
  height: calc(100vh - 64px);
  min-height: 620px;
}

/* Responsive */
@media (max-width: 1100px){
  .wrapper{
    grid-template-columns: 220px 1fr;
  }
  .right{
    grid-column: 1 / -1;
  }
  .discord-frame{
    height: 520px;
  }
}

@media (max-width: 720px){
  .wrapper{
    grid-template-columns: 1fr;
  }
  .callouts{
    grid-template-columns: 1fr;
  }
}

/* THEMES */
body.dirt {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15), rgba(0,0,0,0.75)),
    linear-gradient(#6b4a2f, #5a3e27);
}

body.darkoak {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.2), rgba(0,0,0,0.85)),
    linear-gradient(#3b2a1a, #24160d);
}

body.stone {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15), rgba(0,0,0,0.8)),
    linear-gradient(#7a7a7a, #4f4f4f);
}

/* Toggle buttons */
button, .nav a{
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  border: 2px solid #000;
  background: linear-gradient(#8b8b8b, #5f5f5f);
  color: #fff;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.4),
              inset 2px 2px 0 rgba(255,255,255,0.2);
  transition: transform 0.05s ease;
}

button:active, .nav a:active{
  transform: translateY(2px);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.4);
}

}


.status{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.status-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.status-dot.online{
  background: #00ff00;
  box-shadow: 0 0 10px #00ff00;
}

.status-dot.offline{
  background: #ff3333;
  box-shadow: 0 0 10px #ff3333;
}


#player list

.player-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player{
  position: relative;
  padding: 6px 8px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: default;
}

.player:hover .player-card{
  opacity: 1;
  transform: translateY(-6px);
  pointer-events: auto;
}

.player-card{
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 8px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10;
}

