/* DESIGN SYSTEM RESET & VARIABLES */
:root {
  --bg: #ffffff;
  --bg-soft: #fbfbfb;
  --surface: #ffffff;
  --text: #111111;
  --muted: #5f6368;
  --line: #e5e7eb;
  --line-strong: #d7dbe0;
  --accent: #000000;
  --accent-contrast: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --max-width: 1080px;
  --heading-font: "Segoe UI", "Arial", sans-serif;
  --body-font: "Segoe UI", "Arial", sans-serif;
  
  --sociax-accent: #334155;
  --sociax-accent-hover: #1e293b;
  --sociax-accent-rgb: 51, 65, 85;
  --sociax-accent-gradient: linear-gradient(135deg, #334155, #64748b);
  --sociax-accent-glow: rgba(51, 65, 85, 0.12);
}

html[data-theme="dark"] {
  --bg: #0f1218;
  --bg-soft: #141923;
  --surface: #171d28;
  --text: #f3f5fb;
  --muted: #a7b0c2;
  --line: #2a3140;
  --line-strong: #354051;
  --accent: #f3f5fb;
  --accent-contrast: #0f1218;
  
  --sociax-accent: #e2e8f0;
  --sociax-accent-hover: #f8fafc;
  --sociax-accent-rgb: 226, 232, 240;
  --sociax-accent-gradient: linear-gradient(135deg, #e2e8f0, #94a3b8);
  --sociax-accent-glow: rgba(226, 232, 240, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

button,
input,
textarea {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.site-body {
  position: relative;
}

/* GENERAL UI COMPONENTS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--line);
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: all 0.2s;
}

.input:focus {
  border-color: var(--sociax-accent);
}

/* LOADER OVERLAY */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-circle,
.loader-small {
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-circle {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(17, 17, 17, 0.14);
  border-top-color: var(--sociax-accent);
}

.loader-small {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  border: 3px solid rgba(17, 17, 17, 0.14);
  border-top-color: var(--sociax-accent);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

html[data-theme="dark"] .loader-overlay,
.site-body[data-theme="dark"] .loader-overlay {
  background: rgba(15, 18, 24, 0.96) !important;
  backdrop-filter: blur(3px);
}

html[data-theme="dark"] .loader-circle,
html[data-theme="dark"] .loader-small,
.site-body[data-theme="dark"] .loader-circle,
.site-body[data-theme="dark"] .loader-small {
  border-color: rgba(255, 255, 255, 0.2) !important;
  border-top-color: #ffffff !important;
}
    .sociax-hero {
      text-align: center;
      padding: 50px 20px 30px;
      background: linear-gradient(135deg, rgba(184, 240, 203, 0.15) 0%, rgba(135, 206, 250, 0.15) 100%);
      border-radius: var(--radius-lg);
      margin-bottom: 30px;
      position: relative;
      overflow: hidden;
    }

    .badge-sociax {
      display: inline-block;
      padding: 6px 14px;
      background: var(--sociax-accent);
      color: #ffffff;
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      border-radius: 999px;
      margin-bottom: 16px;
    }



.sociax-public-nav {
  width: min(1080px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.sociax-public-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: .86rem;
}

body.workspace-active .sociax-public-nav {
  display: none;
}
