/* Custom styles for beautiful slides - Maple Light Theme */

:root {
    --maple-bg: #fcfdf4;
    --maple-text: #475569;
    --maple-heading: #334155;
    --maple-primary: #64748b;
    --maple-secondary: #0891b2;
    --maple-accent-green: #059669;
    --maple-accent-yellow: #d97706;
    --maple-accent-red: #dc2626;
    --maple-code-bg: #f8fafc;
    --maple-code-text: #1e293b;
    --maple-card-bg: rgba(226, 232, 240, 0.4);
    --maple-border-color: rgba(148, 163, 184, 0.3);
    --maple-shadow: 0 8px 32px rgba(71, 85, 105, 0.2);
    --font-sans: "Source Sans Pro", Helvetica, sans-serif;
    --font-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* --- BASE STYLES --- */
.reveal {
    font-family: var(--font-sans);
    background-color: var(--maple-bg);
    color: var(--maple-text);
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    text-shadow: none;
    word-wrap: break-word;
    color: var(--maple-heading);
}

.reveal a {
    color: var(--maple-secondary);
    text-decoration: none;
    transition: color .15s ease;
}

.reveal a:hover {
    color: #0e7490; /* Darker blue on hover */
    text-shadow: none;
    border: none;
}

.reveal ul, .reveal ol {
    display: block;
    text-align: left;
    margin: 0.5em 0 0.5em 1.5em;
}

.reveal .slides section[data-background-gradient] {
    background-attachment: fixed;
}

/* --- CODE STYLES --- */
.reveal pre {
    display: block;
    position: relative;
    width: 90%;
    margin: 20px auto;
    text-align: left;
    font-size: 0.55em;
    font-family: var(--font-mono);
    line-height: 1.2em;
    word-wrap: break-word;
    box-shadow: var(--maple-shadow);
    border-radius: 5px;
    background-color: var(--maple-code-bg);
    border: 1px solid var(--maple-border-color);
}

.reveal code {
    font-family: var(--font-mono);
    text-transform: none;
    background-color: var(--maple-card-bg);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--maple-code-text);
}

.reveal pre code {
    background: var(--maple-code-bg);
    color: var(--maple-text);
    padding: 20px;
    border-radius: 5px;
    font-size: 1em;
}

/* Syntax highlighting */
.reveal pre code .hljs-comment, .reveal pre code .hljs-quote { color: #64748b; font-style: italic; }
.reveal pre code .hljs-keyword, .reveal pre code .hljs-selector-tag, .reveal pre code .hljs-built_in { color: #7c3aed; font-style: italic; }
.reveal pre code .hljs-string, .reveal pre code .hljs-attr { color: #15803d; }
.reveal pre code .hljs-number, .reveal pre code .hljs-literal { color: #65a30d; }
.reveal pre code .hljs-function, .reveal pre code .hljs-title { color: #0891b2; }
.reveal pre code .hljs-variable, .reveal pre code .hljs-property { color: #ca8a04; }
.reveal pre code .hljs-type { color: #ea580c; }
.reveal pre code .hljs-operator { color: #0891b2; }
.reveal pre code .hljs-tag { color: var(--maple-accent-red); }

/* --- UI & NAVIGATION --- */
.reveal .controls, .reveal .progress {
    color: var(--maple-primary);
}

.reveal .slide-number {
    color: var(--maple-primary);
    background-color: rgba(248, 250, 252, 0.9);
    padding: 5px;
    border: 1px solid var(--maple-border-color);
}

/* --- LAYOUT HELPERS --- */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

/* --- COMPONENT STYLES --- */

/* Base Card */
.card {
    background: var(--maple-card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    color: var(--maple-text);
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(226, 232, 240, 0.6);
}

.card h4 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: var(--maple-heading);
}

.card ul {
    margin: 0;
    padding-left: 20px;
}

.card li {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Accent Border Card */
.card-accent-border {
    border-left: 4px solid var(--maple-primary);
}
.card-accent-border.green { border-left-color: var(--maple-accent-green); }
.card-accent-border.yellow { border-left-color: var(--maple-accent-yellow); }
.card-accent-border.blue { border-left-color: var(--maple-secondary); }

/* Title Slide */
.title-slide h1 {
    font-size: 3.4em;
    margin-bottom: 0.5em;
    color: white;
}

.title-slide h3 {
    color: #87ceeb;
    margin-bottom: 1em;
}

.title-slide p {
    font-size: 1.2em;
    color: #b0c4de;
}

/* Benefit Item */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--maple-card-bg);
    border-radius: 10px;
    border-left: 4px solid var(--maple-primary);
}

.benefit-icon {
    font-size: 2em;
    min-width: 50px;
    color: var(--maple-primary);
}

/* Progression Step */
.progression-step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--maple-card-bg);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--maple-text);
}

.progression-step:hover {
    background: rgba(226, 232, 240, 0.6);
    transform: translateX(10px);
}

.step-number {
    background: linear-gradient(45deg, var(--maple-primary), var(--maple-accent-green));
    color: #ffffff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4em;
    min-width: 40px;
}

.step-content {
    text-align: left;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: var(--maple-heading);
}

.step-content p {
    margin: 0;
    line-height: 1.4;
}

/* Info Box */
.info-box {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid;
    text-align: left;
}
.info-box.blue { background: rgba(186, 230, 253, 0.4); border-left-color: var(--maple-secondary); }
.info-box.yellow { background: rgba(254, 240, 138, 0.4); border-left-color: var(--maple-accent-yellow); }
.info-box.green { background: rgba(187, 247, 208, 0.4); border-left-color: var(--maple-accent-green); }

.info-box h4 {
    margin-top: 0;
    color: var(--maple-heading);
}

/* Outline Styles */
.outline-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.outline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--maple-card-bg);
    padding: 18px;
    border-radius: 12px;
    border-left: 4px solid var(--maple-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.1);
}

.outline-item:hover {
    transform: translateX(10px);
    background: rgba(226, 232, 240, 0.6);
    box-shadow: 0 8px 25px rgba(71, 85, 105, 0.15);
}

.outline-item:nth-child(2) { border-left-color: var(--maple-accent-green); }
.outline-item:nth-child(3) { border-left-color: var(--maple-secondary); }
.outline-item:nth-child(4) { border-left-color: var(--maple-accent-yellow); }
.outline-item:nth-child(5) { border-left-color: var(--maple-accent-red); }

.part-number {
    background: linear-gradient(135deg, var(--maple-primary), var(--maple-secondary));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4em;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
}

.part-content {
    text-align: left;
    flex: 1;
}

.part-content h3 {
    margin: 0 0 8px 0;
    color: var(--maple-heading);
    font-size: 1.1em;
    font-weight: 600;
}

.part-content p {
    margin: 0;
    color: var(--maple-text);
    line-height: 1.4;
    font-size: 0.9em;
}

.outline-footer {
    margin-top: 30px;
    padding: 15px;
    background: linear-gradient(135deg, var(--maple-primary), var(--maple-secondary));
    border-radius: 8px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.2);
}

.outline-footer p {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
}

/* Checklist style */
.info-box .checklist {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.info-box .checklist li {
    line-height: 1.8;
}

/* --- DRAW.IO --- */
[data-drawio-src] {
    background-color: rgba(248, 250, 252, 0.95);
    border-radius: 12px;
    box-shadow: var(--maple-shadow);
    overflow: auto;
    margin: 20px auto;
    border: 2px solid var(--maple-border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.reveal [data-drawio-src] .geDiagramContainer {
    background-color: #ffffff !important;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
}

.reveal [data-drawio-src] .geGraph {
    background-color: transparent;
    max-width: 100%;
    max-height: 100%;
}

/* --- RESPONSIVENESS & PRINT --- */
@media (max-width: 768px) {
    .reveal h1 { font-size: 2.5em; }
    .reveal h2 { font-size: 1.8em; }
    .reveal pre { font-size: 0.45em; }
    .grid-2-col, .grid-3-col { grid-template-columns: 1fr; }
    
    /* Outline responsive styles */
    .outline-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .part-number {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }
    
    .part-content h3 {
        font-size: 1em;
    }
    
    .part-content p {
        font-size: 0.85em;
    }
    
    .outline-footer {
        margin-top: 20px;
        padding: 12px;
    }
    
    .outline-footer p {
        font-size: 0.9em;
    }
}

@media print {
    .reveal .slides section .fragment {
        opacity: 1;
        visibility: visible;
    }
}
