/* ========================================
   BOND DOCUMENTATION - FORENSIC RUNTIME STYLE
   Deep blue primary with cyan accent
   ======================================== */

/* ----------------------------------------
   TYPOGRAPHY - Crisp and professional
   ---------------------------------------- */
body {
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* ----------------------------------------
   COLOR PALETTE OVERRIDES
   Primary: Deep Blue (#1a237e)
   Accent: Cyan (#00bcd4)
   ---------------------------------------- */

/* Light mode */
[data-md-color-scheme="default"] {
    --md-primary-fg-color: #1a237e;
    --md-primary-fg-color--light: #3949ab;
    --md-primary-fg-color--dark: #0d1642;
    --md-accent-fg-color: #00bcd4;
    --md-accent-fg-color--transparent: #00bcd41a;
}

/* Dark mode */
[data-md-color-scheme="slate"] {
    --md-default-bg-color: #0a0a14;
    --md-default-bg-color--light: #12121a;
    --md-default-bg-color--lighter: #16161f;
    --md-default-bg-color--lightest: #2a2a3a;

    --md-default-fg-color: #f0f0f5;
    --md-default-fg-color--light: #8888a0;
    --md-default-fg-color--lighter: #8888a0;
    --md-default-fg-color--lightest: #2a2a3a;

    /* Cyan accent for forensic theme */
    --md-primary-fg-color: #00bcd4;
    --md-primary-fg-color--light: #00bcd433;
    --md-primary-fg-color--dark: #0097a7;
    --md-accent-fg-color: #00bcd4;
    --md-accent-fg-color--transparent: #00bcd41a;

    /* Code blocks */
    --md-code-bg-color: #12121a;
    --md-code-fg-color: #00bcd4;
    --md-code-hl-color: #00bcd426;

    /* Typeset */
    --md-typeset-color: #f0f0f5;
    --md-typeset-a-color: #00bcd4;

    /* Footer */
    --md-footer-bg-color: #0a0a14;
    --md-footer-bg-color--dark: #050508;
}

/* ----------------------------------------
   HEADER STYLING
   ---------------------------------------- */
[data-md-color-scheme="default"] .md-header {
    background-color: #fff;
    box-shadow: none;
    border-bottom: 1px solid #e5e7eb;
}

[data-md-color-scheme="default"] .md-tabs {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
}

[data-md-color-scheme="default"] .md-header__button,
[data-md-color-scheme="default"] .md-header__title,
[data-md-color-scheme="default"] .md-tabs__link {
    color: #0f172a;
}

[data-md-color-scheme="default"] .md-tabs__link--active {
    color: #1a237e;
    font-weight: 700;
}

[data-md-color-scheme="slate"] .md-header {
    background-color: #0a0a14;
    border-bottom: 1px solid #2a2a3a;
}

[data-md-color-scheme="slate"] .md-tabs {
    background-color: #0a0a14;
    border-bottom: 1px solid #2a2a3a;
}

[data-md-color-scheme="slate"] .md-tabs__link--active {
    color: #00bcd4;
    font-weight: 700;
}

[data-md-color-scheme="slate"] .md-nav__link--active {
    color: #00bcd4;
}

/* ----------------------------------------
   HERO TEXT (Landing page)
   ---------------------------------------- */
.hero-text {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(315deg, #1a237e 25%, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-md-color-scheme="slate"] .hero-text {
    background: -webkit-linear-gradient(135deg, #00bcd4 0%, #3949ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

[data-md-color-scheme="slate"] .hero-subtitle {
    color: #8888a0;
}

/* Install command - centered and compact */
.install-cmd {
    max-width: 280px;
    margin: 1.5rem auto;
}

.install-cmd pre {
    margin: 0;
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.md-button {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.6em 1.2em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.md-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.md-button--primary {
    background-color: #1a237e !important;
    border-color: #1a237e !important;
    color: white !important;
}

.md-button--primary:hover {
    background-color: #0d1642 !important;
    border-color: #0d1642 !important;
}

[data-md-color-scheme="slate"] .md-button--primary {
    background: linear-gradient(135deg, #00bcd4, #3949ab) !important;
    border-color: #00bcd4 !important;
    color: #0a0a14 !important;
}

[data-md-color-scheme="slate"] .md-button--primary:hover {
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.3);
}

[data-md-color-scheme="slate"] .md-button:not(.md-button--primary) {
    border-color: #2a2a3a;
    color: #f0f0f5;
}

[data-md-color-scheme="slate"] .md-button:not(.md-button--primary):hover {
    border-color: #00bcd4;
    background: rgba(0, 188, 212, 0.1);
}

/* ----------------------------------------
   ADMONITIONS
   ---------------------------------------- */
.md-typeset .admonition,
.md-typeset details {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: white;
    border-left-width: 4px;
}

[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
    background: var(--md-default-bg-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.md-typeset .admonition-title {
    font-weight: 600;
}

.md-typeset .admonition.note {
    border-left-color: #1a237e;
}

.md-typeset .admonition.tip,
.md-typeset .admonition.success {
    border-left-color: #00bcd4;
}

.md-typeset .admonition.warning {
    border-left-color: #f59e0b;
}

.md-typeset .admonition.danger {
    border-left-color: #ef4444;
}

/* ----------------------------------------
   CODE BLOCKS
   ---------------------------------------- */
.md-typeset pre {
    border-radius: 8px;
    border: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset pre > code {
    border-radius: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85em;
}

.md-typeset code {
    font-size: 0.85em;
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

/* ----------------------------------------
   GRID CARDS
   ---------------------------------------- */
.md-typeset .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.md-typeset .grid.cards > ul {
    display: contents;
    list-style: none;
    margin: 0;
    padding: 0;
}

.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li,
[data-md-color-scheme="slate"] .md-typeset .grid > .card {
    background: #16161f;
    border-color: #2a2a3a;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid > .card:hover {
    border-color: #1a237e;
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.12);
    transform: translateY(-2px);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:hover,
[data-md-color-scheme="slate"] .md-typeset .grid > .card:hover {
    border-color: #00bcd4;
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.15);
}

.md-typeset .grid.cards > ul > li > hr,
.md-typeset .grid > .card > hr {
    margin: 0.75rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li > hr {
    border-top-color: #2a2a3a;
}

.md-typeset .grid.cards > ul > li > :first-child,
.md-typeset .grid > .card > :first-child {
    margin-top: 0;
}

.md-typeset .grid.cards > ul > li > :last-child,
.md-typeset .grid > .card > :last-child {
    margin-bottom: 0;
}

/* Icon styling in cards */
.md-typeset .grid.cards .twemoji,
.md-typeset .grid .twemoji {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ----------------------------------------
   TABLES
   ---------------------------------------- */
.md-typeset table:not([class]) {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
    border-color: #2a2a3a;
}

.md-typeset table:not([class]) th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
    background: #16161f;
}

/* ----------------------------------------
   CONTENT TABS
   ---------------------------------------- */
.md-typeset .tabbed-labels > label {
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 4px 4px 0 0;
}

.md-typeset .tabbed-content {
    border-radius: 0 0 8px 8px;
}

/* ----------------------------------------
   NAVIGATION
   ---------------------------------------- */
.md-nav__link {
    font-size: 0.85rem;
}

/* ----------------------------------------
   MERMAID DIAGRAMS
   ---------------------------------------- */
.mermaid {
    background: transparent;
    margin: 1rem 0;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media screen and (max-width: 76.1875em) {
    .hero-text {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}
