/* =============================================
   Keeb Network — Minecraft Subsite Styles
   Extends /style.css
   ============================================= */

/* ── Override accent for MC theme ───────────── */
.mc-theme {
  --accent:  #4ade80;
  --accent2: #86efac;
}

.mc-theme .nav-logo,
.mc-theme .accent,
.mc-theme .stat-number,
.mc-theme .footer-logo {
  background: linear-gradient(90deg, #4ade80, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mc-theme .btn-mc {
  background: linear-gradient(135deg, #4ade80, #86efac);
  color: #0d1a10;
  font-weight: 700;
}

.mc-theme .hero-tag {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.mc-theme .nav nav a:hover { color: #4ade80; }

/* ── MC Hero ────────────────────────────────── */
.mc-hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.mc-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(74,222,128,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(134,239,172,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Minecraft grass block texture hint at bottom */
.mc-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4ade80, #22c55e, #4ade80);
  opacity: 0.6;
}

/* ── IP Text ────────────────────────────────── */
.ip-text {
  color: #4ade80;
  font-family: 'Courier New', monospace;
  font-size: 1.05em;
}

.ip-code {
  display: inline-block;
  background: var(--bg3, #1a1e2b);
  border: 1px solid var(--border, #2a3050);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: #4ade80;
  font-weight: 700;
  user-select: all;
  cursor: text;
}

.ip-inline {
  background: var(--bg3, #1a1e2b);
  border: 1px solid var(--border, #2a3050);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #4ade80;
}

/* ── Connection Bar ─────────────────────────── */
.connect-bar {
  background: var(--bg2, #13161f);
  border-top: 1px solid var(--border, #2a3050);
  border-bottom: 1px solid var(--border, #2a3050);
  padding: 1.5rem 0;
}

.connect-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.connect-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.connect-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted, #7880a0);
}

.connect-port {
  font-size: 0.78rem;
  color: var(--text-muted, #7880a0);
}

.connect-divider {
  width: 1px;
  height: 48px;
  background: var(--border, #2a3050);
}

@media (max-width: 600px) {
  .connect-divider { display: none; }
}

/* Status dot */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}

.status-text {
  font-weight: 700;
  color: #4ade80;
  font-size: 1rem;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px #4ade80; }
  50%       { box-shadow: 0 0 14px #4ade80; }
}

/* ── Server Grid ────────────────────────────── */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.server-card {
  background: var(--surface, #1f2436);
  border: 1px solid var(--border, #2a3050);
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.server-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-color: #4ade80;
}

.server-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

/* Header accent colors per server */
.smc-smp      { background: linear-gradient(135deg, #166534, #14532d); }
.smc-magic    { background: linear-gradient(135deg, #4c1d95, #3b0764); }
.smc-lucky    { background: linear-gradient(135deg, #713f12, #451a03); }
.smc-minigames { background: linear-gradient(135deg, #1e3a5f, #0f172a); }

.server-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.server-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.server-type {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.server-desc {
  padding: 1.25rem 1.5rem 0.75rem;
  color: var(--text-muted, #7880a0);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.server-features {
  list-style: none;
  padding: 0 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.server-features li {
  font-size: 0.88rem;
  color: var(--text, #e8eaf2);
}

.server-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border, #2a3050);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.server-tag {
  background: rgba(74,222,128,0.1);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── How to Join ────────────────────────────── */
.how-section {
  background: var(--bg2, #13161f);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.how-card {
  background: var(--surface, #1f2436);
  border: 1px solid var(--border, #2a3050);
  border-radius: var(--radius, 12px);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.how-card:hover { border-color: #4ade80; }

.how-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4ade80, #86efac);
  color: #0d1a10;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.how-card p {
  font-size: 0.88rem;
  color: var(--text-muted, #7880a0);
  line-height: 1.6;
}

/* ── Live player count badges ───────────────── */
.live-player-count {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  border: 1px solid transparent;
  margin-left: auto;
}

.badge-online {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
}

.badge-offline {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

/* ── Active nav link ────────────────────────── */
.nav-active {
  color: #4ade80 !important;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
  .connect-inner { gap: 1.25rem; }
}
