/* Dark Rust Theme for Slidev */

:root {
    /* Rust Colors */
    --rust-orange: #ce422b;
    --rust-dark: #1a1a1a;
    --rust-light: #f5f5f5;
    --vibe-orange: #f74c00;
    --vibe-lorange: #f97316;
    --vibe-dark: #8b2500;
    --vibe-light: #ffa366;

    /* Theme Colors */
    --color-background: #0f0f0f;
    --color-text: #e8e8e8;
    --color-text-secondary: #a0a0a0;
    --color-accent: var(--rust-orange);
    --color-accent-dark: #a03620;
}

.lvibe,
.lvibe strong {
    color: var(--vibe-lorange);
}
.ulvibe,
.ulvibe strong {
    color: var(--vibe-light);
}
/* Base Styles */
html {
    font-family: "Inter", sans-serif;
    background: var(--color-background);
    color: var(--color-text);
}

body {
    background: var(--color-background);
    color: var(--color-text);
}

/* Slide Background */
.slidev-layout {
    background: linear-gradient(135deg, var(--rust-dark) 0%, #1f1f1f 100%);
    color: var(--color-text);
}

/* Headers */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0.5em 0;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.3;
}

/* Accent Color for Highlights */
.accent {
    color: var(--rust-orange);
}

em {
    color: var(--rust-orange);
    font-style: italic;
    font-weight: 500;
}

strong {
    font-weight: 700;
    color: var(--color-text);
}

/* Lists */
li {
    margin: 0.5em 0;
    color: var(--color-text);
}

li::marker {
    color: var(--rust-orange);
    font-weight: bold;
}

/* Links */
a {
    color: var(--rust-orange);
    text-decoration: none;
    border-bottom: 2px solid var(--rust-orange);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--rust-light);
    background: var(--rust-orange);
    padding: 0 4px;
    border-bottom: 2px solid var(--rust-light);
}

/* Code */
pre {
    background: #000000 !important;
    border: 1px solid var(--rust-orange);
    border-radius: 8px;
    padding: 16px;
    margin: 1em 0;
}

code {
    font-family: "Fira Code", monospace;
    font-size: 0.9em;
    color: #e8e8e8;
}

/* Inline Code */
:not(pre) > code {
    background: rgba(206, 66, 43, 0.1);
    color: var(--rust-orange);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Blockquote */
blockquote {
    border-left: 4px solid var(--rust-orange);
    padding-left: 1.5em;
    margin: 1.5em 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Title Slide */
.slidev-layout.title-slide {
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        var(--rust-dark) 50%,
        rgba(206, 66, 43, 0.1) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slidev-layout.title-slide h1 {
    color: var(--rust-light);
    font-size: 4rem;
    margin-bottom: 0.3em;
    text-shadow: 0 2px 10px rgba(206, 66, 43, 0.3);
}

.slidev-layout.title-slide h2 {
    color: var(--rust-orange);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2em;
}

.slidev-layout.title-slide p {
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    margin: 0.5em 0;
}

/* Section Slide */
.slidev-layout.section {
    background: linear-gradient(
        135deg,
        var(--rust-orange) 0%,
        var(--rust-dark) 100%
    );
}

.slidev-layout.section h1 {
    color: var(--rust-light);
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Emphasis Boxes */
.box-highlight {
    background: rgba(206, 66, 43, 0.1);
    border-left: 4px solid var(--rust-orange);
    padding: 1.5em;
    border-radius: 4px;
    margin: 1.5em 0;
}

.box-highlight strong {
    color: var(--rust-orange);
}

/* Button-like Elements */
.btn {
    display: inline-block;
    background: var(--rust-orange);
    color: var(--rust-light);
    padding: 0.75em 1.5em;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--rust-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(206, 66, 43, 0.3);
}

/* Dividers */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--rust-orange),
        transparent
    );
    margin: 2em 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

table th {
    background: rgba(206, 66, 43, 0.2);
    color: var(--rust-orange);
    padding: 0.75em;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--rust-orange);
}

table td {
    padding: 0.75em;
    border-bottom: 1px solid rgba(206, 66, 43, 0.1);
}

table tr:hover {
    background: rgba(206, 66, 43, 0.05);
}

/* Slide Number & Navigation */
.slidev-page-number {
    color: var(--rust-orange);
    font-weight: 600;
}

/* Footnote */
.footnote {
    color: var(--color-text-secondary);
    font-size: 0.85em;
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid rgba(206, 66, 43, 0.2);
}

/* Transitions */
.slidev-enter-active,
.slidev-leave-active {
    transition: opacity 0.5s ease;
}

.slidev-enter-from,
.slidev-leave-to {
    opacity: 0;
}

.slidev-layout.two-columns.w-full.h-full.grid {
    column-gap: 1.5rem;
}

.meters-slide {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-family: monospace;
    font-size: 0.85rem;
    opacity: 0.7;
    background: var(--slidev-theme-background);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    border: 1px solid rgba(128, 128, 128, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    code {
        font-size: 0.8em;
    }
}
