/* Deck CMS - Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #0066ff;
    --muted-color: #666666;
    --border-color: #e0e0e0;
    --slide-width: 1920px;
    --slide-height: 1080px;
}

@font-face {
    font-family: 'CustomFont';
    src: url('/static/fonts/custom.woff2') format('woff2'),
         url('/static/fonts/custom.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'CustomFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: var(--text-color);
    line-height: 1.5;
}

.deck-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slides {
    width: 100%;
    max-width: calc(var(--slide-height) * 16 / 9);
    aspect-ratio: 16 / 9;
    position: relative;
    background: var(--bg-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    padding: 80px;
    background: var(--bg-color);
}

.slide.active {
    display: flex;
    align-items: center;
}

.slide-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Typography */
.headline {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.subhead {
    font-size: 32px;
    font-weight: 500;
    color: var(--muted-color);
    margin-bottom: 32px;
}

.body {
    font-size: 24px;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 900px;
}

/* Slide Types */
.slide-cover {
    background: var(--text-color);
    color: var(--bg-color);
}

.slide-cover .headline {
    font-size: 72px;
    color: var(--bg-color);
}

.slide-cover .subhead,
.slide-cover .body {
    color: rgba(255,255,255,0.8);
}

.slide-divider {
    background: var(--text-color);
    color: var(--bg-color);
    justify-content: center;
}

.slide-divider .slide-content {
    text-align: center;
}

.slide-divider .headline {
    font-size: 96px;
    color: var(--bg-color);
}

.slide-insight .headline {
    font-size: 56px;
}

.slide-quote .body {
    font-size: 36px;
    font-style: italic;
    border-left: 4px solid var(--accent-color);
    padding-left: 32px;
}

/* Images */
.image-container {
    margin-top: 40px;
}

.image-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Navigation */
.deck-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.deck-nav button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.deck-nav button:hover {
    background: var(--border-color);
}

#slide-counter {
    font-size: 14px;
    color: var(--muted-color);
    min-width: 60px;
    text-align: center;
}

#export-pdf {
    margin-left: auto;
    background: var(--text-color) !important;
    color: var(--bg-color);
}

#export-pdf:hover {
    opacity: 0.9;
}

/* Print / PDF Export */
@media print {
    body {
        background: white;
    }
    
    .deck-container {
        padding: 0;
    }
    
    .deck-nav {
        display: none;
    }
    
    .slides {
        box-shadow: none;
        width: 100%;
        height: 100vh;
    }
    
    .slide {
        page-break-after: always;
        display: flex !important;
        position: relative;
    }
    
    .slide:last-child {
        page-break-after: auto;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .slide {
        padding: 40px;
    }
    
    .headline {
        font-size: 48px;
    }
    
    .subhead {
        font-size: 24px;
    }
    
    .body {
        font-size: 18px;
    }
}
