/* server_details.css
   Minimal overrides for server detail pages.
   Uses global root.css for cards, tables, typography.
*/

/* Layout shell */
.server-main {}

.server-page {
  margin-bottom: 2.5rem;
}

/* Breadcrumbs – not in root.css, so we keep a light style here */
.breadcrumb-nav {
  margin: 0.3rem 0 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 0.3em;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--brand-1);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Server header (inside .white-box from root.css) */
.server-header-box {
  /* just tweak spacing; background, border, shadow come from .white-box */
  padding: 1.4rem 1.4rem 1.2rem;
}

.server-title-meta h1 {
  font-size: clamp(1.8rem, 2.2vw + 1.1rem, 2.5rem);
  color: var(--brand-1);
  font-weight: 900;
  margin: 0 0 0.4rem;
  letter-spacing: 0.02em;
}

.server-meta {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.badge-sponsored {
  background: var(--gold);
  color: #1b1b1b;
  border-radius: 999px;
  padding: 0.12em 0.9em;
  font-size: 0.7em;
  margin-left: 0.5em;
  font-weight: 800;
}

.server-seo-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.45;
}

/* Muun cards */
.muun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.muun-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-0);
  padding: 1rem 1.1rem;
  box-shadow: var(--box-shadow);
}

.muun-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--accent);
}

.muun-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Guides / links grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.7rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-0);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--box-shadow);
}

.resource-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent);
}

.resource-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Social share */
.social-share-box {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.share-btn {
  display: inline-block;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--surface-1);
}

/* Tables
   Use root.css .sys-table / .table-style for actual styling.
   We only add a wrapper to allow horizontal scroll on mobile and
   make sure all tables feel the same left/right.
*/
.table-shell {
  width: 100%;
  overflow-x: auto;
}

.table-shell .sys-table {
  min-width: 540px;
}

/* Intro / header card */
.server-intro-box {
  background: var(--glass, rgba(16, 22, 38, .64));
  border: 1px solid var(--border, rgba(146, 166, 214, .16));
  border-radius: 18px;
  padding: 16px 18px;
  margin: 1rem 0;
}

.server-header-intro {
  margin: 0.9rem 0 0;
  color: var(--text, #d5ddef);
  line-height: 1.55;
}

/* Meta chips (version / XP / location / status) */
.server-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.8rem 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2, #131d31);
  border: 1px solid var(--border-2, rgba(146, 166, 214, .26));
  color: var(--text-muted, #8a94ad);
  font-size: 0.85rem;
  font-weight: 700;
}

.meta-chip--status {
  color: var(--success, #39d98a);
  border-color: rgba(57, 217, 138, .35);
  background: rgba(57, 217, 138, .08);
}

/* Legacy realm notice */
.legacy-realm-notice {
  border-left: 3px solid var(--gold, #f5c24b);
  background: rgba(245, 194, 75, .07);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 1rem 0;
}

/* Resource card extras */
.resource-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.resource-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2, #131d31);
  border: 1px solid var(--border-2, rgba(146, 166, 214, .26));
  color: var(--text-muted, #8a94ad);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.resource-card-cta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent, #7da2ff);
}

/* Share row + CTA */
.social-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-box {
  text-align: center;
}

/* Buttons */
.visit-server-btn {
  display: inline-block;
  margin-top: 0.9rem;
}

.main-register-btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
}
