/* =============================================
   Seminar 2 — M-One Solutions Design System
   Theme: Light Soft Pixel Coffee
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Color Palette — Light Coffee Theme */
    --bg:        #fcfaf6;
    --surface:   #ffffff;
    --surface2:  #f5f1ea;
    --border:    rgba(140, 107, 93, 0.15);

    --text-main: #2b1c18;
    --muted:     #8c6b5d;
    --subtle:    #c4b5b0;

    /* Accent palette — coffee inspired */
    --coffee-dark:#5c433b;
    --coffee:    #8c6b5d;
    --latte:     #d4a373;
    --cream:     #faedcd;
    --matcha:    #b5c99a;

    --accent:    var(--coffee);

    /* Pixel grid size */
    --px: 4px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    /* Soft pixel grid background - Coffee toned */
    background-image:
        linear-gradient(rgba(140, 107, 93, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 107, 93, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

h1, h2, h3, h4, h5, h6, .display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

code, .mono, .label {
    font-family: 'JetBrains Mono', monospace;
}

/* ---- Section ---- */
.seminar-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

/* ---- Badge / Eyebrow ---- */
.eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 0; /* Pixel: square corner */
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--coffee-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    display: block;
    image-rendering: pixelated;
}

/* ---- Pixel Card ---- */
.pixel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2.5rem;
    position: relative;
    /* Chunky shadow for pixel feel, but coffee colored */
    box-shadow: 4px 4px 0 rgba(140, 107, 93, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pixel-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(140, 107, 93, 0.2);
}

.pixel-card--latte { box-shadow: 4px 4px 0 rgba(212, 163, 115, 0.3); }
.pixel-card--latte:hover { box-shadow: 6px 6px 0 rgba(212, 163, 115, 0.4); }

.pixel-card--matcha { box-shadow: 4px 4px 0 rgba(181, 201, 154, 0.4); }
.pixel-card--cream  { box-shadow: 4px 4px 0 rgba(250, 237, 205, 0.8); }

/* ---- Pixel Divider ---- */
.pixel-divider {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--border) 0px,
        var(--border) 8px,
        transparent 8px,
        transparent 16px
    );
    margin: 2rem 0;
}

/* ---- Pixel Accent Line ---- */
.pixel-accent {
    width: 32px; height: 4px;
    background: var(--accent);
    image-rendering: pixelated;
    margin-bottom: 1rem;
}

/* ---- Token Visualizer ---- */
.token-block {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border: 1px solid;
    border-radius: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin: 2px;
    background: var(--surface);
    font-weight: 500;
}
.token-block--coffee { border-color: var(--coffee); color: var(--coffee); }
.token-block--latte  { border-color: var(--latte); color: var(--coffee-dark); }
.token-block--matcha { border-color: var(--matcha); color: var(--coffee-dark); }

/* ---- Workflow Step ---- */
.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px dashed var(--border);
}
.flow-step:last-child { border-bottom: none; }

.flow-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: bold;
    min-width: 2rem;
    padding-top: 0.2rem;
}

/* ---- Mascot Container ---- */
.mascot {
    max-height: 420px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(92, 67, 59, 0.15));
    image-rendering: -webkit-optimize-contrast;
}
.mascot--sm { max-height: 260px; }
.mascot--md { max-height: 340px; }

/* ---- Rule Card (Workshop Rules) ---- */
.rule-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 2px 2px 0 rgba(140, 107, 93, 0.05);
}
.rule-card--latte { border-left-color: var(--latte); }
.rule-card--matcha { border-left-color: var(--matcha); }
.rule-card--coffee { border-left-color: var(--coffee-dark); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--subtle); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---- Selection ---- */
::selection { background: var(--latte); color: #fff; }

/* ---- Progress Bar ---- */
#progress-container {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: transparent;
    z-index: 9999;
}
#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--latte), var(--coffee));
    width: 0%;
    transition: width 0.3s ease;
}

/* ---- Presenter Notes Panel ---- */
.helper-panel {
    position: fixed;
    z-index: 9900;
    background: rgba(252, 250, 246, 0.95);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem;
    color: var(--text-main);
    backdrop-filter: blur(16px);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 8px 0 rgba(140, 107, 93, 0.1);
}
.helper-panel.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
#presenter-notes {
    bottom: 2rem; right: 2rem;
    max-width: 450px; width: 100%;
}

/* ---- Quick Jump Overlay ---- */
#quick-jump-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(252, 250, 246, 0.95);
    z-index: 9950;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
}
#quick-jump-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
#quick-jump-list button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(140,107,93,0.05);
}
#quick-jump-list button:hover {
    background: var(--surface2);
    color: var(--coffee-dark);
    border-color: var(--coffee);
    padding-left: 2rem;
    box-shadow: 4px 4px 0 rgba(140,107,93,0.15);
}

/* ---- Cursor ---- */
#cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 28px; height: 28px;
    border: 2px solid rgba(140, 107, 93, 0.6);
    border-radius: 0; /* pixel square cursor */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-ripple {
    position: fixed;
    border-radius: 0;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(212, 163, 115, 0.4);
    pointer-events: none;
    z-index: 9998;
    animation: pixel-ripple 400ms ease-out forwards;
}
@keyframes pixel-ripple {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ---- Spotlight ---- */
#spotlight-overlay {
    position: fixed;
    inset: 0;
    background: rgba(252, 250, 246, 0.85);
    pointer-events: none;
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.3s;
}
#spotlight-overlay.active { opacity: 1; }

/* ---- Light Theme Custom Utilities ---- */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(140, 107, 93, 0.2);
}

.text-coffee { color: var(--coffee); }
.text-coffee-dark { color: var(--coffee-dark); }
.text-latte { color: var(--latte); }

@media (max-width: 768px) {
    #cursor-ring, .helper-panel, #spotlight-overlay { display: none !important; }
    .seminar-section { padding: 4rem 1.25rem; }
}
