/* Importa as fontes do Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Reset e base */
.be-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: 'Open Sans', sans-serif;
}

.be-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #f57c00; /* Laranja */
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f57c00;
    position: relative;
}

.be-container h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff6f00;
}

/* Filtros */
.be-filters {
    margin-bottom: 30px;
    padding: 25px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
}

.be-search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.be-search-input {
    flex: 2;
    min-width: 200px;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.be-search-input:focus {
    outline: none;
    border-color: #f57c00;
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.1);
}

.be-search-input::placeholder {
    color: #999;
    font-weight: 300;
}

.be-filter-group {
    display: flex;
    gap: 12px;
    flex: 2;
    flex-wrap: wrap;
}

.be-filter-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.be-filter-select:focus {
    outline: none;
    border-color: #f57c00;
    box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.1);
}

.be-search-btn {
    padding: 12px 35px;
    background: linear-gradient(135deg, #f57c00, #ff6f00);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.3);
}

.be-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
}

.be-search-btn:active {
    transform: translateY(0);
}

/* Resultados */
.be-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff8f0;
    border-radius: 8px;
    border-left: 4px solid #f57c00;
}

.be-results-count {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.be-results-count strong {
    color: #f57c00;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.be-results-order {
    display: flex;
    align-items: center;
    gap: 10px;
}

.be-results-order label {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #666;
}

.be-results-order select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

/* Cards das empresas */
.be-empresa-card {
    display: flex;
    gap: 25px;
    padding: 25px;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.be-empresa-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f57c00, #ff6f00);
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.be-empresa-card:hover::before {
    opacity: 1;
}

.be-empresa-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #f57c00;
    transform: translateY(-2px);
}

.be-empresa-image {
    flex: 0 0 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
    position: relative;
}

.be-empresa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.be-empresa-image .be-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #999;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
}

.be-empresa-info {
    flex: 1;
    min-width: 0;
}

.be-empresa-info h3 {
    margin: 0 0 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #f57c00;
    transition: color 0.3s ease;
}

.be-empresa-info h3:hover {
    color: #ff6f00;
}

.be-empresa-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.be-detail-item {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.be-detail-item .be-icon {
    font-size: 16px;
    min-width: 20px;
}

.be-label {
    font-weight: 600;
    color: #555;
    min-width: 90px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.be-equip-tag {
    display: inline-block;
    padding: 4px 14px;
    margin: 2px 5px 2px 0;
    background: #fff3e0;
    color: #e65100;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    border: 1px solid #ffe0b2;
}

.be-detail-item a {
    color: #f57c00;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.be-detail-item a:hover {
    color: #ff6f00;
    text-decoration: underline;
}

.be-empresa-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    background: #e8f5e9;
    color: #2e7d32;
}

/* Paginação */
.be-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.be-pagination .be-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.be-pagination .be-page-link:hover {
    border-color: #f57c00;
    color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.15);
}

.be-pagination .be-page-link.active {
    background: linear-gradient(135deg, #f57c00, #ff6f00);
    border-color: #f57c00;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

.be-pagination .be-page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.be-pagination .be-page-link.be-page-nav {
    font-size: 18px;
}

.be-pagination .be-page-info {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 10px;
}

/* No results */
.be-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.be-no-results .be-no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.be-no-results h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.be-no-results p {
    font-family: 'Open Sans', sans-serif;
    color: #888;
}

/* Loading */
.be-loading {
    text-align: center;
    padding: 40px;
}

.be-loading .be-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f57c00;
    border-radius: 50%;
    animation: be-spin 0.8s linear infinite;
}

@keyframes be-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 992px) {
    .be-empresa-details {
        grid-template-columns: 1fr;
    }
    
    .be-empresa-image {
        flex: 0 0 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .be-container {
        padding: 15px;
        margin: 10px;
    }
    
    .be-search-row {
        flex-direction: column;
    }
    
    .be-search-input,
    .be-filter-group,
    .be-filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .be-empresa-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .be-empresa-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    
    .be-results-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .be-detail-item {
        flex-wrap: wrap;
    }
    
    .be-label {
        min-width: 70px;
        font-size: 12px;
    }
    
    .be-pagination {
        gap: 5px;
    }
    
    .be-pagination .be-page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .be-container h2 {
        font-size: 22px;
    }
    
    .be-empresa-info h3 {
        font-size: 18px;
    }
    
    .be-search-btn {
        width: 100%;
        justify-content: center;
    }
}