/* ===== CUSTOM THEME - MICRO-DECK AESTHETIC ===== */

:root {
    --md-background: #0F0E0D;
    --md-surface: #1C1A18;
    --md-surface-high: #252321;
    --md-text-primary: #EFEDE8;
    --md-text-muted: #8A8580;
    --md-text-faint: #4A4744;
    --md-border: #2A2825;
    --md-accent: #EFEDE8;
}

/* Override Reveal.js defaults */
.reveal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--md-text-primary);
    background-color: var(--md-background);
}

.reveal .slides {
    text-align: left;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
    color: var(--md-text-primary);
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

.reveal h1 {
    font-size: 2.2em;
    line-height: 1.1;
}

.reveal h2 {
    font-size: 1.8em;
    line-height: 1.2;
}

.reveal h3 {
    font-size: 1.3em;
    line-height: 1.3;
    color: var(--md-text-muted);
    font-weight: 600;
}

.reveal h4 {
    font-size: 1.1em;
    line-height: 1.3;
    margin-bottom: 0.4em;
}

.reveal p {
    line-height: 1.4;
    margin-bottom: 0.6em;
}

.reveal strong {
    color: var(--md-accent);
    font-weight: 600;
}

.reveal em {
    color: var(--md-text-muted);
    font-style: italic;
}

.reveal ul, .reveal ol {
    margin-left: 0;
    list-style-position: outside;
}

.reveal li {
    margin-bottom: 0.3em;
    line-height: 1.35;
}

.reveal a {
    color: var(--md-accent);
    text-decoration: underline;
}

/* Slide backgrounds */
.reveal .slides section {
    background-color: var(--md-background);
    padding: 1.5em 2em;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Title slide styling */
.title-slide {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2em !important;
}

.title-slide h1 {
    font-size: 3em;
    margin-bottom: 0.3em;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.title-slide .subtitle {
    font-size: 1.2em;
    color: var(--md-text-muted);
    margin-bottom: 1.5em;
    font-weight: 400;
}

.title-slide .team {
    font-size: 0.85em;
    color: var(--md-text-muted);
    margin-top: 1.5em;
}

.title-slide .course {
    font-size: 0.7em;
    color: var(--md-text-faint);
    margin-top: 0.8em;
}

/* Section title slides */
.section-title {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: var(--md-surface) !important;
}

.section-title h2 {
    font-size: 3em;
    color: var(--md-text-primary);
}

/* Placeholder boxes for visuals */
.placeholder-box {
    background-color: var(--md-surface);
    border: 2px dashed var(--md-border);
    border-radius: 8px;
    padding: 2em 1.5em;
    text-align: center;
    margin: 0.8em 0;
}

.placeholder-box p {
    font-size: 1em;
    color: var(--md-text-muted);
    margin: 0.3em 0;
}

.placeholder-box .note {
    font-size: 0.75em;
    color: var(--md-text-faint);
    margin-top: 0.5em;
}

/* Quote styling */
.quote {
    background-color: var(--md-surface);
    border-left: 3px solid var(--md-accent);
    padding: 0.8em 1.2em;
    margin: 0.8em 0;
    font-style: italic;
    color: var(--md-text-muted);
    border-radius: 0 6px 6px 0;
    font-size: 0.95em;
}

.quote-source {
    font-size: 0.75em;
    color: var(--md-text-faint);
    margin-top: 0.5em;
    font-style: normal;
}

/* Data callouts */
.stat-callout {
    background-color: var(--md-surface-high);
    border-radius: 8px;
    padding: 1em;
    margin: 0.6em 0;
    text-align: center;
}

.stat-callout .number {
    font-size: 2em;
    font-weight: 700;
    color: var(--md-accent);
    display: block;
    margin-bottom: 0.2em;
}

.stat-callout .label {
    font-size: 0.85em;
    color: var(--md-text-muted);
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2em;
    margin: 0.8em 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    margin: 0.8em 0;
}

.grid-item {
    background-color: var(--md-surface);
    border-radius: 8px;
    padding: 1em;
}

.grid-item h4 {
    font-size: 1em;
    margin-bottom: 0.5em;
    color: var(--md-accent);
}

.grid-item p, .grid-item ul {
    font-size: 0.8em;
    line-height: 1.35;
    margin-bottom: 0.4em;
}

.grid-item p:last-child {
    margin-bottom: 0;
}

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

.checklist li {
    padding-left: 2em;
    position: relative;
    margin-bottom: 0.8em;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--md-accent);
    font-weight: 700;
    font-size: 1.2em;
}

.checklist li.incomplete::before {
    content: "◯";
    color: var(--md-text-faint);
}

.checklist li.warning::before {
    content: "⚠";
    color: #D4A574;
}

/* Two column layout */
.two-column {
    display: flex;
    gap: 1.2em;
    margin: 0.8em 0;
}

.two-column > div {
    flex: 1;
}

/* Slide numbers */
.reveal .slide-number {
    color: var(--md-text-faint);
    background-color: transparent;
    font-size: 14px;
}

/* Progress bar */
.reveal .progress {
    background: var(--md-border);
    height: 3px;
}

.reveal .progress span {
    background: var(--md-accent);
}

/* Speaker notes indicator */
.has-notes::after {
    content: "📝";
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0.3;
}

/* Emphasis styles */
.highlight {
    background-color: var(--md-surface-high);
    padding: 0.2em 0.5em;
    border-radius: 4px;
}

.muted {
    color: var(--md-text-muted);
}

.faint {
    color: var(--md-text-faint);
}

/* Table styling */
.reveal table {
    font-size: 0.7em;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0.8em 0;
}

.reveal table th {
    background-color: var(--md-surface);
    color: var(--md-text-muted);
    font-weight: 600;
    padding: 0.6em;
    border-bottom: 2px solid var(--md-border);
}

.reveal table td {
    padding: 0.5em 0.6em;
    border-bottom: 1px solid var(--md-border);
}

.reveal table tr:last-child td {
    border-bottom: none;
}

/* Compact slide variant for content-heavy slides */
.compact-slide {
    font-size: 0.9em;
}

.compact-slide h2 {
    font-size: 1.5em;
    margin-bottom: 0.4em;
}

.compact-slide h3 {
    font-size: 1.15em;
    margin-bottom: 0.3em;
}

.compact-slide p, .compact-slide li {
    margin-bottom: 0.3em;
}

.compact-slide .grid-item {
    padding: 0.8em;
}

/* Backup slides styling */
.backup-slide h2 {
    color: var(--md-text-faint);
}

.backup-slide::before {
    content: "APPENDIX";
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 0.6em;
    color: var(--md-text-faint);
    letter-spacing: 0.1em;
}
