/* Shared public styling (non-club pages + public header/footer) */

* { box-sizing: border-box; }

:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --bg-card: #101827;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-strong: #fbbf24;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --muted-soft: #64748b;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1d2240 0, #050816 55%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* Containers */
.page,
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Header */
header.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: conic-gradient(from 200deg, #f59e0b, #f97316, #22c55e, #3b82f6, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #020617;
}

.brand-text-main {
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-text-sub {
  font-size: 0.8rem;
  color: var(--muted-soft);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.header-links a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1.2;
}

.header-links a:hover {
  color: var(--accent);
}

.header-links a.is-active {
  color: var(--text);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e 0, #16a34a 50%, #14532d 100%);
}

/* Footer */
footer.public-footer {
  margin-top: 26px;
  padding: 14px 0 4px;
  font-size: 0.78rem;
  color: var(--muted-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

footer.public-footer a {
  color: var(--muted);
  text-decoration: none;
}

footer.public-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-developed-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  background-color: rgba(226, 232, 240, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-developed-by-logo {
  height: 14px;
  width: auto;
  display: block;
  opacity: 0.92;
}

@media (max-width: 600px) {
  header.public-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-developed-by {
    white-space: normal;
  }
}

/* Tables: horisontal scrolling på mobil */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.table-responsive > table {
  width: 100%;
  border-collapse: collapse;
  /* Sørger for at brede tabeller faktisk blir bredere enn viewport og dermed kan scrolles */
  min-width: 640px;
}

