/* Linear/Sentry-inspired styling for fscm docs */

:root {
  /* Custom color palette - Linear/Sentry inspired */
  --md-primary-fg-color: #5E6AD2;
  --md-primary-fg-color--light: #7C85E0;
  --md-primary-fg-color--dark: #4850A8;
  --md-accent-fg-color: #5E6AD2;
}

[data-md-color-scheme="slate"] {
  /* Dark mode - the primary mode for Linear/Sentry feel */
  --md-default-bg-color: #0D0D0D;
  --md-default-fg-color: rgba(255, 255, 255, 0.87);
  --md-default-fg-color--light: rgba(255, 255, 255, 0.54);
  --md-default-fg-color--lighter: rgba(255, 255, 255, 0.32);

  /* Code blocks */
  --md-code-bg-color: #1A1A1A;
  --md-code-fg-color: #E4E4E7;

  /* Sidebar */
  --md-sidebar-bg-color: #0D0D0D;

  /* Footer */
  --md-footer-bg-color: #0D0D0D;
  --md-footer-bg-color--dark: #0A0A0A;
}

/* Typography refinements */
.md-typeset {
  font-size: 0.72rem !important;
  line-height: 1.65;
}

.md-typeset h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.md-typeset h2 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset h3 {
  font-weight: 600;
}

/* Code styling - cleaner look */
.md-typeset code {
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

.md-typeset pre {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset pre {
  background-color: #141414;
}

/* Admonitions - cleaner, more subtle */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px;
  border: none;
  box-shadow: none;
  background-color: rgba(94, 106, 210, 0.08);
}

.md-typeset .admonition.note,
.md-typeset details.note {
  border-left: 3px solid var(--md-primary-fg-color);
}

.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-left: 3px solid #10B981;
  background-color: rgba(16, 185, 129, 0.08);
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-left: 3px solid #F59E0B;
  background-color: rgba(245, 158, 11, 0.08);
}

.md-typeset .admonition.danger,
.md-typeset details.danger {
  border-left: 3px solid #EF4444;
  background-color: rgba(239, 68, 68, 0.08);
}

/* Navigation - cleaner */
.md-nav__link {
  font-size: 0.7rem;
}

.md-nav__item--active > .md-nav__link {
  font-weight: 600;
  color: var(--md-primary-fg-color);
}

/* Header - more minimal */
.md-header {
  background-color: var(--md-default-bg-color);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] .md-header {
  background-color: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(8px);
}

/* Tables - cleaner */
.md-typeset table:not([class]) {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background-color: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  border-color: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
}

/* Tabs - Linear style */
.md-typeset .tabbed-labels > label {
  font-weight: 500;
  font-size: 0.7rem;
  border-radius: 6px 6px 0 0;
}

/* Search */
.md-search__form {
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.06);
}

/* Copy button */
.md-clipboard {
  border-radius: 4px;
}

/* Hero section for home page */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #5E6AD2 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1rem;
  color: var(--md-default-fg-color--light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero pre,
.hero code {
  text-align: left;
}

.hero > div.highlight {
  text-align: left !important;
  margin: 1.5rem 0 0 0 !important;
  width: 100%;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 3rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--md-primary-fg-color);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 0.95rem;
}

.feature-card p {
  color: var(--md-default-fg-color--light);
  margin-bottom: 0;
  font-size: 0.8rem;
}

/* Button styles */
.md-button {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
}

.md-button--primary {
  background-color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
}

.md-button--primary:hover {
  background-color: var(--md-primary-fg-color--dark);
}

/* API Reference styling */
.doc-heading {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.doc-signature {
  font-family: var(--md-code-font-family);
  background: var(--md-code-bg-color);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
