/*
Theme Name: Next Level
Author: Octuspi
Description: Tema Customizado atendimento LGPD
Version: 1.0
*/

:root {
    /* Cores base */
    --color-primary: #053ea1;    /* Azul principal */
    --color-secondary: #ffc107;  /* Amarelo principal */

    /* Cores claras e escuras para hover/foco */
    --color-primary-hover: #0056b3;      /* Azul mais escuro para hover */
    --color-secondary-hover: #e0a800;    /* Amarelo mais escuro para hover */

    /* Texto */
    --color-text: #212529;
    --color-text-light: #ffffff;

    /* Background */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

.bg-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-text-light) !important;
}

.text-white{
    color: var(--color-text-light) !important;
}

.x-small{
    font-size: 0.8rem !important;
}

.ct-header{
    background-image: url('assets/images/bg-header.jpg');
    height: 140px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.custom-logo{
    width: 120px !important;
    height: auto !important;
}

.social-menu{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.social-menu li a{
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin: 0 10px;
}

/* ===============================================
   NAVBAR STICKY PERSONALIZADO
   =============================================== */

#main-navigation {
    transition: all 0.3s ease-in-out;
    z-index: 1030;
}

#main-navigation.scrolled {
    background-color: rgba(248, 249, 250, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #495057 !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--color-primary) !important;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

/* Ajustes para mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin-left: 1rem;
    }
}

/* Site content margin para compensar navbar sticky */
.site-content {
    margin-top: 0;
}

/* ===============================================
   VLIBRAS - ACESSIBILIDADE EM LIBRAS
   =============================================== */

/* Personalização do botão VLibras */
[vw-access-button] {
    z-index: 9999 !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: #1976d2 !important;
    border-radius: 50px !important;
    padding: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* ===== ACESSIBILIDADE ===== */

/* Transições suaves para acessibilidade */
html {
    transition: font-size 0.3s ease;
}

body {
    transition: all 0.3s ease;
}

/* Controle de Tamanho da Fonte */
html.font-xs {
    font-size: 12px;
}

html.font-sm {
    font-size: 14px;
}

html.font-normal {
    font-size: 16px;
}

html.font-lg {
    font-size: 18px;
}

html.font-xl {
    font-size: 20px;
}

/* Alto Contraste */
.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

.high-contrast * {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

.high-contrast a:hover,
.high-contrast a:focus {
    color: #ffffff !important;
    background-color: #ffff00 !important;
}

.high-contrast .btn,
.high-contrast button {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

.high-contrast .btn:hover,
.high-contrast button:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

.high-contrast .navbar {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffffff !important;
}

.high-contrast .dropdown-menu {
    background-color: #000000 !important;
    border: 2px solid #ffffff !important;
}

.high-contrast .dropdown-item {
    color: #ffffff !important;
}

.high-contrast .dropdown-item:hover,
.high-contrast .dropdown-item:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.high-contrast img {
    opacity: 0.8;
    border: 1px solid #ffffff !important;
}

/* Garantir visibilidade do widget VLibras */
div[vw] {
    display: block !important;
    visibility: visible !important;
}

div[vw].enabled {
    opacity: 1 !important;
}

/* Notificação de Acessibilidade */
.accessibility-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

.high-contrast .accessibility-notification {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== CAROUSEL DE POSTS ===== */

.hero-carousel {
    position: relative;
}

.carousel-img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.176);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2rem;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    text-align: left;
    width: 70%;
}

.carousel-content {
    max-width: 600px;
}

.carousel-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-excerpt {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f8f9fa;
    line-height: 1.6;
}

.carousel-meta {
    opacity: 0.9;
}

.carousel-meta i {
    color: #ffc107;
}

/* Controles do Carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Indicadores */
.carousel-indicators {
    bottom: 1rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: #ffffff;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .carousel-img {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .carousel-title {
        font-size: 1.25rem;
    }
    
    .carousel-excerpt {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

/* Acessibilidade - Alto Contraste */
.high-contrast .carousel-caption {
    background: #000000 !important;
    border: 2px solid #ffffff !important;
}

.high-contrast .carousel-title,
.high-contrast .carousel-excerpt {
    color: #ffffff !important;
}

.high-contrast .btn {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

/* ===== TEMPLATES DE POSTS ===== */

/* Breadcrumb */
.breadcrumb-nav {
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Post Individual */
.single-post .post-title {
    color: #2c3e50;
    line-height: 1.2;
}

.single-post .post-meta {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.single-post .post-meta i {
    color: #3498db;
}

.single-post .post-thumbnail {
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.single-post .post-meta a {
    color: inherit;
    text-decoration: none;
}

.single-post .post-meta a:hover {
    text-decoration: underline;
}

.single-post .tags-list a {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.single-post .tags-list a:hover {
    background: #e9ecef;
    color: #495057;
}

.single-post .page-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.single-post .page-links .page-links-title {
    color: #495057;
    margin-right: 1rem;
}

.single-post .page-links .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Posts Archive */
.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.post-card .post-thumbnail-container {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card .post-thumbnail-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail-container img {
    transform: scale(1.05);
}

.post-card .post-title a {
    color: #2c3e50;
    transition: color 0.2s ease;
}

.post-card .post-title a:hover {
    color: #3498db;
}

.post-card .post-meta i {
    color: #3498db;
}

/* Posts Relacionados */
.related-posts .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.related-posts .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-posts .card .post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: block;
}

.related-posts .card img,
.related-posts .card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.related-posts .card:hover img,
.related-posts .card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.related-posts .card-title a {
    color: #2c3e50;
    font-weight: 600;
}

.related-posts .card-title a:hover {
    color: #3498db;
}

/* Paginação */
.pagination {
    margin-top: 2rem;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.pagination .page-item {
    display: inline-block !important;
    margin: 0 2px !important;
}

.pagination .page-link {
    color: #3498db;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    display: inline-block !important;
    text-decoration: none !important;
    border-radius: 0.375rem !important;
}

.pagination .page-link:hover {
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
}

.pagination .page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
}

/* Correção específica para paginação em archives/categories */
.posts-pagination .pagination {
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
}

.posts-pagination ul.pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.posts-pagination ul.pagination li {
    display: inline-block !important;
    margin: 0 2px !important;
}

.posts-pagination nav {
    text-align: center !important;
}

/* Garantir que todos os elementos de paginação sejam inline */
.posts-pagination a,
.posts-pagination span {
    display: inline-block !important;
}

/* Forçar exibição horizontal para qualquer lista de paginação */
nav[aria-label*="Navegação"] ul,
nav[aria-label*="Navegação"] .pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
}

nav[aria-label*="Navegação"] li {
    display: inline-block !important;
    margin: 0 2px !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .post-card .row {
        flex-direction: column;
    }
    
    .post-card .post-thumbnail-container {
        height: 200px !important;
    }
    
    .single-post .post-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .related-posts .card img {
        height: 150px;
    }
}

/* Alto Contraste - Posts */
.high-contrast .post-card {
    background: #000000 !important;
    border-color: #ffffff !important;
}

.high-contrast .single-post .post-content h1,
.high-contrast .single-post .post-content h2,
.high-contrast .single-post .post-content h3,
.high-contrast .single-post .post-content h4,
.high-contrast .single-post .post-content h5,
.high-contrast .single-post .post-content h6 {
    color: #ffffff !important;
}

.high-contrast .tags-list a {
    background: #ffffff !important;
    color: #000000 !important;
}

.high-contrast .card {
    background: #000000 !important;
    border-color: #ffffff !important;
}

/* Widget VLibras personalizado */
.nextlevel-vlibras [vw-plugin-wrapper] {
    z-index: 9998 !important;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    [vw-access-button] {
        bottom: 15px !important;
        right: 15px !important;
        transform: scale(0.9) !important;
    }
}

/* Integração com tema */
[vw-access-button]:hover {
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
}

/* Debug: Garantir que menus sem Bootstrap Walker também funcionem */
.navbar-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
}

.navbar-nav li {
    list-style: none !important;
}

.navbar-nav a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    color: #495057 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.navbar-nav a:hover {
    color: var(--color-primary) !important;
}

/* ===============================================
   MENU DO FOOTER - ESTILIZAÇÃO
   =============================================== */

.footer-menu {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.footer-menu .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer-menu .list-unstyled a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-menu .list-unstyled a:hover {
    color: var(--color-primary, #053ea1);
    transform: translateX(5px);
}

.footer-menu .list-unstyled a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--color-primary, #053ea1);
}

.footer-menu .list-unstyled a span {
    font-weight: 500;
}

/* Sub-itens do menu */
.footer-menu .list-unstyled .ms-4 a {
    font-size: 0.875rem;
    color: #9b9b9b;
    padding-left: 0.5rem;
}

.footer-menu .list-unstyled .ms-4 a:hover {
    color: var(--color-secondary, #ffc107);
}

.footer-menu .list-unstyled .ms-4 i {
    font-size: 0.75rem;
    color: #9b9b9b;
}

/* Responsividade para o menu do footer */
@media (max-width: 768px) {
    .footer-menu {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-menu .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    .footer-menu .list-unstyled a {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .footer-menu .list-unstyled a span {
        font-size: 0.9rem;
    }
    
    .footer-menu .list-unstyled .ms-4 a {
        font-size: 0.8rem;
    }
}

/* Separação entre seções do footer */
.footer-copyright {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* ===============================================
   BANNER DE COOKIES - LGPD
   =============================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    z-index: 9999;
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-banner-content {
    padding: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-description {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cookie-btn-accept {
    background: var(--color-primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--color-primary-hover);
    color: white;
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--color-secondary);
    border: 1px solid var(--color-secondary);
}

.cookie-btn-settings:hover {
    background: var(--color-secondary);
    color: #212529;
    border-color: var(--color-secondary-hover);
}

.cookie-btn-reject {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.cookie-btn-reject:hover {
    background: #dc3545;
    color: white;
}

/* Modal de Configurações de Cookies */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: between;
}

.cookie-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    flex: 1;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.cookie-modal-body {
    padding: 16px 24px 24px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cookie-category-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #495057;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--color-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-category-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .cookie-modal {
        padding: 10px;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* ===============================================
   PÁGINA DE BUSCA
   =============================================== */

.search-form .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.search-form .form-control {
    border: none;
    border-radius: 0.5rem 0 0 0.5rem !important;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

.search-form .btn {
    border-radius: 0 0.5rem 0.5rem 0 !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.search-filters {
    margin-top: 1rem;
}

.search-filters .btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem !important;
    transition: all 0.3s ease;
}

.search-filters .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-filters .btn-check:checked + .btn {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #212529 !important;
    transform: translateY(-1px);
}

.search-results .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.search-results .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.search-results .card-title a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.search-results .card-title a:hover {
    color: var(--color-primary-hover);
}

.search-header {
    padding: 2rem 0 1rem;
    border-bottom: 2px solid var(--color-primary);
    margin-bottom: 2rem !important;
}

.search-suggestions .card {
    transition: all 0.3s ease;
}

.search-suggestions .card:hover {
    transform: translateY(-2px);
}

.search-suggestions .list-group-item {
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.search-suggestions .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

/* Badge customizado */
.search-results .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Meta informações */
.card-meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Paginação customizada */
.page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    color: var(--color-primary);
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.page-numbers.prev,
.page-numbers.next {
    font-weight: 600;
}

/* Responsividade para busca */
@media (max-width: 768px) {
    .search-form .input-group {
        max-width: 100%;
    }
    
    .search-form .form-control {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .search-form .btn {
        padding: 0.875rem 1.25rem;
    }
    
    .search-filters .d-flex {
        width: 100%;
        gap: 0.5rem !important;
    }
    
    .search-filters .btn {
        flex: 1;
        font-size: 0.875rem;
        min-width: 80px;
    }
    
    .search-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .search-filters .d-flex {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .search-filters .btn {
        border-radius: 0.375rem !important;
        width: 100%;
        flex: none;
    }
}