/* Zazo Jobs List - Estilos do Shortcode */

.zazo-jobs-list-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

/* Barra de Busca e Filtros */
.zazo-jobs-search-filters {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.zazo-jobs-search {
    margin-bottom: 20px;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-field {
    flex: 1;
}

.search-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-field input:focus {
    outline: none;
    border-color: #007bff;
}

.zazo-search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.zazo-search-btn:hover {
    background: #0056b3;
}

/* Filtros */
.zazo-jobs-filters {
    margin-top: 15px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #007bff;
}

.filter-select:hover {
    border-color: #007bff;
}

.clear-filters {
    text-align: center;
    margin-top: 10px;
}

.clear-filters-btn {
    background: #f8f9fa;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clear-filters-btn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Conteúdo Principal - Estilo Natural */
.zazo-jobs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    align-items: start;
    position: relative;
}

/* Seção da Lista de Vagas (sem card) */
.jobs-list-section {
    display: flex;
    flex-direction: column;
}

.jobs-header {
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef;
    background: white;
    flex-shrink: 0;
}

.jobs-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.jobs-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #007bff;
    color: white;
}

.tab-btn:not(.active) {
    color: #666;
}

.tab-btn:not(.active):hover {
    background: #e9ecef;
}

/* Cards de Vagas */
.jobs-cards {
    flex: 1;
    padding: 0;
}

.jobs-cards::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.job-card {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.job-card:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-card.active {
    background: #e3f2fd;
    border-left: 4px solid #007bff;
}

.job-card-header {
    margin-bottom: 12px;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.job-company {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.verified-icon {
    color: #28a745;
    font-size: 12px;
}

.job-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.job-location,
.job-model,
.job-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-description {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 10px;
}

.job-date {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* Card de Detalhes da Vaga - Sticky Inteligente */
.job-details-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: fit-content;
    align-self: flex-start;
    transition: all 0.3s ease;
}

/* Classe para ativar sticky quando necessário */
.job-details-card.sticky-active {
    position: sticky;
    top: 20px;
}

/* Classe para ativar sticky-bottom quando necessário */
.job-details-card.sticky-bottom {
    position: sticky;
    bottom: 20px;
    /* top será calculado dinamicamente via JavaScript */
}

.job-details-content {
    padding: 30px;
}

.job-details-header {
    margin-bottom: 25px;
}

.job-details-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.job-details-company {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-details-location,
.job-details-salary,
.job-details-model {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.job-details-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.apply-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apply-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.job-details-tabs {
    margin-top: 25px;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.tab-buttons .tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-buttons .tab-btn.active {
    background: #f8f9fa;
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-buttons .tab-btn:not(.active) {
    color: #666;
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.job-full-description {
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.job-requirements,
.job-responsibilities {
    margin-bottom: 20px;
}

.job-requirements h4,
.job-responsibilities h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.job-status {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.open {
    background: #d4edda;
    color: #155724;
}

/* Indicador de Carregamento */
.loading-indicator {
    text-align: center;
    padding: 30px;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mensagem de fim da lista */
.no-more-jobs {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.no-more-jobs p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

/* Estados vazios */
.no-jobs,
.no-job-selected {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-jobs i,
.no-job-selected i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-jobs p,
.no-job-selected p {
    font-size: 16px;
    margin-bottom: 10px;
}

.no-jobs small {
    font-size: 14px;
    color: #999;
}

/* Responsividade */
@media (max-width: 1024px) {
    .zazo-jobs-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .jobs-list-section {
        max-height: none;
    }

    .job-details-card {
        position: static;
        max-height: none;
        align-self: stretch;
    }

    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .zazo-jobs-content {
        padding: 15px;
    }

    .search-row {
        flex-direction: column;
        gap: 10px;
    }

    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .jobs-header {
        padding: 20px;
    }

    .job-card {
        padding: 15px;
    }

    .job-details-content {
        padding: 20px;
    }

    .job-details-actions {
        flex-direction: column;
        gap: 15px;
    }

    .action-buttons {
        justify-content: center;
    }

    .tab-buttons {
        flex-wrap: wrap;
    }

    .tab-buttons .tab-btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .zazo-jobs-content {
        padding: 10px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jobs-tabs {
        flex-direction: column;
    }

    .job-card-details {
        flex-direction: column;
        gap: 5px;
    }

    .job-details-title {
        font-size: 20px;
    }

    .job-details-content {
        padding: 15px;
    }
}
