/* ========================================
   GBMC MASTER CSS
   WordPress Custom HTML templates
   ======================================== */

.gbmc-page {
  --gbmc-stone-950: #151817;
  --gbmc-stone-900: #1f2422;
  --gbmc-stone-800: #2d332f;
  --gbmc-stone-700: #3d463f;
  --gbmc-stone-600: #566258;
  --gbmc-parchment: #fbf4df;
  --gbmc-muted: #ddd1ae;
  --gbmc-gold: #d8ad3d;
  --gbmc-gold-light: #f2d580;
  --gbmc-grass: #67a84e;
  --gbmc-grass-dark: #376a31;
  --gbmc-sky: #8bc8e8;
  --gbmc-redstone: #d85d4f;
  --gbmc-shadow: rgba(0, 0, 0, 0.38);
  width: 100%;
  padding: clamp(14px, 2.4vw, 36px);
  color: var(--gbmc-parchment);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  line-height: 1.55;
}

.gbmc-page * {
  box-sizing: border-box;
}

.gbmc-page a {
  color: var(--gbmc-gold-light);
  font-weight: 700;
}

.gbmc-page a:hover,
.gbmc-page a:focus {
  color: #fff2bf;
}

.gbmc-main {
  width: min(94%, 1280px);
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.18)),
    var(--gbmc-stone-900);
  border: 3px solid #101311;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 2px rgba(216, 173, 61, 0.65),
    0 14px 30px var(--gbmc-shadow);
  overflow: hidden;
}

.gbmc-hero {
  position: relative;
  min-height: clamp(320px, 44vw, 500px);
  display: grid;
  align-items: end;
  margin: calc(clamp(16px, 2.2vw, 28px) * -1) calc(clamp(16px, 2.2vw, 28px) * -1) 28px;
  padding: clamp(24px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(12, 16, 14, 0.90), rgba(12, 16, 14, 0.58) 46%, rgba(12, 16, 14, 0.22)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72)),
    url("../images/gbmc-hero-village.png") center / cover no-repeat,
    linear-gradient(135deg, var(--gbmc-grass-dark), var(--gbmc-stone-800));
  border-bottom: 3px solid #101311;
}

.gbmc-hero-compact {
  min-height: auto;
  margin: 0 0 24px;
  padding: clamp(18px, 3vw, 32px);
  background:
    linear-gradient(135deg, rgba(55, 106, 49, 0.44), rgba(31, 36, 34, 0.96)),
    linear-gradient(45deg, rgba(216, 173, 61, 0.18) 25%, transparent 25%, transparent 50%, rgba(216, 173, 61, 0.12) 50%, rgba(216, 173, 61, 0.12) 75%, transparent 75%);
  background-size: auto, 26px 26px;
  border: 2px solid rgba(216, 173, 61, 0.45);
  border-radius: 8px;
}

.gbmc-hero-content {
  max-width: 760px;
}

.gbmc-kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--gbmc-sky);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gbmc-title {
  margin: 0 0 12px;
  color: var(--gbmc-gold-light);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.gbmc-hero-compact .gbmc-title {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.gbmc-intro {
  max-width: 820px;
  margin: 0 0 14px;
  color: var(--gbmc-parchment);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.gbmc-copy {
  max-width: 860px;
  color: var(--gbmc-muted);
}

.gbmc-copy p,
.gbmc-card p,
.gbmc-list {
  margin-top: 0;
  color: var(--gbmc-muted);
}

.gbmc-section-title {
  margin: 32px 0 14px;
  color: var(--gbmc-gold-light);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.gbmc-section-lead {
  max-width: 840px;
  margin: -4px 0 16px;
  color: var(--gbmc-muted);
}

.gbmc-grid {
  display: grid;
  gap: 14px;
}

.gbmc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gbmc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gbmc-card,
.gbmc-note-box,
.gbmc-callout {
  border-radius: 8px;
}

.gbmc-card {
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.16)),
    var(--gbmc-stone-800);
  border: 2px solid #111411;
  box-shadow:
    inset 0 0 0 1px rgba(216, 173, 61, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.gbmc-card h3 {
  margin: 0 0 8px;
  color: var(--gbmc-gold-light);
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gbmc-card-note,
.gbmc-small {
  color: var(--gbmc-muted);
  font-size: 0.93rem;
  opacity: 0.96;
}

.gbmc-stat {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.gbmc-list {
  padding-left: 1.2rem;
}

.gbmc-list li {
  margin-bottom: 0.42rem;
}

.gbmc-steps {
  counter-reset: gbmc-step;
}

.gbmc-step {
  position: relative;
  padding-left: 56px;
}

.gbmc-step::before {
  counter-increment: gbmc-step;
  content: counter(gbmc-step);
  position: absolute;
  left: 16px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #10200f;
  font-weight: 900;
  background: var(--gbmc-gold-light);
  border: 2px solid rgba(0, 0, 0, 0.42);
  border-radius: 6px;
}

.gbmc-note-box {
  margin: 16px 0;
  padding: 14px 16px;
  color: #f6ffe9;
  background: rgba(103, 168, 78, 0.18);
  border: 1px solid rgba(139, 200, 232, 0.35);
}

.gbmc-note-box strong {
  color: var(--gbmc-gold-light);
}

.gbmc-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(103, 168, 78, 0.28), rgba(216, 173, 61, 0.16)),
    var(--gbmc-stone-800);
  border: 2px solid rgba(216, 173, 61, 0.42);
}

.gbmc-callout .gbmc-section-title {
  margin-top: 0;
}

.gbmc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gbmc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #ffffff !important;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.gbmc-btn:hover,
.gbmc-btn:focus {
  color: #ffffff !important;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.gbmc-btn-primary {
  background: linear-gradient(180deg, var(--gbmc-grass), var(--gbmc-grass-dark));
}

.gbmc-btn-secondary {
  background: linear-gradient(180deg, var(--gbmc-stone-600), var(--gbmc-stone-800));
}

.gbmc-btn-alert {
  background: linear-gradient(180deg, #df7669, var(--gbmc-redstone));
}

.gbmc-shortcode-panel {
  min-height: 80px;
}

.gbmc-live-chat-wrap {
  width: 100%;
  min-width: 0;
}

.gbmc-live-chat-wrap,
.gbmc-live-chat-wrap * {
  color: var(--gbmc-parchment);
}

.gbmc-live-chat-wrap > div,
.gbmc-live-chat-wrap .gbmc-live-chat,
.gbmc-live-chat-wrap .gbmc-chat-feed,
.gbmc-live-chat-wrap .live-chat-feed,
.gbmc-live-chat-wrap .chat-feed,
.gbmc-live-chat-wrap .chat-history {
  max-height: 65vh;
  padding: 12px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(216, 173, 61, 0.28);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.gbmc-live-chat-wrap ul,
.gbmc-live-chat-wrap ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gbmc-live-chat-wrap li,
.gbmc-live-chat-wrap .message,
.gbmc-live-chat-wrap .chat-message,
.gbmc-live-chat-wrap .feed-item,
.gbmc-live-chat-wrap .gbmc-chat-message {
  margin-bottom: 8px;
  padding: 10px 12px;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.gbmc-live-chat-wrap li:last-child,
.gbmc-live-chat-wrap .message:last-child,
.gbmc-live-chat-wrap .chat-message:last-child,
.gbmc-live-chat-wrap .feed-item:last-child,
.gbmc-live-chat-wrap .gbmc-chat-message:last-child {
  margin-bottom: 0;
}

.gbmc-live-chat-wrap strong,
.gbmc-live-chat-wrap .username,
.gbmc-live-chat-wrap .author,
.gbmc-live-chat-wrap .player-name,
.gbmc-live-chat-wrap .chat-user {
  color: var(--gbmc-gold-light);
  font-weight: 900;
}

.gbmc-live-chat-wrap .timestamp,
.gbmc-live-chat-wrap time,
.gbmc-live-chat-wrap .date,
.gbmc-live-chat-wrap .chat-time {
  color: var(--gbmc-sky);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .gbmc-grid-2,
  .gbmc-grid-3 {
    grid-template-columns: 1fr;
  }

  .gbmc-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .gbmc-page {
    padding: 10px;
  }

  .gbmc-main {
    width: 100%;
    padding: 14px;
  }

  .gbmc-hero {
    min-height: 360px;
    margin: -14px -14px 22px;
    padding: 22px;
    background-position: 58% center;
  }

  .gbmc-hero-compact {
    margin: 0 0 20px;
    padding: 18px;
  }

  .gbmc-title {
    font-size: 2rem;
  }

  .gbmc-card {
    padding: 15px;
  }

  .gbmc-step {
    padding-left: 48px;
  }

  .gbmc-step::before {
    left: 12px;
  }

  .gbmc-buttons,
  .gbmc-btn {
    width: 100%;
  }

  .gbmc-chat-mobile-only .gbmc-main {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .gbmc-chat-mobile-only .gbmc-hero,
  .gbmc-chat-mobile-only .gbmc-note-box,
  .gbmc-chat-mobile-only .gbmc-card:not(.gbmc-chat-card) {
    display: none;
  }

  .gbmc-chat-mobile-only .gbmc-chat-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
}
