/* 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-red-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: 2rem;
  color: var(--brand-red-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-light);
  background: #fff;
  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-light);
  background: #fff;
  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-light);
  background: var(--secondary-bg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  background: #dedfe1;
}

/* 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;
}
