/* Estilos generales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: rgb(106, 27, 50);
    --accent-color: #e74c3c;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --text-color: #2c3e50;
    --text-light: #95a5a6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Contenedor de búsqueda */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.search-container header {
    margin-bottom: 2rem;
}

.search-container h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.search-container p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

/* Formulario de búsqueda */
.search-form {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.search-box {
    display: flex;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.search-box input:focus {
    border-color: var(--secondary-color);
}

.search-box button {
    padding: 0 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: rgb(106, 27, 50);

}

.search-box button svg {
    fill: currentColor;
}

.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
}

/* Búsquedas recientes */
.recent-searches {
    margin-top: 2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recent-searches h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.recent-searches ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.recent-searches li a {
    background-color: var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.recent-searches li a:hover {
    background-color: #ddd;
}

/* Página de resultados */
.results-page {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

.results-sidebar {
    width: 40%;
    padding: 2rem;
    background-color: white;
    border-right: 1px solid #eee;
    overflow-y: auto;
}

.search-info {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.search-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.search-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.vacantes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Items de vacante */
.vacante-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.vacante-item:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgb(106, 27, 50);

}

.vacante-item.selected {
    border-color: var(--secondary-color);
    background-color: #f0f7ff;
}

.vacante-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: black
}

.vacante-item .company {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.vacante-item .location,
.vacante-item .salary,
.vacante-item .date {
    display: inline-block;
    margin-right: 1rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.vacante-item .description {
    margin-top: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Panel de detalles */
.details-panel {
    width: 60%;
    padding: 2rem;
    background-color: #f9f9f9;
    overflow-y: auto;
}

.default-message {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--dark-gray);
}

.default-message h2 {
    margin-bottom: 1rem;
    color: black
}

.vacante-details {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vacante-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    
}

.vacante-header h2 {
    font-size: 1.8rem;
   
    margin-bottom: 0.5rem;
}

.vacante-header .company {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
}

.section {
    margin-bottom: 1.5rem;
}

.section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: black
}

.section p {
    white-space: pre-line;
    line-height: 1.7;
}

.vacante-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-apply, .btn-save {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply {
    background-color: var(--secondary-color);
    color: white;
}

.btn-apply:hover {
    background-color: rgb(106, 27, 50);

}

.btn-save {
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-save:hover {
    background-color: #f0f7ff;
}

/* Mensajes de error y sin resultados */
.no-results, .error-message {
    text-align: center;
    padding: 2rem;
    color: var(--dark-gray);
}

.no-results .btn, .error-message .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.no-results .btn:hover, .error-message .btn:hover {
    background-color: rgb(106, 27, 50);

}

/* Responsive */
@media (max-width: 768px) {
    .results-page {
        flex-direction: column;
    }
    
    .results-sidebar, .details-panel {
        width: 100%;
    }
    
    .details-panel {
        min-height: 50vh;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .search-box button {
        border-radius: 4px;
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
    }
}