/* Shared Minecraft hub block — matches Learning Hub Riftbound section */
:root {
  --rock-white: #fefce8;
  --card-radius: 16px;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hub-mc-space {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto 28px;
  padding: 0 20px;
}

.hub-mc-space--riftbound {
  padding: 0 16px 8px;
}

.hub-mc-hero {
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  background: #12061f center/cover no-repeat;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}

.hub-mc-hero__inner {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px 18px;
  background: linear-gradient(to top, rgba(15, 10, 30, 0.92) 0%, rgba(15, 10, 30, 0.35) 60%, transparent 100%);
  text-align: center;
}

.hub-mc-space--riftbound .hub-mc-space__title {
  text-shadow: 0 2px 20px rgba(168, 85, 247, 0.6);
}

.hub-mc-worlds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 560px) {
  .hub-mc-worlds {
    grid-template-columns: 1fr;
  }
}

.hub-mc-world {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(0, 0, 0, 0.35);
}

.hub-mc-world--rift {
  border-color: rgba(248, 113, 113, 0.35);
}

.hub-mc-world__img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.hub-mc-world__img--safe {
  object-position: center 12%;
}

.hub-mc-world__img--rift {
  object-position: center 88%;
}

.hub-mc-world__body {
  padding: 12px 14px 14px;
}

.hub-mc-world__body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #e9d5ff;
}

.hub-mc-world__body p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(254, 252, 232, 0.78);
  line-height: 1.35;
}

.hub-mc-world__port {
  margin-top: 8px !important;
  font-family: ui-monospace, Consolas, monospace;
  color: #c4b5fd !important;
}

.hub-mc-join--rift {
  color: #1e0a33;
  background: linear-gradient(135deg, #a855f7, #e879f9);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45);
}

.hub-mc-space__cta--rift {
  color: #1e0a33;
  background: linear-gradient(135deg, #c084fc, #f0abfc);
}

.hub-mc-server__note--center {
  text-align: center;
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(254, 252, 232, 0.55);
}

.hub-mc-space__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(254, 252, 232, 0.9);
  margin-bottom: 8px;
}

.hub-mc-space__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hub-mc-space__dot--s1 {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.hub-mc-space__dot--s2 {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

.hub-mc-space__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: var(--rock-white);
  letter-spacing: 0.04em;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-weight: 800;
}

.hub-mc-space__sub {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: rgba(254, 252, 232, 0.75);
}

.hub-mc-server {
  padding: 16px 18px;
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(20, 30, 20, 0.88));
  border: 1px solid rgba(74, 222, 128, 0.28);
  box-shadow: var(--card-shadow);
}

.hub-mc-server--rift {
  border-color: rgba(167, 139, 250, 0.35);
  background: linear-gradient(145deg, rgba(30, 15, 45, 0.92), rgba(45, 20, 35, 0.88));
}

.hub-mc-server--bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hub-mc-server--bar .hub-mc-copy {
  width: auto;
  flex: 0 0 auto;
  min-width: 9.5rem;
}

.hub-mc-server__main {
  flex: 1 1 220px;
  min-width: 0;
}

.hub-mc-space__btnstrip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .hub-mc-space__btnstrip {
    grid-template-columns: 1fr;
  }
}

.hub-mc-join {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 16px 14px;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1.25;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}

.hub-mc-join--main {
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #bbf7d0);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.hub-mc-server__tag {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #86efac;
}

.hub-mc-server--rift .hub-mc-server__tag {
  color: #e9d5ff;
}

.hub-mc-server__name {
  margin: 0;
  font-size: 1.15rem;
  color: #f8fafc;
}

.hub-mc-server__blurb {
  margin: 6px 0 12px;
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.35;
}

.hub-mc-server__rows {
  margin: 0 0 12px;
  font-size: 0.82rem;
}

.hub-mc-server__rows div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 8px;
  margin-bottom: 6px;
  align-items: baseline;
}

.hub-mc-server__rows dt {
  margin: 0;
  font-weight: 700;
  color: rgba(254, 252, 232, 0.55);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.hub-mc-server__rows dd {
  margin: 0;
  color: #ecfccb;
  word-break: break-all;
}

.hub-mc-server--rift .hub-mc-server__rows dd {
  color: #e9d5ff;
}

.hub-mc-server__rows code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
}

.hub-mc-copy {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #bbf7d0);
}

.hub-mc-server--rift .hub-mc-copy {
  color: #1e0a33;
  background: linear-gradient(135deg, #a855f7, #e879f9);
}

.hub-mc-space__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.hub-mc-space__cta {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #052e16;
  background: linear-gradient(135deg, #a3e635, #fbbf24);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hub-mc-join-help {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(254, 252, 232, 0.88);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.hub-mc-join-help strong {
  color: #e9d5ff;
}

.hub-mc-join-help code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  color: #bbf7d0;
  word-break: break-all;
}

.hub-mc-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-mc-status span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hub-mc-status .on {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(74, 222, 128, 0.45);
}

.hub-mc-status .off {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
}
