/* ============================================================
   MCATiers - Minecraft Multiplayer Widget
   Pixel-perfect recreation of Java Edition server list
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.mc-screen-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
  margin-bottom: 2rem;
  font-family: 'Press Start 2P', 'Courier New', monospace;
}

/* Minecraft dirt/grass blurred background */
.mc-screen-bg {
  background:
    linear-gradient(rgba(10,12,18,0.82), rgba(10,12,18,0.82)),
    repeating-conic-gradient(#4a7a3a 0% 25%, #3d6630 0% 50%) 0 0 / 24px 24px;
  padding: 0;
}

/* Title bar */
.mc-screen-title {
  text-align: center;
  padding: 0.875rem 1.5rem 0.75rem;
  font-size: 0.85rem;
  color: #fff;
  text-shadow: 2px 2px 0 #3f3f3f;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Server list area */
.mc-server-list {
  padding: 0.5rem 0.875rem;
  min-height: 90px;
}

/* Server entry row */
.mc-server-entry {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.4rem 0.5rem;
  border: 2px solid transparent;
  cursor: default;
  border-radius: 2px;
}
.mc-server-entry.selected {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

/* Server icon */
.mc-server-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  image-rendering: pixelated;
  border: 2px solid rgba(0,0,0,0.6);
  margin-right: 10px;
  background: #222;
}

/* Text block */
.mc-server-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mc-server-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mc-server-name {
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 1px 1px 0 #3f3f3f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.mc-server-motd {
  font-size: 0.52rem;
  line-height: 1.7;
  color: #aaa;
  text-shadow: 1px 1px 0 #222;
}
.mc-server-desc-line {
  font-size: 0.48rem;
  color: #666;
  text-shadow: 1px 1px 0 #111;
}

/* Right meta: players + ping */
.mc-server-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
  min-width: 52px;
}
.mc-player-count {
  font-size: 0.5rem;
  color: #aaa;
  text-shadow: 1px 1px 0 #222;
  white-space: nowrap;
}
.mc-ping-img {
  width: 22px;
  height: 18px;
  image-rendering: pixelated;
  object-fit: contain;
}
.mc-ping-ms {
  font-size: 0.44rem;
  text-shadow: 1px 1px 0 #222;
}

/* Button rows */
.mc-buttons {
  padding: 0.625rem 0.875rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mc-btn-row {
  display: flex;
  gap: 0.375rem;
}
.mc-btn-mc {
  flex: 1;
  padding: 0.5rem 0.3rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.52rem;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  letter-spacing: 0.01em;
  text-shadow: 1px 1px 0 #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: filter 0.08s, transform 0.05s;
}
/* Active button - Minecraft style */
.mc-btn-mc.mc-active {
  background: linear-gradient(180deg,
    #7f7f7f 0%,
    #5f5f5f 48%,
    #4a4a4a 50%,
    #5f5f5f 100%
  );
  color: #e0e0e0;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.12),
    inset 0 -3px 0 rgba(0,0,0,0.4);
}
.mc-btn-mc.mc-active:hover {
  background: linear-gradient(180deg,
    #9898e8 0%,
    #7070cc 48%,
    #5858b4 50%,
    #7070cc 100%
  );
  color: #fff;
}
.mc-btn-mc.mc-active:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), inset 0 -1px 0 rgba(0,0,0,0.3);
}
/* Disabled button */
.mc-btn-mc.mc-disabled {
  background: linear-gradient(180deg,
    #555 0%,
    #3a3a3a 48%,
    #2d2d2d 50%,
    #3a3a3a 100%
  );
  color: #555;
  cursor: default;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.04), inset 0 -3px 0 rgba(0,0,0,0.3);
}

@media(max-width:500px){
  .mc-server-icon { width:48px; height:48px; }
  .mc-screen-title { font-size:.72rem; }
  .mc-btn-mc { font-size:.45rem; padding:.45rem .2rem; }
}
