/* ===== SEÇÃO DE BUSCA PRINCIPAL ===== */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.search-container-main {
    position: relative;
    width: 100%;
}

.search-form-main {
    width: 100%;
}

.search-input-group-main {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input-group-main:focus-within {
    border-color: #28a745;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    /*transform: translateY(-2px);*/
}

.search-input-main {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 25px;
    font-size: 16px;
    background: transparent;
    color: #333;
    font-weight: 500;
}

.search-input-main::placeholder {
    color: #999;
    font-style: italic;
}

.search-button-main {
    background: linear-gradient(135deg, #28a745 0%, #2d4023 100%);
    border: none;
    padding: 18px 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-button-main:hover {
    background: linear-gradient(135deg, #2d4023 0%, #1a2614 100%);
    transform: scale(1.05);
}

.search-button-main i {
    font-size: 18px;
}

/* ===== INFORMAÇÕES DE RESULTADOS ===== */
.search-results-info {
    margin-top: 20px;
    text-align: center;
}

.results-text {
    background: white;
    padding: 12px 20px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    color: #666;
    margin: 0;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-text i {
    color: #28a745;
    margin-right: 8px;
}

.clear-search {
    color: #dc3545;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.clear-search:hover {
    color: #c82333;
    text-decoration: underline;
}

.clear-search i {
    margin-right: 5px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .search-input-group-main {
        border-radius: 8px;
        border-width: 2px;
    }

    .search-input-main {
        padding: 12px 20px;
        font-size: 16px; /* Evita zoom no iOS */
    }

    .search-button-main {
        padding: 16px 20px;
        min-width: 50px;
    }

    .search-button-main i {
        font-size: 16px;
    }

    .results-text {
        font-size: 14px;
        padding: 10px 15px;
    }

    .clear-search {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }
}

/* ===== ESTADO SEM RESULTADOS ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    margin-bottom: 20px;
}

.search-results-info {
    font-size: 12px;
}

/* ===== COMPONENTE DE PAGINAÇÃO ===== */
.pagination-container {
    margin-top: 40px;
    margin-bottom: 30px;
}

.pagination-info {
    text-align: center;
    margin-bottom: 20px;
}

.pagination-text {
    color: #666;
    font-size: 14px;
    margin: 0;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #dee2e6;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item {
    margin: 0;
}

.page-link {
    display: block;
    padding: 10px 15px;
    color: #28a745;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.page-link:hover {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.page-item.active .page-link {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.page-item.disabled .page-link {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
    color: #ccc;
    transform: none;
    box-shadow: none;
}

/* Estilo especial para botões Anterior/Próxima */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    padding: 10px 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #28a745 0%, #2d4023 100%);
    color: white;
    border: none;
}

.page-item:first-child .page-link:hover,
.page-item:last-child .page-link:hover {
    background: linear-gradient(135deg, #2d4023 0%, #1a2614 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.page-item:first-child.disabled .page-link,
.page-item:last-child.disabled .page-link {
    background: #ccc;
    color: #666;
}

.page-item:first-child.disabled .page-link:hover,
.page-item:last-child.disabled .page-link:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .pagination {
        gap: 3px;
        padding: 0 10px;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }

    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding: 8px 15px;
    }

    .pagination-text {
        font-size: 12px;
        padding: 8px 15px;
    }

    /* Esconder alguns números no mobile para economizar espaço */
    .page-item:not(.active):not(:first-child):not(:last-child):not(.disabled) {
        display: none;
    }

    .page-item.active,
    .page-item:first-child,
    .page-item:last-child {
        display: block;
    }

    /* Mostrar página atual e adjacentes */
    .page-item.active + .page-item,
    .page-item.active - .page-item {
        display: block;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        margin-top: 30px;
    }

    .pagination-text {
        display: block;
        margin-bottom: 15px;
        font-size: 11px;
    }
}

/* ===== ANIMAÇÕES ===== */
.pagination-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    padding: 40px 0 0 0;
}