/* Custom styling for console-graph documentation */

:root {
  --md-primary-fg-color: #0d9488; /* Teal 600 */
  --md-primary-fg-color--dark: #0f766e; /* Teal 700 */
  --md-primary-bg-color: #ffffff;
  
  --md-accent-fg-color: #06b6d4; /* Cyan 500 */
  --md-accent-fg-color--transparent: rgba(6, 182, 212, 0.1);
  
  /* Better light mode color definitions */
  --md-default-bg-color: #f8fafc;             /* Softer white-blue background */
  --md-default-bg-color--light: #ffffff;      /* Stark white for containers/cards */
  --md-code-bg-color: #f1f5f9;                /* Clean gray background for code blocks */
  --md-default-fg-color: #0f172a;             /* Dark charcoal main text */
  --md-default-fg-color--light: #475569;      /* Slate secondary text */
  --md-default-fg-color--lighter: #cbd5e1;    /* Light borders */
  
  /* Layout custom shadows and borders */
  --custom-border-radius: 10px;
  --custom-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  --custom-glow: 0 0 20px rgba(13, 148, 136, 0.05);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0d9488;
  --md-primary-fg-color--dark: #14b8a6;
  --md-accent-fg-color: #22d3ee;
  
  /* Premium deep dark theme colors */
  --md-default-bg-color: #0d111a;             /* Rich deep dark-blue/slate background */
  --md-default-bg-color--light: #161b26;      /* Slightly lighter containers and cards */
  --md-code-bg-color: #090d16;                /* Darker code block backing */
  --md-default-fg-color: #f1f5f9;             /* Crisp white-slate text */
  --md-default-fg-color--light: #94a3b8;      /* Slate secondary text */
  --md-default-fg-color--lighter: #1e293b;    /* Border lines and grid rules */
  
  --custom-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  --custom-glow: 0 0 25px rgba(13, 148, 136, 0.18);
}

/* Base transitions */
html {
  scroll-behavior: smooth;
}

/* Beautiful fonts & text gradients */
.gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Styled landing banner container */
.md-content img[alt="console-graph banner"] {
  border-radius: 12px;
  box-shadow: var(--custom-shadow), var(--custom-glow);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1.5em;
  margin-bottom: 2em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.md-content img[alt="console-graph banner"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--custom-shadow), 0 0 30px rgba(13, 148, 136, 0.35);
}

/* Markdown tables enhanced */
.md-typeset table:not([class]) {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--custom-border-radius);
  overflow: hidden;
  box-shadow: var(--custom-shadow);
  width: 100%;
  margin-bottom: 2em;
}

.md-typeset th {
  background-color: rgba(13, 148, 136, 0.08);
  font-weight: 600;
  border-bottom: 2px solid rgba(13, 148, 136, 0.15) !important;
  color: var(--md-primary-fg-color) !important;
}

.md-typeset tr:last-child td {
  border-bottom: none;
}

.md-typeset td {
  border-bottom: 1px solid rgba(13, 148, 136, 0.08) !important;
  transition: background-color 0.2s ease;
}

.md-typeset tr:hover td {
  background-color: rgba(6, 182, 212, 0.04);
}

/* Enhanced Code Blocks & Copy Button */
.md-typeset pre {
  border-radius: 12px !important;
  border: 1px solid rgba(13, 148, 136, 0.15);
  box-shadow: var(--custom-shadow);
}

[data-md-color-scheme="slate"] .md-typeset pre {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.md-typeset .highlight {
  border-radius: 12px !important;
}

/* Glassmorphism navigation effects */
.md-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.85) !important;
  color: #0f172a !important;
  border-bottom: 1px solid rgba(13, 148, 136, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.md-header__title, .md-header__button {
  color: #0f172a !important;
}

.md-tabs {
  background-color: rgba(248, 250, 252, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.06);
}

.md-tabs__link {
  color: #475569 !important;
}

.md-tabs__link--active {
  color: #0d9488 !important;
  font-weight: 600 !important;
}

[data-md-color-scheme="slate"] .md-header {
  background-color: rgba(13, 17, 26, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-header__title, 
[data-md-color-scheme="slate"] .md-header__button {
  color: #f1f5f9 !important;
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: rgba(13, 17, 26, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

[data-md-color-scheme="slate"] .md-tabs__link {
  color: #94a3b8 !important;
}

[data-md-color-scheme="slate"] .md-tabs__link--active {
  color: #22d3ee !important;
}

/* Slick Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

[data-md-color-scheme="slate"] ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.6);
}

/* Enhancing Admonitions (Note, Warning, etc) */
.md-typeset .admonition {
  border-radius: var(--custom-border-radius);
  border-left-width: 4px;
  box-shadow: var(--custom-shadow);
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-md-color-scheme="slate"] .feature-card {
  background: rgba(22, 27, 38, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.08);
}

[data-md-color-scheme="slate"] .feature-card:hover {
  border-color: #22d3ee;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
}

.feature-card h3 {
  margin-top: 0 !important;
  color: var(--md-primary-fg-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card p {
  margin-bottom: 0 !important;
  font-size: 0.9em;
  color: #475569; /* Dark slate text in light mode */
}

[data-md-color-scheme="slate"] .feature-card p {
  color: #94a3b8; /* Lighter text in dark mode */
}
