/* Animations */
@keyframes float {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50px) translateY(-50px); }
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .modern-nav-hub {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Campo de pesquisa responsivo */
    .nav-item form input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px;
    }
    
    .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* Estilo do placeholder */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Clean navigation hover effects */
.nav-items a:hover {
    background: #e9ecef !important;
    color: #495057 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Video section styles */
.video-container {
    position: relative;
    width: 100%;
}

/* Content section styles */
.content-clean {
    padding: 40px 30px;
    background: white;
}

.audio-clean-card {
    backdrop-filter: blur(10px);
}

/* Clean typography improvements */
.content-text p {
    margin-bottom: 1.2rem;
}

.content-text h1, .content-text h2, .content-text h3 {
    color: #343a40;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Modern rounded buttons styling */
.btn-modern:active {
    transform: scale(0.95) !important;
}

.btn-modern:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

@media (max-width: 576px) {
        .title-container {
            padding: 25px 20px !important;
        }
        
        .content-clean {
            padding: 25px 20px !important;
        }
        
        .nav-items {
            flex-direction: column !important;
            gap: 8px !important;
        }
        
        .nav-items a {
            width: 100% !important;
            justify-content: center !important;
        }
    }

    /* Dark mode overrides */
body.dark-mode #example-1 {
    background: #0f172a !important;
    padding-top: 30px !important;
}

/* Title Container */
body.dark-mode .title-container,
body.dark-mode div[style*="background: #ffffff"][style*="border-radius: 16px"][style*="padding: 40px"] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .title-container h1,
body.dark-mode .title-container h1[style*="color: #1a1a1a"] {
    color: #f1f5f9 !important;
}

/* Badges de informação */
body.dark-mode div[style*="background: #f8f9fa"][style*="border-radius: 50px"] {
    background: #334155 !important;
    border-color: #475569 !important;
}

body.dark-mode div[style*="background: #f8f9fa"] span {
    color: #e2e8f0 !important;
}

body.dark-mode div[style*="background: #eff6ff"][style*="border-radius: 50px"] {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

body.dark-mode div[style*="background: #f0fdf4"][style*="border-radius: 50px"] {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

body.dark-mode div[style*="background: #f0fdf4"] span {
    color: #6ee7b7 !important;
}

/* Conteúdo do texto */
body.dark-mode .content-text,
body.dark-mode div[style*="color: #374151"] {
    color: #cbd5e1 !important;
}

body.dark-mode .content-text p,
body.dark-mode .content-text div,
body.dark-mode .content-text span {
    color: #cbd5e1 !important;
}

body.dark-mode .content-text h1,
body.dark-mode .content-text h2,
body.dark-mode .content-text h3,
body.dark-mode .content-text h4,
body.dark-mode .content-text h5,
body.dark-mode .content-text h6 {
    color: #f1f5f9 !important;
}

body.dark-mode .content-text a {
    color: #60a5fa !important;
}

/* Imagem container */
body.dark-mode .image-container {
    border-color: #334155 !important;
}

/* Crédito */
body.dark-mode .mt-2.text-end small {
    color: #94a3b8 !important;
}

body.dark-mode .mt-2.text-end span {
    color: #e2e8f0 !important;
}

/* PDF Card */
body.dark-mode .pdf-card,
body.dark-mode div[style*="background: #ffffff"][style*="border: 1px solid #e5e7eb"][style*="border-radius: 16px"][style*="padding: 30px"] {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode .pdf-card h5 {
    color: #f1f5f9 !important;
}

body.dark-mode .pdf-card p {
    color: #94a3b8 !important;
}

/* Video Info Bar */
body.dark-mode .video-info {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* Gallery Section */
body.dark-mode #gallery-section h3 {
    color: #f1f5f9 !important;
}

body.dark-mode #gallery-section p {
    color: #94a3b8 !important;
}

body.dark-mode .gallery-item {
    border-color: #334155 !important;
}

/* Sidebar - Central de Navegação */
body.dark-mode .modern-nav-hub {
    background: linear-gradient(135deg, #1e293b 0%, #273549 100%) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

body.dark-mode .modern-nav-hub h3 {
    color: #f1f5f9 !important;
}

body.dark-mode .modern-nav-hub p {
    color: #94a3b8 !important;
}

/* Nav Cards na Sidebar */
body.dark-mode .nav-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, #1e293b 100%) !important;
    border-color: #334155 !important;
}

body.dark-mode .nav-card:hover {
    border-color: #3b82f6 !important;
}

body.dark-mode .nav-card h5 {
    color: #f1f5f9 !important;
}

body.dark-mode .nav-card p {
    color: #94a3b8 !important;
}

/* Botão Ver Mais Notícias */
body.dark-mode .btn[style*="background: #495057"] {
    background: #334155 !important;
}

body.dark-mode .btn[style*="background: #495057"]:hover {
    background: #475569 !important;
}

/* Audio player */
body.dark-mode audio {
    filter: invert(1) hue-rotate(180deg);
    opacity: 0.9;
}

/* Download modal */
body.dark-mode #downloadModal > div > div {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark-mode #downloadModal h4 {
    color: #f1f5f9 !important;
}

body.dark-mode #downloadModal div[style*="color: #374151"] {
    color: #94a3b8 !important;
}