/* =========================================================
   LowHosting – Minecraft plans page (gameservers?gid=1)
   Everything is scoped under .mc-world so it never touches
   the rest of the site (style.css / halloween_style.css).
   ========================================================= */

.mc-world {
  --sky-top: #141936;
  --sky-low: #262c58;
  --stone: #3a3d45;
  --deepslate: #26282e;
  --card: #2d3037;
  --card-edge-light: rgba(255, 255, 255, .09);
  --card-edge-dark: rgba(0, 0, 0, .45);
  --text: #eef0f4;
  --muted: #a9aebb;
  --slot: #1b1d22;
  --btn: #4f8f2f;
  --btn-hover: #5ea53a;
  --btn-shadow: #2f5a1a;
  /* Same type system as the rest of the site */
  --heading: Lato, sans-serif;
  --body: "Open Sans", sans-serif;
  --price: "Montserrat", sans-serif;

  position: relative;
  color: var(--text);
  font-family: var(--body);
  background: var(--deepslate);
  overflow: hidden;
}

/* ---------- Sky (title area) ---------- */
.mc-sky {
  position: relative;
  padding: 200px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 100%);
}

/* The square Minecraft moon */
.mc-moon {
  position: absolute;
  top: 150px;
  right: 9%;
  width: 56px;
  height: 56px;
  background: #e9edf5;
  box-shadow:
    inset -8px -8px 0 #c9cfdb,
    inset 16px 8px 0 -8px #f7f9fc,
    0 0 60px 10px rgba(200, 215, 255, .18);
}
.mc-moon::after {            /* two craters */
  content: "";
  position: absolute;
  left: 12px; top: 28px;
  width: 8px; height: 8px;
  background: #c9cfdb;
  box-shadow: 20px -12px 0 #d6dbe5;
}

.mc-sky h1 {
  margin: 0 0 16px;
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
}
.mc-sky .mc-lead {
  max-width: 34em;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #c8cde0;
}

/* ---------- Grass → dirt → stone edge ---------- */
.mc-grass {
  height: 64px;
  background: url(../img/gameservers/minecraft/grass-edge.svg) repeat-x left top / 256px 64px;
  image-rendering: pixelated;
}

/* ---------- Underground (plans area) ---------- */
.mc-underground {
  position: relative;
  padding: 72px 0 120px;
  background:
    url(../img/gameservers/minecraft/stone-texture.svg) repeat 0 0 / 128px 128px,
    linear-gradient(180deg, var(--stone) 0%, var(--deepslate) 85%);
}
.mc-underground::after {      /* ragged bedrock at the very bottom */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: url(../img/gameservers/minecraft/bedrock-edge.svg) repeat-x left bottom / 256px 64px;
  pointer-events: none;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 72px 24px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}
@media (max-width: 1199px) { .mc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px)  { .mc-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; } }

/* ---------- Plan card ---------- */
.mc-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 64px 22px 22px;
  background: var(--card);
  border-radius: 4px;
  /* Minecraft-UI bevel: light top-left edge, dark bottom-right edge */
  box-shadow:
    inset 2px 2px 0 var(--card-edge-light),
    inset -2px -2px 0 var(--card-edge-dark),
    0 18px 30px -18px rgba(0, 0, 0, .7);
  text-align: left;
}
.mc-plan::before {            /* ore-coloured band along the top */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--ore);
}

.mc-plan.is-featured {
  box-shadow:
    0 0 0 2px var(--ore),
    inset 2px 2px 0 var(--card-edge-light),
    inset -2px -2px 0 var(--card-edge-dark),
    0 24px 40px -18px rgba(0, 0, 0, .8);
}
/* Badge row: present on every card (empty when not featured)
   so prices stay aligned across the row */
.mc-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22px;
  margin: 0 0 8px;
}
.mc-badge {
  display: inline-block;
  padding: 3px 10px 4px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.2;
  color: #1b1d22;
  background: var(--ore);
  border-radius: 2px;
  white-space: nowrap;
}

/* Floating block, bobs like a dropped item when the card is hovered */
.mc-block {
  position: absolute;
  top: -52px;
  left: 50%;
  width: 104px;
  height: 104px;
  margin-left: -52px;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .45));
}
@media (prefers-reduced-motion: no-preference) {
  .mc-plan:hover .mc-block,
  .mc-plan:focus-within .mc-block {
    animation: mc-bob 1.6s ease-in-out infinite;
  }
}
@keyframes mc-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.mc-plan h2 {
  margin: 0 0 4px;
  font-family: var(--heading);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.2;
  color: #fff;
  text-align: center;
}

.mc-price {
  margin: 0 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.mc-price strong {
  font-family: var(--price);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Spec rows */
.mc-specs {
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.mc-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-size: .95rem;
}
.mc-spec dt { font-weight: 400; color: var(--muted); }
.mc-spec dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; }

/* RAM as hotbar slots: 1 slot = 1 GB, scale is the biggest plan */
.mc-meter {
  display: grid;
  grid-template-columns: repeat(var(--slots), 1fr);
  gap: 2px;
  margin: -2px 0 14px;
}
.mc-meter span {
  height: 8px;
  background: var(--slot);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .5);
}
.mc-meter span.on {
  background: var(--ore);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}

/* ---------- Order button (Minecraft-style, pressable) ---------- */
.mc-world a.mc-btn {
  display: block;
  margin-top: auto;
  padding: 12px 16px 14px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  background: var(--btn);
  border-radius: 3px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .22),
    inset 0 -4px 0 var(--btn-shadow);
  transition: background-color .15s ease, transform .08s ease;
}
.mc-world a.mc-btn:hover { background: var(--btn-hover); color: #fff; }
.mc-world a.mc-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), inset 0 -2px 0 var(--btn-shadow);
}
.mc-world a.mc-btn:focus-visible,
.mc-plan:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---------- Footnote ---------- */
.mc-note {
  position: relative;
  z-index: 1;
  margin: 56px auto 0;
  max-width: 40em;
  text-align: center;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
  .mc-sky { padding: 160px 0 56px; }
  .mc-moon { display: none; }
  .mc-sky .mc-lead { font-size: 1rem; }
  .mc-underground { padding: 56px 0 104px; }
}

@media (max-width: 559px) {
  .mc-plan { padding: 52px 18px 18px; }
  .mc-block { top: -40px; width: 80px; height: 80px; margin-left: -40px; }
  .mc-plan h2 { font-size: 1.5rem; }
  .mc-price { margin-bottom: 14px; }
  .mc-price strong { font-size: 2rem; }
  .mc-specs { margin-bottom: 16px; padding-top: 12px; }
}
