/**
 * Oyun sunucu sayfaları — alt OnlyCore Network / uptime widget
 */
:root {
  --oc-gn-bg: #0d1117;
  --oc-gn-surface: #161b22;
  --oc-gn-border: rgba(240, 246, 252, 0.1);
  --oc-gn-text: #f0f6fc;
  --oc-gn-muted: #8b949e;
  --oc-gn-green: #3fb950;
  --oc-gn-green-dim: rgba(63, 185, 80, 0.15);
  --oc-gn-red: #f85149;
  --oc-gn-blue: #388bfd;
}

.oc-game-network-wrap {
  background: linear-gradient(180deg, rgba(18, 22, 38, 0.35) 0%, transparent 100%);
  border-top: 1px solid rgba(240, 246, 252, 0.06);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  margin-top: 1rem;
}

/* status.html aksiyon satırları içinde gömülü widget */
.oc-game-network-wrap--compact {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.oc-game-network-wrap .container {
  max-width: 960px;
}

.oc-gn-card {
  border: 1px solid var(--oc-gn-border);
  border-radius: 12px;
  background: var(--oc-gn-surface);
  overflow: hidden;
}

.oc-gn-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--oc-gn-border);
  gap: 12px;
}

.oc-gn-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--oc-gn-text);
}

.oc-gn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--oc-gn-green-dim);
  color: var(--oc-gn-green);
  border: 1px solid rgba(63, 185, 80, 0.35);
  white-space: nowrap;
}

.oc-gn-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.oc-gn-card__body {
  padding: 18px;
}

.oc-gn-uprow {
  margin-bottom: 22px;
}
.oc-gn-uprow:last-child {
  margin-bottom: 0;
}

.oc-gn-uprow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.oc-gn-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--oc-gn-text);
}

.oc-gn-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--oc-gn-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.oc-gn-dot svg {
  width: 10px;
  height: 10px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

.oc-gn-pct {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--oc-gn-green);
}

.oc-gn-bar {
  display: flex;
  gap: 2px;
  align-items: stretch;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.oc-game-network-wrap .st-bar__seg {
  flex: 1;
  min-width: 0;
  border-radius: 2px;
  cursor: default;
  transition: filter 0.12s;
}

.oc-game-network-wrap .st-bar__seg:hover {
  filter: brightness(1.12);
  z-index: 1;
}

.oc-game-network-wrap .st-bar__seg--up {
  background: var(--oc-gn-green);
}

.oc-game-network-wrap .st-bar__seg--down {
  background: var(--oc-gn-red);
}

.oc-game-network-wrap .st-bar__seg--maint {
  background: var(--oc-gn-blue);
}

.oc-gn-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--oc-gn-muted);
}

.oc-gn-divider {
  margin: 20px 0;
  border: none;
  border-top: 1px solid var(--oc-gn-border);
}

.oc-gn-uprow--soon .oc-gn-dot-soon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(139, 148, 158, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--oc-gn-muted);
  font-size: 10px;
}

.oc-gn-badge-soon {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 148, 158, 0.2);
  color: var(--oc-gn-muted);
  border: 1px solid rgba(139, 148, 158, 0.35);
}

.oc-gn-soon-placeholder {
  height: 32px;
  border-radius: 6px;
  border: 1px dashed rgba(139, 148, 158, 0.4);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--oc-gn-muted);
}

/* Tooltip (body’de, fixed) */
#oc-gn-tip.oc-gn-tip {
  position: fixed;
  z-index: 10050;
  min-width: 200px;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #1c2128;
  border: 1px solid var(--oc-gn-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}

#oc-gn-tip.oc-gn-tip.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.oc-gn-tip__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.oc-gn-tip__ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.oc-gn-tip--up .oc-gn-tip__ic {
  background: var(--oc-gn-green);
  color: #fff;
}

.oc-gn-tip--up .oc-gn-tip__ic::before {
  content: "✓";
}

.oc-gn-tip--down .oc-gn-tip__ic {
  background: var(--oc-gn-red);
  color: #fff;
}

.oc-gn-tip--down .oc-gn-tip__ic::before {
  content: "!";
}

.oc-gn-tip--maint .oc-gn-tip__ic {
  background: var(--oc-gn-blue);
  color: #fff;
}

.oc-gn-tip--maint .oc-gn-tip__ic::before {
  content: "i";
  font-style: italic;
  font-family: Georgia, serif;
}

.oc-gn-tip__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--oc-gn-text);
  margin: 0;
  padding-top: 1px;
}

.oc-gn-tip__detail {
  margin: 0 0 10px;
  padding-left: 32px;
  font-size: 0.82rem;
  color: #79c0ff;
  line-height: 1.35;
}

.oc-gn-tip__detail:empty {
  display: none;
}

.oc-gn-tip__detail:empty + .oc-gn-tip__rule {
  margin-top: 0;
}

.oc-gn-tip__rule {
  margin: 0 0 8px;
  border: none;
  border-top: 1px solid var(--oc-gn-border);
}

.oc-gn-tip__date {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #79c0ff;
}
