/* ============================================================
   POXI GAMES — TOURNAMENT & MINECREST THEME
   Sleek esports dark aesthetic, vibrant gold & discord blurple accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --mc-dark-bg: #0b0c10;
  --mc-dark-bg2: #0f1118;
  --mc-card-bg: #121520;
  --mc-card-hover: #171b29;
  --mc-border: #1f2436;
  --mc-border-hover: #2e3650;
  --mc-gold: #ffb703;
  --mc-gold-bright: #fbbf24;
  --mc-gold-dim: #d97706;
  --mc-gold-glow: rgba(251, 191, 36, 0.16);
  --mc-discord: #5865F2;
  --mc-discord-hover: #4752c4;
  --mc-text-main: #ffffff;
  --mc-text-sub: #94a3b8;
  --mc-text-muted: #64748b;
  --mc-danger: #ef4444;
  --mc-danger-soft: rgba(239, 68, 68, 0.12);
}

/* Global Reset & Base */
body.poxi-theme {
  background-color: var(--mc-dark-bg) !important;
  color: var(--mc-text-main) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 85% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0b0c10 0%, #0d0f17 50%, #090a0e 100%) !important;
  background-attachment: fixed !important;
}

/* Subtle Minecraft Grid Texture */
body.poxi-theme::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 48px);
  z-index: 0;
}

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.poxi-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 0;
  width: 100%;
}

.poxi-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.poxi-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}

.poxi-brand-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b1a3e 0%, #171626 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poxi-brand:hover .poxi-brand-crown {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
}

.poxi-brand-name {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

.poxi-brand-name span {
  color: var(--mc-gold-bright);
}

/* Nav Links */
.poxi-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.poxi-nav-item a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  position: relative;
}

.poxi-nav-item a:hover,
.poxi-nav-item a.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.poxi-nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mc-gold-bright);
  border-radius: 2px;
}

/* Discord Button */
.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--mc-discord);
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
  white-space: nowrap;
}

.btn-discord:hover {
  background: var(--mc-discord-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  color: #ffffff !important;
}

.btn-discord:active {
  transform: translateY(0);
}

.btn-discord svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* YouTube Button */
.btn-youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ff0033;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.35);
  white-space: nowrap;
}

.btn-youtube:hover {
  background: #e6002e;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 0, 51, 0.5);
  color: #ffffff !important;
}

.btn-youtube:active {
  transform: translateY(0);
}

.btn-youtube svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* YouTube Channel Selection Modal */
.poxi-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.poxi-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.poxi-modal-dialog {
  background: #0d111a;
  border: 1px solid #282f45;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poxi-modal-backdrop.is-open .poxi-modal-dialog {
  transform: translateY(0) scale(1);
}

.poxi-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #1a2233;
}

.poxi-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.poxi-modal-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.3);
  color: #ff0033;
  flex-shrink: 0;
}

.poxi-modal-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
}

.poxi-modal-subtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.poxi-modal-close {
  background: transparent;
  border: 1px solid #282f45;
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.poxi-modal-close:hover {
  background: #1a2233;
  color: #ffffff;
  border-color: #475569;
}

.poxi-modal-body {
  padding: 22px 26px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .poxi-modal-body {
    grid-template-columns: 1fr;
  }
}

.yt-channel-choice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #131824;
  border: 1px solid #232a3d;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.yt-channel-choice:hover {
  background: #182030;
  border-color: #ff0033;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 0, 51, 0.15);
}

.yt-channel-choice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.yt-choice-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 51, 0.15);
  color: #ff0033;
}

.yt-choice-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.yt-choice-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.yt-choice-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 16px;
  flex-grow: 1;
}

.yt-choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff0033;
  padding: 9px 14px;
  background: rgba(255, 0, 51, 0.08);
  border: 1px solid rgba(255, 0, 51, 0.2);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.yt-channel-choice:hover .yt-choice-btn {
  background: #ff0033;
  color: #ffffff;
  border-color: #ff0033;
}

/* Admin Button for Header */
.btn-admin-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-admin-gear:hover {
  background: #fbbf24;
  color: #0b0f19 !important;
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}

.btn-admin-gear svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Edit button on Next Event card */
.next-event-edit-trigger {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.next-event-edit-trigger:hover {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

/* Admin Form Controls in Modal */
.poxi-admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 26px 26px;
}

.poxi-admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .poxi-admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.poxi-admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.poxi-admin-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.poxi-admin-input {
  background: #141926;
  border: 1px solid #283148;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  padding: 10px 14px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.poxi-admin-input:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
  background: #182030;
}

.poxi-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid #1e2638;
}

.poxi-admin-btn-save {
  background: #fbbf24;
  color: #0b0f19;
  border: none;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poxi-admin-btn-save:hover {
  background: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.poxi-admin-btn-reset {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #2a3348;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.poxi-admin-btn-reset:hover {
  background: #1a2233;
  color: #ffffff;
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #141722;
  color: #ffffff !important;
  border: 1px solid #282e44;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #1c2132;
  border-color: #3b4465;
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Gold Outline Button */
.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--mc-gold-bright) !important;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-gold-outline:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--mc-gold-bright);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
  transform: translateY(-1px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.poxi-hero-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.poxi-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

/* Left Hero Column */
.poxi-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.poxi-hero-emblem {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.poxi-hero-emblem-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #371b58 0%, #1b1931 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.25);
}

.poxi-hero-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.poxi-hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: #94a3b8;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 0 32px 0;
}

.poxi-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Right Hero Column: Next Event Card */
.next-event-card {
  background: #111420;
  border: 1px solid #1f2538;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.next-event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mc-gold-bright), transparent);
  opacity: 0.8;
}

.event-subtag {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-subtag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mc-gold-bright);
  box-shadow: 0 0 8px var(--mc-gold-bright);
}

.event-main-heading {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 900;
  color: var(--mc-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.event-info-line {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin: 6px 0;
}

.event-info-line span {
  color: #64748b;
  font-weight: 600;
}

.event-divider {
  height: 1px;
  background: #1c2234;
  margin: 22px 0;
}

/* Server IP Box */
.server-ip-box {
  background: #0b0d14;
  border: 1px solid #1c2234;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.server-ip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.server-ip-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.server-ip-copy-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.server-ip-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.server-ip-copy-btn.copied {
  color: #10b981;
}

.server-ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.server-ip-val {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.server-version-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ============================================================
   COMMUNITY DISCORD BANNER SECTION (Picture 2)
   ============================================================ */
.community-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.community-banner {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 56px 48px;
  background-color: #0e111a;
  background-image: 
    linear-gradient(90deg, rgba(11, 13, 20, 0.96) 0%, rgba(11, 13, 20, 0.85) 45%, rgba(11, 13, 20, 0.94) 100%),
    url('poxi/players/img/hero-poxic.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.community-banner-content {
  max-width: 640px;
}

.tag-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mc-gold-dim);
  margin-bottom: 10px;
  display: block;
}

.community-banner-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px 0;
}

.community-banner-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   PLAY FAIR / KNOW THE RULES BANNER (Picture 2 & 3)
   ============================================================ */
.rules-callout-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.rules-callout-box {
  background: #111420;
  border: 1px solid #1f2538;
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.rules-callout-box::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--mc-gold-bright);
}

.rules-callout-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.rules-callout-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* ============================================================
   POXI ECOSYSTEM & MINIGAMES HUB
   ============================================================ */
.ecosystem-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.section-head-wrap {
  margin-bottom: 28px;
}

.section-head-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
}

.section-head-sub {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.hub-card {
  background: #121522;
  border: 1px solid #1e2436;
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mc-gold-bright), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  background: #171b2b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.1);
}

.hub-card:hover::before {
  opacity: 1;
}

.hub-card-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1;
}

.hub-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.hub-card-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 14px;
}

.hub-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.hub-card-badge.active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.hub-card-badge.soon {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ============================================================
   RULES PAGE SPECIFIC STYLES (Pictures 4 & 5)
   ============================================================ */
.rules-hero-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.rules-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.zero-tolerance-card {
  background: #111420;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.08);
  position: relative;
}

.zero-tolerance-tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc-gold-bright);
  margin-bottom: 10px;
  display: block;
}

.zero-tolerance-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 10px 0;
}

.zero-tolerance-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* Rules 4 Cards Grid (Picture 4) */
.rules-four-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.rule-box {
  background: #111420;
  border: 1px solid #1f2538;
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.rule-box:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.rule-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.rule-num-badge {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--mc-gold-bright);
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.rule-box-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-list li {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.rule-list li::before {
  content: '▪';
  position: absolute;
  left: 4px;
  color: var(--mc-gold-bright);
  font-size: 1rem;
  line-height: 1.4;
}

.rule-list strong {
  color: #ffffff;
  font-weight: 700;
}

.rule-list .rule-highlight {
  color: var(--mc-gold-bright);
  font-weight: 700;
}

.rule-list .rule-danger {
  color: #f87171;
  font-weight: 700;
}

/* Quote note inside card */
.rule-admin-quote {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--mc-gold-bright);
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 10px;
}

/* Penalties Section (Picture 5) */
.penalties-section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.penalties-title {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.penalties-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 0 32px 0;
}

.penalties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.penalty-card {
  background: #111420;
  border: 1px solid #1f2538;
  border-radius: 8px;
  padding: 22px 24px;
  text-align: left;
  transition: all 0.2s ease;
}

.penalty-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: #161928;
  transform: translateY(-2px);
}

.penalty-card-name {
  font-family: 'Space Grotesk', 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.penalty-card-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   UNIVERSAL FOOTER (Pictures 3 & 5)
   ============================================================ */
.poxi-footer {
  position: relative;
  z-index: 10;
  background: #08090d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 0;
  width: 100%;
}

.poxi-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.poxi-footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.poxi-footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.poxi-footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.poxi-footer-links a:hover {
  color: #ffffff;
}

.poxi-footer-credit {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: #64748b;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 960px) {
  .poxi-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rules-hero-grid {
    grid-template-columns: 1fr;
  }
  .rules-four-grid {
    grid-template-columns: 1fr;
  }
  .poxi-nav-menu {
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .poxi-nav-menu {
    display: none; /* simple mobile hide or scroll */
  }
  .community-banner {
    padding: 36px 24px;
  }
  .rules-callout-box {
    padding: 28px 20px;
  }
  .poxi-hero-section {
    padding-top: 40px;
  }
  .poxi-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   PLAYERS ROSTER & PROFILES THEME
   ============================================================ */
.mc-player-card {
  background: #111420 !important;
  border: 1px solid #1f2538 !important;
  border-radius: 10px !important;
  transition: all 0.22s ease !important;
}

.mc-player-card:hover {
  background: #161928 !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(251, 191, 36, 0.12) !important;
}

.mc-player-name {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.95rem !important;
}

.mc-player-pts {
  color: var(--mc-gold-bright) !important;
  font-weight: 700 !important;
}

.mc-player-rank {
  border-radius: 4px !important;
  font-family: 'Space Grotesk', monospace !important;
}

.mc-rank-1 {
  background: linear-gradient(135deg, #d97706, #fbbf24) !important;
  color: #0b0c10 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4) !important;
}

.mc-rank-2 {
  background: linear-gradient(135deg, #64748b, #cbd5e1) !important;
  color: #0b0c10 !important;
  font-weight: 900 !important;
}

.mc-rank-3 {
  background: linear-gradient(135deg, #b45309, #f97316) !important;
  color: #0b0c10 !important;
  font-weight: 900 !important;
}

.mc-search-wrap input {
  background: #111420 !important;
  border: 1px solid #1f2538 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 12px 16px 12px 42px !important;
  font-family: 'Inter', sans-serif !important;
}

.mc-search-wrap input:focus {
  border-color: var(--mc-gold-bright) !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2) !important;
  outline: none !important;
}

.version-selector {
  background: #111420 !important;
  border: 1px solid #1f2538 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.version-selector select,
.version-selector button {
  background: transparent !important;
  color: #94a3b8 !important;
  border: none !important;
  border-right: 1px solid #1f2538 !important;
  padding: 10px 14px !important;
  font-weight: 700 !important;
}

.version-selector select:hover,
.version-selector button:hover {
  background: #171b2c !important;
  color: #ffffff !important;
}

.version-selector select.selected {
  background: rgba(251, 191, 36, 0.14) !important;
  color: var(--mc-gold-bright) !important;
  border-bottom: 2px solid var(--mc-gold-bright) !important;
}

.score-item {
  background: #111420 !important;
  border: 1px solid #1f2538 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
}

.score-name {
  color: #cbd5e1 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.score-val {
  color: var(--mc-gold-bright) !important;
  font-weight: 800 !important;
  font-family: 'Space Grotesk', monospace !important;
}

/* Records & Changelog Styling */
.record-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  position: relative !important;
}

.record-label {
  font-size: 0.88rem !important;
  color: #94a3b8 !important;
  flex: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 600 !important;
}

.record-value {
  font-size: 1.05rem !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.log-entry {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.log-version {
  font-family: 'Space Grotesk', monospace !important;
  color: var(--mc-gold-bright) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  min-width: 65px !important;
  flex-shrink: 0 !important;
}

.log-text {
  color: #cbd5e1 !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  flex: 1 !important;
}

/* Admin delete button polish */
.admin-delete-btn {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  font-family: system-ui, sans-serif !important;
  line-height: 1 !important;
}

.admin-delete-btn:hover {
  background: #dc2626 !important;
  transform: scale(1.08) !important;
}

/* The Rivals menu remains available when the main navigation collapses. */
.poxi-nav-inner:has(.poxi-rivals-entry) {
  max-width: 1440px;
  flex-wrap: wrap;
}

.poxi-rivals-nav {
  position: relative;
}

.poxi-rivals-nav > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 4px;
  color: #e9d5a4;
  cursor: pointer;
  list-style: none;
  font: 700 0.76rem 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.poxi-rivals-nav > summary::-webkit-details-marker {
  display: none;
}

.poxi-rivals-nav > summary::after {
  content: '';
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: -3px 0 0 2px;
}

.poxi-rivals-nav[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

.poxi-rivals-nav > summary:hover,
.poxi-rivals-entry.is-active > details > summary {
  color: var(--mc-gold-bright);
}

.poxi-rivals-nav > nav {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 224px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid #4a3c26;
  border-radius: 9px;
  background: #121520;
  box-shadow: 0 16px 40px #0009;
  z-index: 10;
  box-sizing: border-box;
}

.poxi-rivals-nav > nav > a {
  display: block;
  padding: 12px 13px;
  border-radius: 5px;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.poxi-rivals-nav > nav > a:hover,
.poxi-rivals-nav > nav > a[aria-current='page'] {
  color: var(--mc-gold-bright);
  background: #fbbf2410;
  text-shadow: none;
}

.poxi-rivals-nav > summary:focus-visible,
.poxi-rivals-nav > nav > a:focus-visible {
  outline: 2px solid var(--mc-gold-bright);
  outline-offset: 3px;
}

@media (max-width: 1300px) {
  .poxi-nav-inner > .poxi-nav-menu:has(.poxi-rivals-entry),
  .poxi-nav-inner > nav:has(> .poxi-nav-menu > .poxi-rivals-entry) {
    order: 3;
    flex-basis: 100%;
    min-width: 0;
  }

  .poxi-nav-inner > .poxi-nav-menu:has(.poxi-rivals-entry),
  .poxi-nav-inner > nav > .poxi-nav-menu:has(.poxi-rivals-entry) {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
}

@media (max-width: 680px) {
  .poxi-nav-inner:has(.poxi-rivals-entry) {
    justify-content: center;
    gap: 12px;
  }

  .poxi-nav-inner:has(.poxi-rivals-entry) > div {
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
  }

  .poxi-nav-inner > .poxi-nav-menu:has(.poxi-rivals-entry),
  .poxi-nav-inner > nav > .poxi-nav-menu:has(.poxi-rivals-entry) {
    display: flex;
    gap: 0;
  }

  .poxi-nav-menu:has(.poxi-rivals-entry) > li:not(.poxi-rivals-entry) {
    display: none;
  }

  .poxi-rivals-nav > nav {
    left: 50%;
    transform: translateX(-50%);
  }
}

