/* StreamSuites Creator — Studio-first typography and presentation layer. */

@font-face {
  font-family: "Tektur";
  src: url("/assets/fonts/Tektur-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/assets/fonts/Geist-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/assets/fonts/Geist-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/assets/fonts/Geist-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/assets/fonts/Geist-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/assets/fonts/Geist-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("/assets/fonts/Geist-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/mono/IBMPlexMono-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/mono/IBMPlexMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/mono/IBMPlexMono-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/mono/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/mono/IBMPlexMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ss-font-display: "Tektur", "Geist Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --ss-font-ui: "Geist Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --ss-font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, Menlo, Monaco, monospace;
  --ss-weight-body: 400;
  --ss-weight-ui-medium: 500;
  --ss-weight-ui-semibold: 600;
  --ss-weight-ui-bold: 700;
  --ss-weight-display-medium: 500;
  --ss-weight-display-semibold: 600;
  --ss-weight-display-bold: 700;
  --ss-weight-mono-regular: 400;
  --ss-weight-mono-medium: 500;
  --ss-weight-mono-semibold: 600;
  --ss-family-violet: #9a82ff;
  --ss-family-violet-soft: rgba(154, 130, 255, 0.12);
  --creator-font: var(--ss-font-ui);
  --creator-heading: var(--ss-font-display);
  --creator-mono-font: var(--ss-font-mono);
  --system-mono-font: var(--ss-font-mono);
  --creator-btn-letter-spacing: 0.045em;
}

html {
  font-synthesis: none;
}

body,
button,
input,
select,
textarea,
.creator-app,
.creator-app .ss-panel-body,
.creator-app .card,
.creator-app .ss-btn,
.creator-app .creator-button {
  font-family: var(--ss-font-ui);
}

body {
  font-weight: var(--ss-weight-body);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ss-font-ui);
  font-weight: var(--ss-weight-ui-semibold);
  letter-spacing: -0.01em;
}

.creator-app :is(h1, h2, h3, h4, h5, h6),
.creator-auth-page :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ss-font-ui);
  font-weight: var(--ss-weight-ui-semibold);
  letter-spacing: -0.01em;
}

.creator-title,
.creator-topbar-page-title,
.ss-title,
.section-header h2,
.auth-title,
.ss-404-title,
.creator-section > .section-header h2,
.creator-hero h3,
.empty-state h2,
.empty-state h3 {
  font-family: var(--ss-font-display);
  font-weight: var(--ss-weight-display-semibold);
  font-variation-settings: "wdth" 96;
  letter-spacing: -0.015em;
}

#app-nav .creator-title {
  font-family: "Tektur", "Geist Sans", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: var(--ss-weight-display-semibold);
  font-stretch: 96%;
  font-variation-settings: "wdth" 96, "wght" 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-rendering: optimizeLegibility;
}

#app-nav .creator-dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: fit-content;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 2px 6px;
  box-sizing: border-box;
  line-height: 1;
}

#app-nav .creator-dashboard-badge-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ss-font-mono);
  font-size: 0.53rem;
  font-weight: var(--ss-weight-mono-medium);
  letter-spacing: 0.075em;
  line-height: 1;
  white-space: nowrap;
}

html:not(.ss-sidebar-collapsed) body:not(.ss-sidebar-collapsed) #app-nav .ss-sidebar-brand {
  padding: 12px 14px 13px;
}

html:not(.ss-sidebar-collapsed) body:not(.ss-sidebar-collapsed) #app-nav .ss-sidebar-brand .header-left {
  width: 100%;
  min-width: 0;
}

html:not(.ss-sidebar-collapsed) body:not(.ss-sidebar-collapsed) #app-nav .ss-sidebar-brand .header-left a {
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

html:not(.ss-sidebar-collapsed) body:not(.ss-sidebar-collapsed) #app-nav .ss-sidebar-brand .creator-logo-img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-self: auto;
  object-fit: contain;
}

html:not(.ss-sidebar-collapsed) body:not(.ss-sidebar-collapsed) #app-nav .ss-sidebar-brand .creator-brand-text {
  min-width: 0;
  gap: 4px;
}

.creator-topbar-page-title {
  letter-spacing: 0;
}

.section-kicker,
.creator-nav-title,
.creator-nav-label,
.dashboard-badge,
.status-pill,
.creator-notifications-dropdown-count,
.creator-footer-version,
.creator-footer-status,
.stat-label,
.platform-metrics,
.creator-overview-stats-updated,
code,
pre,
.mono {
  font-family: var(--ss-font-mono);
}

.section-kicker,
.creator-nav-title,
.creator-nav-label,
.dashboard-badge,
.status-pill {
  font-weight: var(--ss-weight-mono-medium);
  letter-spacing: 0.075em;
}

.creator-button,
.ss-btn,
.creator-nav-main a,
.creator-nav-group a,
.creator-nav-footer a,
.creator-account-item,
.creator-account-button {
  font-family: var(--ss-font-ui);
  font-weight: var(--ss-weight-ui-semibold);
  letter-spacing: 0.035em;
  text-transform: none;
}

.creator-nav-title,
.creator-nav-label,
.dashboard-badge,
.status-pill,
.section-kicker {
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--ss-font-mono);
  font-weight: var(--ss-weight-mono-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.creator-hero,
.card.highlight,
.ss-panel.highlight {
  position: relative;
  isolation: isolate;
}

.creator-hero::before,
.card.highlight::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, var(--ss-family-violet-soft), transparent 42%);
  content: "";
  opacity: 0.62;
  pointer-events: none;
}

.creator-section,
.card,
.ss-panel,
.creator-dialog-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card:hover,
.card:focus-within {
  border-color: rgba(190, 160, 242, 0.3);
  box-shadow: var(--creator-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.creator-app :is(a, button, input, select, textarea):focus-visible,
.creator-auth-page :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--creator-accent-strong);
  outline-offset: 3px;
}

.creator-app table {
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.creator-app thead th {
  color: var(--creator-muted);
  font-family: var(--ss-font-mono);
  font-size: 0.68rem;
  font-weight: var(--ss-weight-mono-semibold);
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.creator-app tbody tr {
  transition: background-color 140ms ease;
}

.creator-app tbody tr:hover {
  background: rgba(154, 130, 255, 0.045);
}

.creator-app :is(input, select, textarea) {
  font-weight: var(--ss-weight-body);
  letter-spacing: 0;
}

.creator-app :is(label, legend) {
  font-family: var(--ss-font-ui);
  font-weight: var(--ss-weight-ui-medium);
  letter-spacing: 0.02em;
}

.creator-auth-page .auth-panel,
.creator-auth-page .glass-card {
  border-color: rgba(212, 224, 244, 0.17);
  background:
    radial-gradient(circle at 85% 0%, rgba(154, 130, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(16, 23, 34, 0.96), rgba(7, 10, 16, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .creator-title,
  .creator-topbar-page-title {
    font-variation-settings: "wdth" 92;
  }

  .creator-app thead th {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creator-section,
  .card,
  .ss-panel,
  .creator-dialog-card,
  .creator-app * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
