/* DAON Documentation Site - MkDocs Material Inspired */

:root {
  /* Colors - DAON Brand (teal as accent only) */
  --md-primary-color: #5DD5D5;
  --md-primary-light: #7DE8E8; 
  --md-primary-dark: #2BA7A7;
  --md-accent-color: #5DD5D5;
  
  /* Text colors */
  --md-text-color: #f1f5f9;
  --md-text-color-light: #e2e8f0; 
  --md-text-color-lighter: #94a3b8;
  
  /* Background colors - neutral grays */
  --md-default-bg-color: #0a0f1c;
  --md-default-bg-color--light: #111827;
  --md-default-bg-color--lighter: #1f2937;
  --md-default-bg-color--lightest: #374151;
  
  /* Surface colors */
  --md-surface-color: #111827;
  --md-surface-color--light: #1f2937;
  
  /* Border colors */
  --md-border-color: #374151;
  --md-border-color--light: #4b5563;
  
  /* Shadow */
  --md-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.4), 0 0 0.05rem rgba(0, 0, 0, 0.3);
  --md-shadow-hover: 0 0.4rem 1rem rgba(0, 0, 0, 0.5), 0 0 0.1rem rgba(0, 0, 0, 0.4);
  
  /* Typography - Fun modern fonts */
  --md-text-font: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --md-code-font: 'Fira Code', 'JetBrains Mono', SFMono-Regular, Consolas, Monaco, monospace;
  
  /* Spacing */
  --md-spacing: 1rem;
  --md-spacing-small: 0.5rem;
  --md-spacing-large: 2rem;
  
  /* Border radius */
  --md-border-radius: 0.1rem;
  --md-border-radius-large: 0.3rem;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--md-text-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--md-text-color);
  background: var(--md-default-bg-color);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.md-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
.md-header {
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.3), 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 2.4rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.md-header__inner {
  display: flex;
  align-items: center;
  padding: 0.5rem var(--md-spacing);
  height: 100%;
}

/* Hide any leftover toggle elements */
.md-toggle {
  display: none !important;
}

/* Logo and title */
.md-header__title {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--md-text-color);
  margin: 0 var(--md-spacing);
  display: flex;
  align-items: center;
}

.md-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  height: 2rem;
  width: 2rem;
}

.md-logo svg {
  height: 100%;
  width: 100%;
  display: block;
}

.md-header__topic {
  font-size: 0.875rem;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 0.5rem;
}

/* Navigation */
.md-tabs {
  background: var(--md-default-bg-color--light);
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(55, 65, 81, 0.3);
}

.md-tabs::-webkit-scrollbar {
  display: none;
}

.md-tabs__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.md-tabs__item {
  height: 2.4rem;
}

.md-tabs__link {
  display: block;
  padding: 0.7rem var(--md-spacing);
  color: var(--md-text-color-lighter);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.125s;
  overflow: hidden;
}

.md-tabs__link:hover {
  color: var(--md-primary-color);
}

.md-tabs__link--active {
  color: var(--md-text-color);
  background: rgba(55, 65, 81, 0.3);
}

/* Buttons */
.md-button {
  display: inline-block;
  padding: 0.625em 2em;
  border: none;
  border-radius: var(--md-border-radius);
  background: var(--md-primary-color);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 0.125s;
  outline: none;
}

.md-button:hover {
  background: var(--md-primary-light);
  transform: translateY(-0.05rem);
  box-shadow: var(--md-shadow-hover);
}

.md-button--primary {
  background: var(--md-primary-color);
  color: #0a0f1c;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(93, 213, 213, 0.3);
}

.md-button--primary:hover {
  background: var(--md-primary-light);
  color: #0a0f1c;
  box-shadow: 0 6px 16px rgba(93, 213, 213, 0.4);
}

.md-button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 0.1rem solid rgba(255, 255, 255, 0.3);
}

.md-button--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero section buttons */
.md-button--large {
  padding: 0.875em 2.5em;
  font-size: 0.8rem;
}

/* Main content */
.md-main {
  flex: 1;
  display: flex;
  width: 100%;
  position: relative;
  z-index: 1;
}

.md-main__inner {
  display: flex;
  flex: 1;
  max-width: 100%;
  margin-top: 0;
}

.md-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 0;
  max-width: 100%;
}

.md-content__inner {
  padding: 3rem 2rem;
  margin: 0 auto;
  max-width: 70rem;
  position: relative;
}

/* Hero section */
.md-hero {
  background: linear-gradient(
    135deg,
    #1f2937 0%,
    #111827 25%,
    #0f172a 50%,
    #0a0f1c 75%,
    #000000 100%
  );
  color: #ffffff;
  overflow: hidden;
  position: relative;
}



.md-hero__inner {
  padding: 4rem var(--md-spacing);
  text-align: center;
  margin: 0 auto;
  max-width: 61rem;
  position: relative;
  z-index: 1;
}

.md-hero__title {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.3;
  margin: 0 auto var(--md-spacing-large) auto;
  max-width: 48rem;
  color: #ffffff;
}

.md-hero__description {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto var(--md-spacing-large) auto;
  max-width: 40rem;
  opacity: 0.8;
}

.md-hero__actions {
  display: flex;
  gap: var(--md-spacing);
  justify-content: center;
  flex-wrap: wrap;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--md-text-color);
  font-weight: 300;
  line-height: 1.25;
  margin: 1.25em 0 0.5em 0;
}

h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

h2 {
  font-size: 1.5625rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

h3 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

h5, h6 {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--md-text-color-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Header permalinks */
h1, h2, h3, h4, h5, h6 {
  position: relative;
}

h1:hover .header-link,
h2:hover .header-link,
h3:hover .header-link,
h4:hover .header-link,
h5:hover .header-link,
h6:hover .header-link {
  opacity: 1;
}

.header-link,
.header-link:link,
.header-link:visited {
  margin-left: 0.5rem;
  opacity: 0;
  transition: all 0.2s ease;
  color: var(--md-text-color-lighter) !important;
  text-decoration: none !important;
  font-weight: normal;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 4px;
  background: transparent;
  border: none !important;
}

.header-link:hover,
.header-link:active {
  color: var(--md-primary-color) !important;
  text-decoration: none !important;
  background: rgba(93, 213, 213, 0.1);
  transform: scale(1.1);
}

.header-link i {
  width: 16px;
  height: 16px;
}

p {
  margin: 1em 0;
  line-height: 1.6;
}

/* First element margin reset */
.md-content__inner > :first-child {
  margin-top: 0;
}

/* Links - Override ALL blue link defaults aggressively */
a,
a:link,
a:visited,
article a,
article a:link,
article a:visited,
.md-content__inner a,
.md-content__inner a:link,
.md-content__inner a:visited,
.doc-sections a,
.doc-sections a:link,
.doc-sections a:visited,
ul a,
ul a:link,
ul a:visited,
li a,
li a:link,
li a:visited,
div a,
div a:link,
div a:visited {
  color: var(--md-primary-color) !important;
  text-decoration: none !important;
  transition: color 0.125s;
}

a:hover,
a:active,
article a:hover,
article a:active,
.md-content__inner a:hover,
.md-content__inner a:active,
.doc-sections a:hover,
.doc-sections a:active,
ul a:hover,
ul a:active,
li a:hover,
li a:active,
div a:hover,
div a:active {
  color: var(--md-primary-light) !important;
  text-decoration: underline !important;
}

/* Special styling for content links */
.md-content__inner a,
.doc-sections a,
ul li a {
  border-bottom: 1px solid rgba(93, 213, 213, 0.3) !important;
  transition: all 0.125s;
}

.md-content__inner a:hover,
.doc-sections a:hover,
ul li a:hover {
  border-bottom-color: var(--md-primary-light) !important;
}

/* Section backgrounds for visual separation */
.md-content__inner h2:nth-of-type(even) {
  background: linear-gradient(135deg, 
    rgba(31, 41, 55, 0.3) 0%, 
    rgba(17, 24, 39, 0.2) 100%
  );
  margin: 3rem -2rem 2rem -2rem;
  padding: 2rem 2rem 0.5rem 2rem;
  border-radius: 12px;
  position: relative;
}

.md-content__inner h2:nth-of-type(even)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--md-primary-color) 50%, 
    transparent 100%
  );
}

/* Feature grid */
.md-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3rem;
  margin: 3rem 0;
  max-width: 80rem;
}

/* Feature cards */
.md-feature {
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(55, 65, 81, 0.4);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.md-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--md-primary-light) 0%, 
    var(--md-primary-color) 50%, 
    var(--md-primary-dark) 100%
  );
  transition: opacity 0.3s ease;
  opacity: 0;
}

.md-feature:hover {
  border-color: rgba(93, 213, 213, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-8px);
  background: rgba(17, 24, 39, 0.95);
}

.md-feature:hover::before {
  opacity: 1;
}

.md-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: rgba(55, 65, 81, 0.5);
  font-size: 1.4rem;
  margin-bottom: var(--md-spacing);
  color: #d1d5db;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.4);
}

.md-feature:hover .md-feature__icon {
  transform: scale(1.1);
  background: rgba(93, 213, 213, 0.15);
  color: var(--md-primary-color);
  border-color: rgba(93, 213, 213, 0.3);
}

.md-feature__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--md-spacing-small) 0;
  color: var(--md-text-color);
}

.md-feature__description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--md-text-color-light);
  margin: 0 0 var(--md-spacing) 0;
}

.md-feature__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--md-spacing) 0;
  font-size: 0.9rem;
}

.md-feature__list li {
  display: flex;
  align-items: flex-start;
  margin: 0.25rem 0;
  color: var(--md-text-color-light);
  line-height: 1.5;
}

.md-feature__list li::before {
  content: "✓";
  color: var(--md-primary-color);
  font-weight: 700;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.md-feature__link {
  display: inline-flex;
  align-items: center;
  color: var(--md-primary-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.md-feature__link:hover {
  color: var(--md-primary-dark);
}

/* Call-to-action footer */
.md-cta-footer {
  background: linear-gradient(
    135deg,
    #5DD5D5 0%,
    #3FB8AF 50%,
    #173F5F 100%
  );
  color: #ffffff;
  padding: 4rem 0;
  margin: 4rem 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.md-cta-content {
  flex: 1;
  max-width: 60%;
  padding-left: 4rem;
}

.md-cta-content h2 {
  font-size: 2rem;
  font-weight: 300;
  margin: 0 0 1rem 0;
  color: #ffffff;
}

.md-cta-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.md-cta-action {
  padding-right: 4rem;
}

.md-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 1.2rem 2.5rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.md-cta-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.md-cta-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.md-cta-link:hover .md-cta-arrow {
  transform: translateX(4px);
}

/* Footer */
.md-footer {
  background: linear-gradient(135deg, 
    rgba(10, 15, 28, 0.9) 0%, 
    rgba(17, 24, 39, 0.8) 100%
  );
  backdrop-filter: blur(10px);
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.md-footer-meta {
  background: linear-gradient(135deg, 
    rgba(17, 24, 39, 0.9) 0%, 
    rgba(10, 15, 28, 0.8) 100%
  );
  border-top: 1px solid rgba(55, 65, 81, 0.3);
  backdrop-filter: blur(10px);
}

.md-footer-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--md-spacing);
  overflow: auto;
}

.md-footer-copyright {
  color: var(--md-text-color-lighter);
  font-size: 0.64rem;
  margin: auto;
  padding: 0.4rem 0;
  width: 100%;
  text-align: center;
}

/* Code blocks */
code {
  font-family: var(--md-code-font);
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #24292e;
}

pre {
  font-family: var(--md-code-font);
  background: #2d3748;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid #4a5568;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Code syntax highlighting */
pre .hljs-comment,
pre .hljs-quote {
  color: #718096;
  font-style: italic;
}

pre .hljs-keyword,
pre .hljs-selector-tag,
pre .hljs-literal {
  color: #f687b3;
}

pre .hljs-string,
pre .hljs-doctag {
  color: #68d391;
}

pre .hljs-title,
pre .hljs-section,
pre .hljs-selector-id {
  color: #63b3ed;
}

pre .hljs-subst {
  color: #e2e8f0;
}

pre .hljs-type,
pre .hljs-class .hljs-title {
  color: #fbb6ce;
}

pre .hljs-tag,
pre .hljs-name,
pre .hljs-attribute {
  color: #fc8181;
}

pre .hljs-regexp,
pre .hljs-link {
  color: #81e6d9;
}

pre .hljs-symbol,
pre .hljs-bullet {
  color: #b794f6;
}

pre .hljs-built_in,
pre .hljs-builtin-name {
  color: #f6ad55;
}

pre .hljs-meta {
  color: #9ca3af;
}

pre .hljs-deletion {
  background: #fed7d7;
  color: #c53030;
}

pre .hljs-addition {
  background: #c6f6d5;
  color: #2f855a;
}

pre .hljs-emphasis {
  font-style: italic;
}

pre .hljs-strong {
  font-weight: bold;
}

/* Language label for code blocks */
pre[class*="language-"]::before {
  content: attr(class);
  position: absolute;
  top: 0;
  right: 0;
  background: #4a5568;
  color: #a0aec0;
  padding: 0.25rem 0.75rem;
  border-radius: 0 8px 0 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Specific language styling */
pre[class*="language-javascript"]::before { content: "JS"; background: #f7df1e; color: #000; }
pre[class*="language-typescript"]::before { content: "TS"; background: #3178c6; color: #fff; }
pre[class*="language-python"]::before { content: "PY"; background: #3776ab; color: #fff; }
pre[class*="language-ruby"]::before { content: "RB"; background: #cc342d; color: #fff; }
pre[class*="language-php"]::before { content: "PHP"; background: #777bb4; color: #fff; }
pre[class*="language-bash"]::before { content: "BASH"; background: #4eaa25; color: #fff; }
pre[class*="language-json"]::before { content: "JSON"; background: #000; color: #fff; }
pre[class*="language-html"]::before { content: "HTML"; background: #e34f26; color: #fff; }
pre[class*="language-css"]::before { content: "CSS"; background: #1572b6; color: #fff; }

/* Copy button for code blocks */
.code-block-wrapper {
  position: relative;
}

.code-copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #e2e8f0;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.code-copy-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.code-copy-button.copied {
  background: #48bb78;
  border-color: #48bb78;
  color: white;
}

/* Inline code in different contexts */
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
  background: rgba(63, 184, 175, 0.1);
  border: 1px solid rgba(63, 184, 175, 0.2);
  color: var(--md-primary-dark);
}

.md-feature code {
  background: rgba(93, 213, 213, 0.1);
  border: 1px solid rgba(93, 213, 213, 0.2);
  color: var(--md-primary-dark);
}

/* Blockquotes */
blockquote {
  border-left: 0.2rem solid var(--md-primary-color);
  padding-left: var(--md-spacing);
  margin: var(--md-spacing) 0;
  font-style: italic;
  color: var(--md-text-color-light);
  background: var(--md-default-bg-color--light);
  padding: var(--md-spacing);
  border-radius: var(--md-border-radius);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--md-spacing) 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 0.05rem solid var(--md-border-color);
}

th {
  background: var(--md-default-bg-color--light);
  font-weight: 700;
}

/* Platform grid and doc sections styling */
.platform-grid,
.doc-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.platform-category,
.doc-category {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(55, 65, 81, 0.4);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.platform-category h3,
.doc-category h3 {
  color: var(--md-text-color);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.platform-category ul,
.doc-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.platform-category li,
.doc-category li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
}

.platform-category li::before,
.doc-category li::before {
  content: "•";
  color: var(--md-primary-color);
  position: absolute;
  left: 0;
}

/* Responsive design */
@media screen and (max-width: 44.9375em) {
  .md-header__title {
    flex: none;
    margin: 0;
  }
  
  .md-hero__title {
    font-size: 1.8rem;
  }
  
  .md-hero__inner {
    padding: 2rem var(--md-spacing);
  }
  
  .md-grid {
    grid-template-columns: 1fr;
    gap: var(--md-spacing);
  }
  
  .md-feature {
    padding: var(--md-spacing);
  }
  
  .md-hero__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .md-hero__actions .md-button {
    width: 100%;
    max-width: 12rem;
  }
  
  .platform-grid,
  .doc-sections {
    grid-template-columns: 1fr;
  }
}

/* AGGRESSIVE LINK COLOR OVERRIDE - MUST BE LAST */
* a,
* a:link, 
* a:visited,
* a:any-link {
  color: #5DD5D5 !important;
}

* a:hover,
* a:active {
  color: #7DE8E8 !important;
}