/* Alopex DB Custom Styles for MkDocs Material */
/* Arctic Fox Theme - Silver & Deep Blue */

/* ===== Color Scheme Overrides ===== */
:root {
    /* Arctic color palette */
    --alopex-silver: #C0C5CE;
    --alopex-silver-light: #DFE1E8;
    --alopex-silver-dark: #A7ADBA;
    --alopex-deep-blue: #1E3A5F;
    --alopex-deep-blue-light: #2E5077;
    --alopex-ice-blue: #5FB4C9;
    --alopex-aurora: #7EC8E3;
    --alopex-frost: #B8D4E3;

    --md-primary-fg-color: var(--alopex-deep-blue);
    --md-primary-fg-color--light: var(--alopex-deep-blue-light);
    --md-primary-fg-color--dark: #152C4A;
    --md-accent-fg-color: var(--alopex-ice-blue);
}

[data-md-color-scheme="slate"] {
    --md-default-bg-color: #0B1929;
    --md-default-bg-color--light: #0F2137;
    --md-default-fg-color: #E8EEF2;
    --md-default-fg-color--light: #A0B4C4;
    --md-typeset-color: #E8EEF2;
    --md-code-bg-color: #0F2137;
    --md-code-fg-color: #E8EEF2;
}

[data-md-color-scheme="default"] {
    --md-default-bg-color: #F8FAFC;
    --md-default-bg-color--light: #FFFFFF;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 2rem 1rem 3rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    background: linear-gradient(135deg, var(--alopex-silver-light) 0%, var(--alopex-ice-blue) 50%, var(--alopex-aurora) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-md-color-scheme="default"] .hero-title {
    background: linear-gradient(135deg, var(--alopex-deep-blue) 0%, var(--alopex-deep-blue-light) 50%, var(--alopex-ice-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    color: var(--md-default-fg-color--light) !important;
    margin-bottom: 1.5rem !important;
}

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

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

.grid.cards > ul > li {
    background: var(--md-code-bg-color);
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.grid.cards > ul > li:hover {
    border-color: var(--alopex-ice-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(94, 180, 201, 0.15);
}

.grid.cards > ul > li > p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Icons in grid cards */
.grid.cards .lg {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.grid.cards .middle {
    vertical-align: middle;
}

/* ===== Code Blocks ===== */
.md-typeset pre > code {
    border-radius: 8px;
}

.md-typeset code {
    border-radius: 4px;
}

/* ===== Tables ===== */
.md-typeset table:not([class]) {
    border-radius: 8px;
    overflow: hidden;
}

.md-typeset table:not([class]) th {
    background: var(--alopex-deep-blue);
    color: white;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:nth-child(even) {
    background: var(--md-code-bg-color);
}

/* ===== Admonitions ===== */
.md-typeset .admonition,
.md-typeset details {
    border-radius: 8px;
}

/* ===== Buttons ===== */
.md-typeset .md-button {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.md-typeset .md-button:hover {
    transform: translateY(-2px);
}

.md-typeset .md-button--primary {
    background: linear-gradient(135deg, var(--alopex-deep-blue) 0%, var(--alopex-deep-blue-light) 100%);
    border-color: var(--alopex-deep-blue);
}

.md-typeset .md-button--primary:hover {
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.4);
}

/* ===== Navigation ===== */
.md-nav__link--active {
    color: var(--alopex-ice-blue) !important;
}

/* ===== Footer ===== */
.footer-tagline {
    text-align: center;
    padding: 2rem;
    color: var(--md-default-fg-color--light);
    font-size: 0.9rem;
}

/* ===== Mermaid Diagrams ===== */
.mermaid {
    background: transparent !important;
}

[data-md-color-scheme="slate"] .mermaid {
    --mermaid-font-family: var(--md-text-font-family);
}

/* ===== Responsive ===== */
@media screen and (max-width: 76.1875em) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-tagline {
        font-size: 1.25rem !important;
    }
}

@media screen and (max-width: 44.9375em) {
    .hero-title {
        font-size: 2rem !important;
    }

    .grid.cards {
        grid-template-columns: 1fr;
    }
}

/* ===== Tab Content ===== */
.md-typeset .tabbed-set {
    border-radius: 8px;
    overflow: hidden;
}

/* ===== Timeline (for roadmap) ===== */
.md-typeset .mermaid .timeline {
    max-width: 100%;
}

/* ===== Announcement Bar ===== */
.md-banner {
    background: linear-gradient(135deg, var(--alopex-deep-blue) 0%, var(--alopex-deep-blue-light) 100%);
}

.md-banner__inner {
    color: white;
}

/* ===== Search ===== */
.md-search__form {
    border-radius: 8px;
}

/* ===== Back to top ===== */
.md-top {
    border-radius: 8px;
    background: var(--alopex-deep-blue);
}

.md-top:hover {
    background: var(--alopex-deep-blue-light);
}

/* ===== Copy button ===== */
.md-clipboard {
    color: var(--md-default-fg-color--light);
}

.md-clipboard:hover {
    color: var(--alopex-ice-blue);
}

/* ===== Version Badge ===== */
.md-typeset .md-tag {
    background: var(--alopex-deep-blue);
    color: white;
}

/* ===== Arctic Fox Accent Elements ===== */
.md-header {
    background: linear-gradient(135deg, var(--alopex-deep-blue) 0%, #152C4A 100%);
}

/* Subtle aurora effect on hover for interactive elements */
a:hover {
    text-decoration-color: var(--alopex-ice-blue);
}

/* Code syntax - ice blue accents */
.md-typeset code {
    border: 1px solid rgba(94, 180, 201, 0.2);
}

[data-md-color-scheme="slate"] .md-typeset code {
    background: rgba(15, 33, 55, 0.8);
}
