/* Premium Scrolling Slide Deck Presentation Styles - Boxed Layout */
:root {
    --primary-color: #8A1538; /* BNI Burgundy */
    --accent-color: #C5A059; /* Elegant Gold */
    --text-dark: #1F2937; /* Off-black */
    --text-muted: #6B7280;
    --border-light: rgba(0, 0, 0, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    /* Canvas background color where slides sit as cards */
    background-color: #EBF0F5;
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: scroll;
}

/* Floating Music Widget */
.music-floating-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-floating-btn:hover {
    background: var(--primary-color);
    color: #FFFFFF;
    transform: scale(1.05);
}

.music-floating-btn.playing {
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(138, 21, 56, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Presentation Canvas holding slide pages */
.presentation-canvas {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Individual Slides styled as boxed pages (16:9 aspect ratio matching PowerPoint standard size) */
.slide {
    width: 1000px;
    height: 562.5px; /* Perfect 16:9 height for 1000px width */
    margin-bottom: 40px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    /* Prevent shrinking in flex layouts */
    flex-shrink: 0;
}

/* Slide Internal Container - Applying BNI Pattern directly */
.slide-inner {
    width: 100%;
    height: 100%;
    padding: 45px 60px 35px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FFFFFF;
    background-image: url('bni_pattern.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 26% auto; /* Subtly fits corner like the master template */
    position: relative;
}

/* Slide Header */
.slide-header {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 50px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

.slide-logo {
    height: 34px;
    object-fit: contain;
}

.header-divider {
    width: 1px;
    height: 18px;
    background-color: #D1D5DB;
}

.slide-header-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Slide Body */
.slide-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

/* Slide Footer */
.slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    position: relative;
    z-index: 10;
}

.footer-right {
    color: #FFFFFF;
    font-weight: 600;
}

/* Slide 1: Title Slide Layout */
.title-slide {
    justify-content: space-between;
    text-align: center;
    padding: 60px 60px 45px 60px;
    background-size: 30% auto;
}

.title-slide .slide-header {
    border-bottom: none;
    justify-content: center;
}

.title-slide .slide-logo {
    height: 55px;
}

.title-slide .slide-body {
    align-items: center;
    justify-content: center;
}

.topic-badge {
    background: rgba(138, 21, 56, 0.08);
    border: 1px solid rgba(138, 21, 56, 0.15);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 22px;
    color: var(--text-muted);
    font-weight: 400;
}

.title-slide .slide-footer {
    border-top: none;
}

/* Slide 2: Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.comparison-card {
    background: #FAFAFC;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.card-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.card-title-bar i {
    font-size: 20px;
}

.card-title-bar h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.card-trap {
    border-left: 5px solid #DC2626;
    background: #FFFDFD;
}

.card-trap i.trap-icon {
    color: #DC2626;
}

.card-engine {
    border-left: 5px solid #059669;
    background: #FCFDFD;
}

.card-engine i.engine-icon {
    color: #059669;
}

.label-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.badge-red {
    background: rgba(220, 38, 38, 0.1);
    color: #B91C1C;
}

.badge-green {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
    color: #374151;
}

.list-err-icon {
    color: #DC2626;
    margin-top: 3px;
}

.list-ok-icon {
    color: #059669;
    margin-top: 3px;
}

.result-highlight {
    margin-top: 15px !important;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-weight: 700;
}

.card-trap .result-highlight {
    color: #991B1B;
}

.card-engine .result-highlight {
    color: #065F46;
}

/* Slide 3: Steps Container */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-card {
    display: flex;
    gap: 20px;
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 16px 24px;
    border-radius: 12px;
    align-items: center;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-color);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    margin-bottom: 2px;
    font-weight: 700;
    color: var(--primary-color);
}

.step-content p {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
}

/* Slide 4: One Golden Question */
.vague-vs-golden {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.vague-box {
    background: rgba(220, 38, 38, 0.03);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.box-label {
    background: #DC2626;
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.vague-phrase {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #991B1B;
}

.vague-sub {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.golden-box {
    border-left: 5px solid var(--primary-color);
    background: #FAF5F6;
    padding: 18px 25px;
    border-radius: 0 10px 10px 0;
}

.box-label-golden {
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: inline-block;
}

.golden-phrase {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--primary-color);
    font-style: italic;
}

.examples-container h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.example-item {
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 15px 20px;
    border-radius: 10px;
}

.ex-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-light);
    display: inline-block;
    padding-bottom: 3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.example-item p {
    font-size: 13px;
    font-style: italic;
    color: #4B5563;
    line-height: 1.45;
}

/* Slide 5: Weekly Challenge */
.challenge-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.challenge-item {
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
}

.chal-icon {
    width: 42px;
    height: 42px;
    background: rgba(138, 21, 56, 0.06);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 auto 12px auto;
}

.challenge-item p {
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
}

.motivational-quote {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Scroll Indicator Widget */
.scroll-indicator {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    z-index: 100;
    color: var(--text-muted);
}

/* Progress Bar at bottom */
.progress-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    z-index: 200;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

/* Visual Slide Layout (Split columns) */
.visual-slide-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    width: 100%;
}

.visual-slide-image-zone {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-visual-img {
    max-height: 330px;
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background: #FFFFFF;
}

.border-red {
    border: 5px solid rgba(220, 38, 38, 0.08);
}

.border-gold {
    border: 5px solid rgba(197, 160, 89, 0.12);
}

.border-gray {
    border: 5px solid rgba(0, 0, 0, 0.04);
}

.rounded-presenter {
    border-radius: 16px;
    border: 5px solid #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.visual-slide-cues-zone {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cue-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 15px 20px;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.cue-item:hover {
    transform: translateX(6px);
    border-color: rgba(138, 21, 56, 0.15);
}

.cue-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.color-red {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.04);
}

.color-gold {
    color: var(--accent-color);
    background: rgba(197, 160, 89, 0.06);
}

.color-primary {
    color: var(--primary-color);
    background: rgba(138, 21, 56, 0.04);
}

.cue-text h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.cue-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---------------------------------------------------- */
/* PRINT LAYOUT RULES (PDF EXPORT) */
/* ---------------------------------------------------- */
@media print {
    @page {
        size: landscape;
        margin: 0;
    }
    
    html, body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
        height: 100% !important;
        overflow: visible !important;
    }
    
    .music-floating-btn,
    .scroll-indicator,
    .progress-bar-container {
        display: none !important;
    }
    
    .presentation-canvas {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .slide {
        display: block !important;
        position: relative !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    .slide-inner {
        width: 100% !important;
        height: 100% !important;
        padding: 50px 80px 40px 80px !important;
        box-sizing: border-box !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .comparison-card, .step-card, .example-item, .challenge-item, .vague-box, .golden-box {
        background: #F9FAFB !important;
        border: 1px solid #E5E7EB !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .card-trap {
        border-left: 5px solid #DC2626 !important;
    }
    
    .card-engine {
        border-left: 5px solid #059669 !important;
    }
    
    .golden-box {
        border-left: 5px solid var(--primary-color) !important;
    }
}
