/* ==========================================================================
   PRESENTATION DECK SYSTEM - 16:9 WIDESCREEN SLIDES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #07090c;
    --slide-bg: #101217;
    --glass-card: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    
    --color-gold: #eab308;
    --color-blue: #0ea5e9;
    --color-green: #10b981;
    --color-red: #ef4444;
    --color-purple: #8b5cf6;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background animated glow orbs */
.presentation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
}

.orb-left {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
    top: -10vw;
    left: -10vw;
}

.orb-right {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    bottom: -10vw;
    right: -10vw;
}

/* ==========================================================================
   WIDESCREEN DECK CONTAINER
   ========================================================================== */
.deck-container {
    width: 92vw;
    height: calc(92vw * 9 / 16);
    max-width: 1440px;
    max-height: 810px;
    background: var(--slide-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

@media (max-aspect-ratio: 16/9) {
    .deck-container {
        width: 95vw;
        height: calc(95vw * 9 / 16);
    }
}

@media (min-aspect-ratio: 16/9) {
    .deck-container {
        height: 90vh;
        width: calc(90vh * 16 / 9);
    }
}

/* ==========================================================================
   SLIDES & TRANSITIONS
   ========================================================================== */
.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 40px 60px 30px 60px;
}

.slide.active {
    display: flex;
    z-index: 15;
}

/* Slide Header & Footer Template */
.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.slide-title-area {
    display: flex;
    flex-direction: column;
}

.slide-category {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
}

.slide-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
}

.slide-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slide-logo .brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.slide-logo .logo-val {
    color: var(--color-gold);
}

.slide-logo .logo-voz {
    color: var(--color-purple);
}

.slide-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 11px;
    color: var(--text-muted);
}

.slide-page-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* ==========================================================================
   SLIDE LAYOUT PATTERNS
   ========================================================================== */

/* 1. Capa / Title Slide */
.slide-capa {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px;
}

.capa-pretitle {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.capa-title {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.capa-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.capa-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.capa-logos img {
    height: 35px;
    opacity: 0.8;
}

.capa-footer {
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
}

/* 2. Grid e Colunas */
.slide-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    height: 100%;
}

.slide-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 100%;
}

/* 3. Cards de Conteúdo */
.content-box {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.content-box-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. Apresentação / Metricas Gerais */
.apres-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apres-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.apres-bullet {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.apres-bullet-icon {
    color: var(--color-gold);
    font-weight: 800;
}

.apres-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.apres-metric-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.apres-metric-val {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gold);
}

.apres-metric-lbl {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 5. Instagram / Facebook Pub Layouts */
.pub-metric-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.pub-metric-row:last-child {
    border-bottom: none;
}

.pub-metric-lbl {
    color: var(--text-muted);
}

.pub-metric-val {
    font-weight: 700;
    color: var(--text-main);
}

.pub-metric-val.highlight {
    color: var(--color-green);
}

.pub-col-header {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gold);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 6. YouTube Videos Slide Layout */
.yt-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.yt-stat-card {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.yt-stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--color-red);
}

.yt-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

.yt-videos-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.yt-video-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.yt-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-red);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.15);
}

.yt-play-icon {
    width: 40px;
    height: 40px;
    background: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 12px;
    transition: var(--transition);
}

.yt-video-card:hover .yt-play-icon {
    transform: scale(1.1);
}

.yt-video-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.yt-video-lbl {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 7. Tables (Circulação Impressa) */
.slide-table-box {
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    height: 380px;
    overflow-y: auto;
}

.slide-table-box table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.slide-table-box th {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.slide-table-box td {
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.slide-table-box tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.slide-table-box tr.total-row {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
}

.slide-table-box tr.total-row td {
    color: var(--color-gold);
}

/* 8. Galeria de Fotos / Postos Dutra */
.photo-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    height: 360px;
}

.photo-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-gold);
}

.photo-box {
    height: 180px;
    background: rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-card:hover .photo-box img {
    transform: scale(1.05);
}

.photo-desc-box {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.photo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.photo-city {
    font-size: 10px;
    color: var(--color-blue);
    text-transform: uppercase;
    margin-top: 2px;
}

.photo-detail {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 6px;
}

/* 9. Fim da Apresentação / Obrigado */
.slide-fim {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px;
}

.fim-title {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.fim-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.fim-contact-box {
    display: flex;
    gap: 40px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px 40px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 2px;
}

/* ==========================================================================
   NAVIGATION DECK CONTROL BUTTONS
   ========================================================================== */
.deck-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.control-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.deck-progress {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Keyboard Hints */
.kbd-hint {
    position: absolute;
    bottom: 30px;
    left: 60px;
    z-index: 100;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.kbd-key {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}

/* ==========================================================================
   MODAL VIDEO PLAYER & LIGHTBOX
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90vw;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Modal Offline Warning */
.modal-offline-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    color: white;
    height: 100%;
    box-sizing: border-box;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.98) 100%);
}

.modal-offline-warning .warning-icon {
    color: #ff0000;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.4));
    animation: pulseYoutube 2s infinite ease-in-out;
}

@keyframes pulseYoutube {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.4)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.7)); }
}

.modal-offline-warning h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-offline-warning p {
    font-size: 15px;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 500px;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.btn-watch-youtube {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 10px 20px -5px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-watch-youtube:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(255, 0, 0, 0.6);
    background: linear-gradient(135deg, #ff1a1a 0%, #e60000 100%);
}

.btn-watch-youtube svg {
    transition: transform 0.3s ease;
}

.btn-watch-youtube:hover svg {
    transform: translate(2px, -2px);
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   PDF SLIDE OVERRIDES & INTERACTIVE LAYERS
   ========================================================================== */
.slide-pdf {
    padding: 0 !important;
    background: #0d0f12;
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide-pdf.active {
    display: flex;
}

.slide-pdf-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Overlays para links interativos */
.slide-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none; /* Deixa passar eventos de mouse */
}

/* Elementos interativos clicáveis */
.interactive-hotspot {
    position: absolute;
    pointer-events: auto; /* Permite cliques */
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.03);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.interactive-hotspot:hover {
    border-color: var(--color-blue);
    background: rgba(14, 165, 233, 0.12);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    transform: scale(1.01);
}

.hotspot-youtube:hover {
    border-color: var(--color-red);
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.hotspot-insta:hover {
    border-color: #d946ef;
    background: rgba(217, 70, 239, 0.12);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.3);
}

.hotspot-fb:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Badge indicadora piscante de interatividade */
.hotspot-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--color-blue);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: hotspot-pulse 2s infinite;
}

.hotspot-youtube .hotspot-indicator {
    background: var(--color-red);
}

.hotspot-insta .hotspot-indicator {
    background: #d946ef;
}

@keyframes hotspot-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

.presentation-extra-controls {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.btn-extra-ctrl {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-extra-ctrl:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

