/* Custom Styles & Presentation Mode for Guia LLM 2026 */

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

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

/* Glassmorphism Header */
.glass-header {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Hover Animation */
.card-hover {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Custom Prompt Code Boxes & Strict Text Wrapping */
.prompt-box {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    overflow: hidden;
    max-width: 100%;
}

.prompt-box pre {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
}

.prompt-box pre::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.prompt-box pre::-webkit-scrollbar-track {
    background: #0f172a;
}

.prompt-box pre::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 4px;
}

/* Toast Notifications */
#toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

#toast-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Presentation Mode (Modo Apresentação para Data-Show) */
body.presentation-mode {
    font-size: 1.125rem !important; /* 18px base font */
    line-height: 1.75 !important;
}

body.presentation-mode h1 {
    font-size: 3.5rem !important;
    line-height: 1.15 !important;
}

body.presentation-mode h2 {
    font-size: 2.5rem !important;
}

body.presentation-mode h3 {
    font-size: 1.75rem !important;
}

body.presentation-mode p, body.presentation-mode li {
    font-size: 1.25rem !important;
}

body.presentation-mode .prompt-box pre {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

body.presentation-mode .case-card {
    padding: 2rem !important;
}

/* Favorites Floating Bar */
#favorites-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(5rem);
    z-index: 90;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#favorites-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Print Styles for Pocket Guide (Resumo de Bolso 1-Pager) */
@media print {
    body * {
        visibility: hidden;
    }
    #pocket-guide-modal, #pocket-guide-modal * {
        visibility: visible;
    }
    #pocket-guide-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .no-print {
        display: none !important;
    }
}
